In this project, we will learn to experiment with LDR and a buzzer. The output of this experiment is sound with different frequencies that are produced depending upon the light falling on the LDR/photoresistor.
– Connect the negative black wire of the buzzer to pin GROUND and the black positive to the digital pin 9.
– Connect to pin 5V a resistor of 1 kΩ and the other end of it a photoresistor and pin A0.
– Connect the other lead of the resistor pin GROUND.
List of components:
|1 kΩ Resistor
|Buzzer [Piezo small]
|Arduino Uno R3