Process:
Components used: Photon board, jumper wires, waterproof temperature sensors, 3 buttons, 3 different LED lights, resistors.
Build basic circuits based on Online Tutorial (http://diotlabs.daraghbyrne.me/3-working-with-sensors/DS18B20/)
Build basic circuits based on Online Tutorial (http://diotlabs.daraghbyrne.me/3-working-with-sensors/DS18B20/)
Trying one LED light.
Wiring.
Fixing mistakes and Organizing the board with Jesse’s help.
Soldering jumper wires onto the temperature sensor.
Waterproof temperature sensor
Wiring temperature sensor onto board.
I downloaded library codes and tested the temperature sensor based on the online tutorial. (http://diotlabs.daraghbyrne.me/3-working-with-sensors/DS18B20/)
First I planned my pseudocode with the help of Professor Brockmeyer.
Based on the plan, I transferred the algorithm into actual codes. I did not change the library codes for reading temperature.
Testings:
Testing LED 1: White/Green Tea
Testing LED 2: Olong Tea
Testing LED 3: Black/Herbal Tea
Testing buttons(as variable state 1,2,3)
Testing the accuracy of the temperature Sensor.
Using setTemp to simulate a real temperature of boiled water.
After setTemp(180), temperatureF is changed to 180. The corresponding LED is lit.