A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By derChilene
#45122 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!