At Modeso we created a sample demo as application on internet of things (IoT) using Arduino in our hack day.
The idea was to help employees to not sit down for long time without any activity, so we thought to notify them by using any social platform like Twitter, if they sat down for certain period of time.
This post is about how we created this application.
We’ll explain the connection in two steps, from weight sensor to the weight scales and from weight scales to arduino.
For the weight sensor we need to add one more output wire to the three already existing.
On the board we’ll do the following:
Now we have four wires from this circuit in the colors White, Green, Black, Red and need to connect them with the weight scales as following:
On the other side of the weight scales we need to connect four jumpers:
Then connect these jumpers with the Arduino:
All programming is done in three steps as follows:
Temboo helps us to generate code for a certain purpose like sending a twitter direct message:
Now we have the code that will send a twitter direct message, the next step is to get the sensor readings.
A reading less than a certain value means that the user did stand up. Correspondingly a greater value tells us that the user is still sitting on his chair.
Everytime the user sits down on his chair we use a timer to count the time he’s sitting on his chair. Once the timer hits one hour, we’re calling a method that sends a direct message to the user telling him that he is already sitting down on his chair for more than one hour and that he should do some activities. Independent if the user finally stands up or not, we need to reset the timer.
You can find full code here.
Working with arduino is fun and easy, i hope you can try this sample application to have a quick idea about the internet of things (IoT) which is the future technology.
Did we inspire your curiosity? Get in touch! We’re happy to provide you with more detailed information.