Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

HCP IOT sample application for Infosys-Hackathon 2016(Part2)

$
0
0

This is the part 2 of the precision irrigation controller application.

In this blog I will discuss about the tools which are used in this application and additional set of codes

Tools & ComponentsDescriptions
Arduino UNOIts the microcontroller which is used to control the sensors and pump
5v aquarium pump and soil moisture sensorGot from radio shack
IRF530 or IRF510 MOSFETrelay switch for controlling the pump from Arduino signal
Arduino IDEIDE to program and upload to Arduino UNO
Node.jsServer side java script .we use node.js for our main and integration module
Eclipse MARS with HCP toolsIDE to model HANA views and develop HANA related modules like xsjs and UI5

 

IMAG0208.jpg

FilesDescription
PAL_WRAPPER_MODEL_CODEwrapper procedure to create linear regression model. It gets the historical  predictor variable and dependent variable as input and outputs the regression coefficients with associated statistics
PAL_WRAPPER_PREDICT_CODEWrapper procedure to create linear regression prediction. It gets the linear regression coefficients and current predictor variable as input and outputs the dependent variable
PAL_MODEL_CALLhas the code to create tables and trigger the above wrapper procedures

 

 

 

Hope this blog is useful. Please give your feedback

 

Thanks

Md.Arrif


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>