Material | Arduino UNO, potentiometer, photo resistor, RGB LED, LED
Tool | Container, Plastic drill
Team | Jiya Seo . Chiching Tsai
Challenge - Make a more complex toy
Try to use lots of LEDs, not just one. Use multiple switches, not just one. Try to use a variable resistor too.
Resisters | So for this week, we decided to try different resistors. As the right video shows, the photo resisters will activate the LED.
Read more testing on Jiya’s blog.
Coding | For the programming, we tried to understand the function of if(), else(), and set variables to make different output. Also, serial monitor helped us to adjust the threshold of sensor.
Eventually, we use RGB LED to change color regards to the analog output for potentiometer, and link one LED to blink, then use the photo resister to be the master switch!
Code for Blink + Potentiometer for controlling RGB LED + Photo resistor