Final Project 3
From Physical Programming
For the next step, we want to make an array of LEDs. For curtain temperature, the LED turn on one by one. That’s what we want to do. But after a lot of trial, we still can’t get it right.
After reading the Audrino web site, the Loop article, we finally get all the lights on.
Then, we move on to explore the fade in and fade out function of Audrino.
As the fading function will only work for the PWM pins - digital pins 5, 6, 9, 10 and 11, we located the LEDs on both sides.
Aftter that, we realized that we could make use of this special allocation of LEDs. We use one set of LEDs to represent on/off status of the device, and the other set to indicate temperature changes.
We input the following code to do the fading.
And we input the following code to turn Digital pin 5and 6 on when it senses the temperature goes above 28 Celsius.








