12VDC/220VAC Relay Module for Arduino (homemade)

by Timofte Andrei in Circuits > Arduino

19619 Views, 54 Favorites, 0 Comments

12VDC/220VAC Relay Module for Arduino (homemade)

2013-01-07 08.41.07.jpg
MODUL RELEU SCHEMA.jpg
2013-01-07 08.41.14.jpg
2013-01-07 08.41.23.jpg
2013-01-07 08.41.35.jpg
2013-01-07 08.41.42.jpg
2013-01-07 08.41.53.jpg
Hi there! Few days ago I've made a small relay module for my Arduino. The problem was that I founded in my local electronic parts shop, relays controlled by 12V instead of 5V as it is required by Arduino. So I checked on internet for schematics and I managed to find a simple schematic that I've changed a bit. For my own comfort (I'm actually scared by high-voltages especially when I use a microcontroller) I added a diode before the resistor that commands the transistor to work like a fuse if a short-circuit is happening (I hope not). I know it might be a stupid or useless idea but it's ok for me. For further insulation I covered both sides of the board with hot glue to prevent accidental touching of the soldered side and also to keep the transistor and wires in place.. I want to use this module to control a lamp via IR remote and I'm also planning to build another module for my future garduino-like project. :) P.S.: The value of the resistor is wrong. I've tried combinations with some resistors and I forgot what's the value of the resistor I've soldered on the board. Also I used D2012 transistor because it was sitting without any use in my recycled parts box. You can use 2N2222 I guess ;) Cheers!

Later Edit: Aaaaaaaaand I made a test! It's another project and because of this project I've built the relay module. The module is connected to 220V, supplied by a 9V battery which I will change with a PSU because the relay will drain the battery fast. Arduino it's also supplied with another 9V battery. Arduino is receiving signals from the IR remote control, decoding and if the code of the pressed button is the same with the code set in the program, it will change the corresponding digital port to the HIGH state which means you can turn on the light :D PS: I'm sorry but I did this "review" in romanian language...