Arduino Relay Driver

I’m describing the Arduino relay driver I made to control my doorbell.

I read a great article from Maurice’s Hobby Robotics site:

and the schematic I used is here:

View the code at:
Be really careful around high voltage! Stay away from water, wear rubber soled shoes, don’t touch wires that make you part of the circuit, and don’t do any other unsafe activities!

Duration : 0:6:1

Related Reading:

Incoming search terms:


Be Sociable, Share!

Technorati Tags: 1N4004, 2n2222, arduino, diode, driver, electronics, monitor, projects, relay, serial, transistor

17 thoughts on “Arduino Relay Driver

  1. @aaronandnicole, I …
    @aaronandnicole, I used relay with part number OJE-SH-105DM. It could handle up to 5 Amps at 240V AC. The data sheet for it says: Rated Coil Voltage = 5 VDC, Nominal Current = 91 mA, Must Operate Voltage = 3.5 VDC. I was able to use it with the Arduino. I don’t think you can add current by having more than one output pin. I think you may need an external power source. The place you bought the relay board from may be able to anwser the question better. I’m always learning more about relays.

  2. That makes sense. I …
    That makes sense. I have just ordered a arduino mega and a 4 relay board for a differential temp/pump controller system. Did you have any problems with the relay needing to many Many mA. I think the arduion puts out about 40mA and the relays I need consume about 72. Do I wire up 2 output pins at once? Thanks in advance.

  3. @aaronandnicole, I …
    @aaronandnicole, I always take some sample code from the Arduino software and modify it. So I guess it always uses pin 3. According to the Arduino documentation: Each of the 14 digital pins on the Duemilanove can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions. Some pins have specialized functions also, check out the Arduino web site and choose the “Hardware” link. YouTube isn’t letting me post the URL.

  4. @Froggy19510 Thanks …
    @Froggy19510 Thanks for checking out the video and thanks for the info. I read that it was there to protect against any surges but I didn’t know exactly how they could happen.

  5. Very good video. …
    Very good video. FYI there is always high voltage across the power leads on the relay when it releases. It acts like a solenoid and produces high voltage spikes . That is the reason for the diode.8)

  6. @mrmeval1, thanks …
    @mrmeval1, thanks for the good information about relays. I just used the one that was mentioned in the hobby robotics article.

  7. Thanks for the …
    Thanks for the video. 🙂

    You can find relays in all kinds of stuff that’s thrown away. The specifications are usually printed on them or you can look up part numbers at octopart or google.

    If you’re using an SSR most can be directly driven by an Arduino digital pin. Do Not pulse CCFL’s more than once every minute or they will die and in some cases shatter the bulb.

  8. i also think its …
    i also think its great for a girl doing advanced electronic work i am also doing work with an arduino and i love it email me sometime well talk hope to hear from u soon\

  9. That sounds like …
    That sounds like you’ll have some fun projects with the arduino and your car. Download the Arduino IDE. It comes with a lot of great code samples. When I want to program the arduino I just take some code that is already written and just modify it a little to do what I want. If you have specific questions, send me a message and I’ll try to help out.

  10. hi girl, nice …
    hi girl, nice videos, like girls doing electronic things,,,, i doing something similar, i what to control mi car whith micro controler, i have the BS2 by parallax, y just bought my ardunio mega in ebay im waitin for it, but i dont know about arduino code, can u hellp me please? I have some videos on my channel

  11. Hi. i’m making a …
    Hi. i’m making a photo camera shutter control on my Arduino. I have a plan to use two relays to control focus, and activate snap shot. when i’m finish i will respond here with it 😉 have a nice day.

Leave a Reply