Control Electrical Stuff With Your Computer
Intro: Control Electrical Stuff With Your Computer
Control lights (or any thing electrical appliance) with your keyboards lights. with no irritating micro controller!!!!
First I want to say that this is my first instructable and I didn't take many photos.
also I got the idea from: USB controlled mini lava lamps by jamesh
this is a device that turns lights (or what ever) on with the push of the caps num or scroll lock
if you want you can use an xbox DVD remote with your computer and turn on your lights with that. so you can walk in to the room and push a button on the remote and the lights turn on
Waning. this instructable involves working with high voltage mains power, I take no responsibility if things go wrong.
First I want to say that this is my first instructable and I didn't take many photos.
also I got the idea from: USB controlled mini lava lamps by jamesh
this is a device that turns lights (or what ever) on with the push of the caps num or scroll lock
if you want you can use an xbox DVD remote with your computer and turn on your lights with that. so you can walk in to the room and push a button on the remote and the lights turn on
Waning. this instructable involves working with high voltage mains power, I take no responsibility if things go wrong.
STEP 1: Get the Parts
parts:
3 transistor BD140
3 capacitors 10-60uf
3 resistors (so the LEDs don't burn out. unfortunately I forgot there value)
3 relays (the ones with 5 legs)
3 switches (single pole double throw) 240v (120 in the US)
1 (single pole single throw) switch 240v (120 in the US)
a box
wire
4 grommets
A keyboard with num caps and scroll lock lights
3 LEDs
7 (or more) meter extension lead
2 power sockets (see picture)
optional:
xbox dvd remote
USB cable
small blank circuit board
3 transistor BD140
3 capacitors 10-60uf
3 resistors (so the LEDs don't burn out. unfortunately I forgot there value)
3 relays (the ones with 5 legs)
3 switches (single pole double throw) 240v (120 in the US)
1 (single pole single throw) switch 240v (120 in the US)
a box
wire
4 grommets
A keyboard with num caps and scroll lock lights
3 LEDs
7 (or more) meter extension lead
2 power sockets (see picture)
optional:
xbox dvd remote
USB cable
small blank circuit board
STEP 2: Opening (and Modding) the Keyboard
Crack open your keyboard and remove the circuit board (mine had a zillion screws holding it in)
then locate the lights and solder the wires to the legs of the LEDs (see picture)
when done put the keyboard back together. you may need to cut a hole for the new wire to get out
important note: not all keyboards work with this
then locate the lights and solder the wires to the legs of the LEDs (see picture)
when done put the keyboard back together. you may need to cut a hole for the new wire to get out
important note: not all keyboards work with this
STEP 3: Prepare the Cord and Box
cut the extension lead into 4 equal parts
drill 4 holes into the side of the box
shove the grommets in to the holes
tread the cords trough the grommets (spit helps)
strip the wires (the end thats in the box)
drill 4 holes into the side of the box
shove the grommets in to the holes
tread the cords trough the grommets (spit helps)
strip the wires (the end thats in the box)
STEP 4: Put the Socets On
the extension lead should now be cut into 4 pieces and treaded trough the box
now its time to put the sockets on the cords that don't have any.
the sockets should have instructions on how to wire them
now its time to put the sockets on the cords that don't have any.
the sockets should have instructions on how to wire them
STEP 5: Electronic Bits
now this is the most fiddley bit, putting the circuitry together.
I was too lazy to make a PCB so i soldered wires to the components
I was too lazy to make a PCB so i soldered wires to the components
STEP 6: Put Every Thing in the Box
you need to cut some holes for the switches, wires and lights
make sure all the wires in the box a insulated
make sure all the wires in the box a insulated
STEP 7: Plug It In
Once you have put every thing in the box and it looks like the picture above than you can now start to test it.
plug a lamp (or something) into one of the sockets and plug the keyboard into the computer
then plug the power in and turn on your computer if nothing explodes, good.
now the lamp should flash as the computer boot (this is normal)
when the computer is done push the caps num and scroll lock buttons, an led should light up for each button.
if it doesn't than open it (unplug it first) and check all connections.
if all the lights turn on when you only press one button, than check the connections if that doesn't help than it may be the keyboard, not all keyboards work with this
plug a lamp (or something) into one of the sockets and plug the keyboard into the computer
then plug the power in and turn on your computer if nothing explodes, good.
now the lamp should flash as the computer boot (this is normal)
when the computer is done push the caps num and scroll lock buttons, an led should light up for each button.
if it doesn't than open it (unplug it first) and check all connections.
if all the lights turn on when you only press one button, than check the connections if that doesn't help than it may be the keyboard, not all keyboards work with this
STEP 8: Optinal Stuff
if you want you can use your xbox DVD remote, you will need a USB cable and a piece of circuit board and etch it (theres lots of instructables on how to do this) , then cut so it fits into the plug on the DVD remote sensor
its hard to explain so just look at the pics
its hard to explain so just look at the pics
STEP 9: Software for the DVD Remote
you need software to run the xbox DVD remote:
XBCDRC
once you have installed the software, plug the sensor into the USB port, it should say it found new hardware. if it says "USB device not recognizing" than try moving the connection.
once the hardware is installed run XBCDRC (should be in start menu)
then choose what buttons control num caps and scrol locks
(this picture was taken on an XP computer)
XBCDRC
once you have installed the software, plug the sensor into the USB port, it should say it found new hardware. if it says "USB device not recognizing" than try moving the connection.
once the hardware is installed run XBCDRC (should be in start menu)
then choose what buttons control num caps and scrol locks
(this picture was taken on an XP computer)
STEP 10: How to Use It
if every thing works than you have completed it successfully
the switches on the front are wired in a double switch so you can manually turn on or off the lights
the single pole single throw switch is to disable the lights.
the switches on the front are wired in a double switch so you can manually turn on or off the lights
the single pole single throw switch is to disable the lights.
44 Comments
MartinC31 8 years ago
The USB keyboard gives 5v, and standard relays needs 6v, im using a bc558 transistor but it doesn´t haves enought power to switch the relay. any idea?
Thanks!
zilani 13 years ago
cring 12 years ago
Therefore, the value of the resistance is dependent on the wattage of your LED.
Example - 1/4W LED. 5V - 330ohms 9V - 680ohms 12V - 1kohm 24V - 2k2ohm
Look up Ohm's Law on Google if your voltage/wattage combination isn't listed.
shivangi_nig 14 years ago
programedfiles 13 years ago
K-NiigT 14 years ago
Redgerr 13 years ago
fcassia 15 years ago
srilyk 14 years ago
HTH
qsiguy 14 years ago
prodlad 14 years ago
therian 16 years ago
maffiou 16 years ago
relay 15 years ago
balmacjo 16 years ago
By the way, can you do this without using a keyboard?
I mean just controlling the power switch turn them on and off just using programs on the PC. No manual intervention needed... Via USB connection...
Originally I plan to connect it to a main switch but dont know if it can be possible for very hign voltage...
turbonegro 16 years ago
http://en.wikipedia.org/wiki/Solid_state_relay
easier methinks
relay 16 years ago
wi-fi astronomer 16 years ago
relay 16 years ago
Patented 16 years ago