Back to Parent

Process

The process I followed to develop this device was iterative in nature. There were 3 major components involved in making of this device: 1. Photosensor (to sense the light falling on the device), 2. Piezo Speaker (to give a sound alert from the device), 3. Color LED to switch between red and green colors. (Red when stove is turned on for more than ten minutes and green rest of the times)

I integrated one component at a time. First, I installed the speaker and checked if the code for that was functioning. (Code source: https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-for-photon-experiment-guide/experiment-5-music-time)

Then I integrated the photosensor in the circuit and calibrated the code to play music if the photosensor value crossed a certain threshold. I modified the above code and integrated it with the photosensor code we used during the workshop. (https://designingiot.slack.com/messages/help/)

    The only problem I faced was during circuit building which was resolved immediately after consulting the teacher. After that I integrated the LED and coded to switch colors as per the condition mentioned above. After all the circuit was complete, I tested it on the stove and calibrated the threshold for the sensor to match with the stove light. The device gives a visual alert when the stove is on by switching the LED to red from green and a push notification/ text message on your phone. I connected the device to the particle cloud and stored the threshold as a ‘particle.variable’. Then I used that to make IFTTT recipe that sends a message to me and my housemates’ phone. The data from the particle is also logged and can be monitored using Spark.publish() on: https://dashboard.particle.io/user/logs 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0