This instructable will detail how to make a switch that uses an arduino to sample light. When the light sample reaches a threshold it will trigger a relay that can be used to turn on/off a small appliance (light, radio, fan, etc...) The parts for this instructable can be ordered as a kit:

Jameco Kit


Step 1: Review relay and prep wire

unpackage the relay and stretch out the cable. this cable is used to activate the relay but will also be used to power the arduino. cut the wire in about two equal parts. the part with the white clip end will plug into the relay and be soldered into the arduino. the wire with the black clip end will be spliced into the usb cable to supply power to the arduino. this is also a good time to review the relay tutorial for safety information: http://www.dfrobot.com/wiki/index.php?title=Tutorial:_DFR0017_V2_Relay

<p>You can use LEDs as sensors - the high power ones have a large sensitive surface.</p>
<p>There is something ironic about using a light sensative switch to turn a lamp on and off. lol</p><p>Nice Instructable!</p>
Nice instructable! Now all I need to do is integrate it into the light switch itself!
<p>Nice, I want to build this so I can turn off my lights without getting out of bed!</p>

About This Instructable


217 favorites


More by kristeller62: Jellyfish Pillow passive brake light Laser Pointer Switch
Add instructable to: