Jump to content

DIY home automation project - adding the Arduino-relay with switches


lingyueqing

Recommended Posts

I'd like to know if anyone can spot any serious electrical issues in what I'm trying to do from an electrical viewpoint.

Youtube Demo

http://www.youtube.com/watch?v=BmsdXMbd2vo

Short version:

  • I have 220V relays (http://www.kynix.com/Detail/2269/CMRD6055.html)in the house, connected to lights and 220V push buttons
  • I want to add an Arduino-controller 220V relay connected to the first one to send short "pulses" of 220V to toggle the existing ones on and off
  • By adding the Arduino-relay in parallel with existing switches i leave the original 'system' intact - if the Arduino stops working I can still use the lights normally, only losing the automation
  • To detect the state of a light, I plan on using ACS712 hall-effect modules

I'm good with writing software, but a novice regarding the electrical side of things.


enter image description here

  • Almost all lights are temporary push-buttons connected to a 220V relay
  • Two locations in the house where all the wires are connected adding a 220V relay in series with the normal light switches, connecting it to an Arduino
  • A 30 amp current sensor is used for detecting the state of the light switch
  • Each Arduino (or at least one in a pack of many Arduinos - where one won't be enough) Ethernet shield is used to send/receive data over a closed network (not accessible from LAN/internet)

The 220V relay that are set up right now were put into place to allow lights to be opened or closed from multiple places from a room. Think of the relay as a 3-sided control circuit

  • One side has the 220V mains coming in
  • One side has the push buttons that work on 220V
  • One side has the output to the light bulb

The 220V is an on/off relay. Each time any button is pushed, it toggles its state, as long as you press a button more than 0.1 seconds (so it said in the relay manual).

My electrician installed the 220V relay, it is not 'normally open' or 'normally closed'. If power goes down and then comes back the lights return to their previous states.

The Arduino-relay has a 5V side for the Arduino, a 220V side for the mains and each relay is rated to 20A at 220V. From my calculations a 100W light bulb is around 0.5A, and I am using 30W lights so I have plenty of margin for error.

To trigger the 220V mains relay all I have to do is use a normally-open Arduino-relay and trigger the closed state for more than 0.1 seconds. I just need to send a 220V "pulse" to the 220V relay.

This is the main reason that the lights will still work as long as power is kept. All the Arduino can fail and the normal lights will work as usual, I will only lose the remote-control possibility and advanced scheduling/scripting.

More information posted on the home improvement board but what I did not post here is not as important from an electrical point of view.

enter image description hereForgot to put in the picture:

  • the top red line coming to the 220v relay is from the mains

  • the red lines on the left and down side of the 220v relay always have 220v on them.

** Youtube Demo ** http://www.youtube.com/watch?v=BmsdXMbd2vo

Link to comment
Share on other sites

Usually you drive relays with a transistor because an arduino can't push enough current to do it. The transistors seem to be built-in on your board so it should be okay. Just make sure to power the relay board with an independant power supply and not the arduino. Otherwise, you will pull too much current from it, which will lower the entire board voltage making the cpu crash and restart.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Member Statistics

    18,198
    Total Members
    6,555
    Most Online
    tharunjohar46
    Newest Member
    tharunjohar46
    Joined
×
×
  • Create New...