Framework for easily connecting devices to internet
Posted: Fri Apr 08, 2016 1:14 pm
Hello!
I'm building with a friend an opensource framework using the Arduino SDK to easily connect sensors to a platform and trigger actions. I would love to hear your feedback and of course you are welcome to collaborate on the SDK!
The repository of the SDK is: https://github.com/undercontrol-io/sdk-esp8266-arduino
The usage is pretty simple. First there is the file UndercontrolSDK, here the user must define:
-API Key of Undercontrol.io
-Period (Time between sending measurements)
-Application
-Communication Protocol (HTTP or MQTT)
Then the loop() is pretty straightforward:
void loop() {
readActionFromUndercontrol(); //Get Actions triggered by Undercontrol
data = getDataFromSensor(); //Get Sensor Data
sendDataToUndercontrol(data); //Send Data to Undercontrol (The period is defined in UndercontrolSDK)
}
I made a tutorial for using a DB18b20 with the SDK and connect it to the Undercontrol platform http://undercontrol.io/ds18b20-temperature-sensor/
Will keep updating some use cases these days, so more people get motivated and collaborate. Currently we have used:
-Temperature Sensor
-Distance Ultrasonic Sensor
-Microphone (The sensibility wasn't so good, so we made a Clap Detector that works like a charm)
-Relay
I bought a pack of 37 sensors. I hope I can add two of them per week to the SDK.
So tell me what you think! As we are currently working on this, all the feedback on the SDK, platform or usability is highly appreciated.
Best Regards!
I'm building with a friend an opensource framework using the Arduino SDK to easily connect sensors to a platform and trigger actions. I would love to hear your feedback and of course you are welcome to collaborate on the SDK!
The repository of the SDK is: https://github.com/undercontrol-io/sdk-esp8266-arduino
The usage is pretty simple. First there is the file UndercontrolSDK, here the user must define:
-API Key of Undercontrol.io
-Period (Time between sending measurements)
-Application
-Communication Protocol (HTTP or MQTT)
Then the loop() is pretty straightforward:
void loop() {
readActionFromUndercontrol(); //Get Actions triggered by Undercontrol
data = getDataFromSensor(); //Get Sensor Data
sendDataToUndercontrol(data); //Send Data to Undercontrol (The period is defined in UndercontrolSDK)
}
I made a tutorial for using a DB18b20 with the SDK and connect it to the Undercontrol platform http://undercontrol.io/ds18b20-temperature-sensor/
Will keep updating some use cases these days, so more people get motivated and collaborate. Currently we have used:
-Temperature Sensor
-Distance Ultrasonic Sensor
-Microphone (The sensibility wasn't so good, so we made a Clap Detector that works like a charm)
-Relay
I bought a pack of 37 sensors. I hope I can add two of them per week to the SDK.
So tell me what you think! As we are currently working on this, all the feedback on the SDK, platform or usability is highly appreciated.
Best Regards!