- Spark Microcontroller
- Breadboard
- Jumper Wires
- A 1kΩ Resistor
- A 10kΩ Resistor
- A Force Sensitive Resistor (FSR)
- A single color LED (Light Emitting Diode)
- A capacitor
- A TMP36 Temperature Sensor
The biggest challenge I encountered was understanding how to trigger the bathroom temperature function from the actual pressure sensor. This was quickly resolved with using "&&" in my if statement. For example: "if( temperatureF < 85 && pillowReading < 500 )" --- it was simple enough, but it wasn't clicking for me at first. Originally, I had written a separate pillow function and bathroom function but was having trouble calling one to activate on the other. The final results can be seen in the code below.
For circuitry and code examples, I used the Sensor Tutorials published by Daragh Byrne in the Google Drive folder for the IoT 2015 class, combining elements and information I learned from both the FSR and Temperature Sensor tutorial. I went through about 4 iterations to get the project working, and combined code samples I had found in Google Drive with the logic tips found the Office Hours Powerpoint from Friday, January 23rd.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .