What is a buzzer?
A buzzer is an electroacoustic transducer that makes a continuous or intermittent
sound, usually treble. It is used as a signaling mechanism o warning and can be
applied to multiple systems, such as cars and household appliances, including
wake up alarms.
What is a button?
A button is a switch mechanism that when pressed it sends a signal.
CONNECTIONS:
1.
Connect the light sensors to the analog pins A0 and A1.
2.
Connect the LEDs to the digital pins 9 and 10.
PROGRAMMING CODE
You can do this project using the Arduino, Bitbloq and other visual programming
software by blocks compatible. Below you will find the necessary code.
Arduino Code