In this project we will generate tone signal whose sound intensity varies according to the amount of light which falls on Light Dependent Resistor(LDR). If amount of light is more sound is more and light is less sound is also less.

Here we are using one new function of Arduino programming i.e analogRead(). Output of LDR is in analog form. with the help of arduino we are going to convert it into Digital one. And after that using some functions of tone generation and map functions the sound signals of buzzers are changed.

Components Required:

  •  1 x Arduino Board with USB Cable
  • 1 x Bread Board
  • 1 x Buzzer
  • 1 x Light Dependent Resistor
  • 1 x 4.7 Kilo Ohm Resistor
  • Bread Board Connecting wires

Arduino Schematic:

Assemble the circuit as shown in the above diagram. The program for Arduino is mentioned below. Please check the connections twice before you give power to the circuit. Paste below code in arduino and upload it to the board.