Step 2: The Schematic:
The schematic is given below.it would be better if you built it in 3 different parts-like i have done it.
The 555 timer circuit:
-connect pin2 to pin6
-connect pin 4 to pin v+
-connect pin 1 to V-
-connect pin 8 to V+
-connect a 47k resistor between pins 6 and 7
-connect a 100k resistor(you may have to experiment with this value)between pin 7 and V+
-connect the positive of the capacitor to pin 2 and the negative of the capacitor to V-
-connect pin3 to the emitter of the 2n2907 transistor.
the first part is complete
The proximity sensor:
-connect pin4 to V-
-connect pin7 to V+
-connect a 1M reistor between V+ and pin2
-connect a 1M resistor between V+ and pin3
-connect a 1M resistor between V- and pin2
-connect the cathode(shorter lead) of the photodiode to V-
and longer lead(anode) to pin3
-connect a 1.5k resistor between pin6 and the base of the transistor.
_______the second part is complete
The 4017 counter
-connect pin8 to V-
-connect pin16 to V+
-connect the anode(the end of the diode with no band) of 1n4148 diodes from pins 3,4,5 and 10 and connect the cathode(the banded end of the diode is cathode) of all the diodes.
-connect a 1k resistor between the connected cathodes of the diodes and the base of the 2n3904 transistor
-connect the collector of the 2n2907 transistor to pin 14
____the third part is complete
identify the pin contacts of the relay
-connect the emitter of the 2n3904 transistor to V-
-connect the collector of the transistor to either of the pin on both sides of the common pin of the relay.
-connect the other pin on the other side of the common pin of the relay to V+
-connect the cathode of the diode(banded end) to the pin where V+ goes into and the un-banded end(anode) to the collector of the transistor(pin on the other side of the common pin of the relay)*
-connect a 0.1uf capacitor between V+ and V-**
-connect a 0.1 uf capacitor between the 2 pins on both sides of the common pin of the relay**
HANDLE THIS PART OF THE CIRCUIT WITH EXTREME CAUTION :!!(-make sure you are not working with the relay when the 220v ac supply is on.)
-connect one of the two lines of the 220v ac supply to the common pin of the relay
-connect the other line of the 220v ac supply to your bulb,cfl or appliance.
-connect the NO pin(normally open) of the relay to your appliance or bulb (if you don't understand this part see the schematic diagram)
-connect the 9v battery with its polarity properly connected.
-in case you are using an adapter use an 100uF electrolytic capacitor between V+ and V-
-in case the circuit's not working properly move on to the next step
*the diode is to make sure the relay does not turn off or on in case of voltage spikes
**the ceramic disc capacitor is used as a noise filter
in case you want to download a pdf of the file the download is below,it's called AMTFL(analog motion triggered fluorescent bulb)