The scenario
There are two layers of curtains in the room. Using two TMP36 sensors controls the curtains’ interaction. One sensor records the temperature variation in the center of the room and reflects the data on the first layer curtain, which means that the curtain would show different height according to the data.
Another sensor monitors the temperature of the curtain wall and the data will change the second layer’s curtain height. When the temperature is 35 degree Celsius or over, the curtain would be dropped down completely.
The circuit includes
● Spark Microcontroller
● Breadboard
● Jumper Wires
● Two TMP36 sensors
● Two 0.01uF (10nF) ceramic capacitors