# Do-It-Yourself Simple circuit for every electronic beginers-Automatic night lamp with LDR - do it yourself

Hey guys I'm back...

In this instructable I'm sharing my first electronic project,which I teach to every first one in electronics......

New to electronics....
Lets learn ..........

(only for beginers ,if you are a expert skip this project.....)

## Step 1: Begining......

First lets learn about little electronics in this instructables

.Resistor - used as what its name says
.Potentio meter(pot meter)-using this we can change or adjust resistance
.Transistor - (that 3 legged thing)-used as amplifier ,automatic switch etc.(in this instructable we are using it as a automatic switch)
.LDR (Light Dependent Resistors) also known as cadmium cell-resistence decreases and increases according to the light it gets
.LED (Light Emitting Diode)-gives out light when electricity is applied at respective electrode

## Step 2: Lets start building........

We are going to make a simple automatic light which automaticaly lights up when its dark

## Step 3: Things you Need.....

1.2N2222A transistor
2. 100k pot meter
3.1k resistor (brown ,black,red codes)
4.220ohm resistor
5.LDR
6.9v alkaline battery
7.LEDs
8.Switch (optional)
others
this are available at less than 1\$

.wire
.soldering iron and prefboard (optional) I first made it without soldering

## Step 4: Circuit diagrams.......

Gather every things ......

connect the middle and any other one pin of pot meter, leave other (as in the picture)and connect it to the circuit

## Step 5: Transistor

Transistor have 3 legs middle one is base (B)and other two is collecter (C) and emitter (E) respectively as in the picture for this transistor

You maybe confused at this point,if you are a beginer(I also was confused at first,I learned from my mistakes). Thats why I remind you learn from mistakes , and don't give up if you fail,try till you win(at least thats what happened to me......). Thats what the Edison did before he invented the light bulb . So NEVER EVER GIVE UP.

## Step 6: Have you finished.....

All done.......

connect the circuit to a 9v battery positive and negative respectivily

(please forgive me for my image ,if you did't undersand it.what do you except from first tries,that to from a kid who does not have a soldering iron.......)
(first image is when i rebuilt the circuit with pref board and soldering iron)

## Step 7: Lets test........

Take the circuit to a dark place or hide LDR with your finger and switch on the circuit
The LED should ,if not adjust the pot meter( turn it or move it)

After the LED glows take your hands away from LDR or come back to a lighted area,the LED should turn off,if not again adjust the pot meter
if its all works as said
if not rewire the circuit or find the fault(don't give up)
Frequently adjust pot meter for better perfomance

when its dark LED glows automaticaly
when it is bright it switches off automaticaly

And don't forget to improve my instructables.......
I will be back soon with another instructables.........

[ i'm working on to improve this project.This circuit is not that much powerfull to work with a relay.I want a circuit which works perfectly with a relay just like this one.I have tried the 555 one but it is little bit laggy. Any one has any idea of a efficient automatic night lamp post ur comments . i will publish the 2nd edition of this circuit on the behalf of all of them who helped me ]

[ CAN ANYONE HELP ME BY GIVING A RASPBERRY PI FOR MY PROJECT.NOW I DON'T HAVE THE MONET TO BUY ONE.IF U COULD HELP ME POST A COMMENT ]