Energy conservation is now a days a soul need for our society.In order to implement it we are planning to make a project on saving electricity.In this project the LED will turn on when the light is dim and turn off when there is light.Broadly one can use this for the street lights which will help in saving a lot of energy.
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Gather All the Materials
Materials Needed are:
Step 2: Make the Circuit
- Take the led and connect its small pin to gnd and tall pin to pin A0.
- Take the light sensor and connect small pin to ground and tall pin to analog pin A1.
- Connect your arduino to your laptop with usb cable.
Step 3: CODE
int sens = A1;
int led = A0;
float num,senss,leds ;
senss = analogRead(sens);
leds = analogRead(led);
num = map(senss,0,1024,0,255);