Goal
My primary goal was to make a device which my roommate would find useful and learn how to use the Particle Photon.
One of my roommates meditates for a cumulative time of 2-3 hours a day. Being the talkative person that I am, I would disturb her often; always unsure if she was in the zone. To give her some peace, I plan to place a pressure sensor in/under her meditation mat which will let me know when she's meditating. If ever I need to speak with her, I can send an sms to know if she's in the zone.
The first step was to configure the sensor. I used a simple circuit with a led attached to verify if the sensor and the related code worked. I then went on the check the values I was receiving to set a threshold for the device. The next step involved setting up the IFTTT connection and writing code specifically for it. My initial code was incorrect as I had not created a separate function to publish the event. On correcting the code, I got the desired result. I set up publish and subscribe event and added a button which would switch the device on and off.
Having never worked on IoT products before, it was exciting to understand how the various sensors work. The tutorials on the DioT Lab website were very useful and easy to understand. The next step was to change the led to an RGB led which would turn a certain colour to signify if it was on and a different colour for when she is meditating. I would like to further enhance this device by connecting it to a light on her door and others in her room. The door light would signal to us that she is busy and the light's inside would dim to suit the environment she would like while meditating.
You can upload files of up to 20MB using this form.