The Complete Smart Home

85,432

298

35

Posted

Introduction: The Complete Smart Home

This project can turn on and off the simple 6A loads like fan and lights depending upon the relay ratings.

Up to 16 loads can be switched on and off from any phones with Android, iOS, Java, Windows or anything web based. Android have app for it.

In case for switching HV appliances like AC, Refrigerator, Washing machine a contactor to be incorporated.

Step 1: Parts

Here I have used the DPDT relay where SPDT relay is sufficient.

First and foremost, working on 230V is dangerous have a certified Electrician for all wiring purposes.

1. Wifi Router with Ethernet port + Adapter + Patch Cord

2. Ethernet Relay Board RCD1610-RJ45 Link

3. 1 x 2A MCB (here I used 10A MCB)

4. 1 x 16A MCB

5. 16 x SPDT Relay base rail mounting type

6. 16 x SPDT 24VDC Relay

7. 9 x Terminal Connectors (depends upon wiring)

8. 222 Wago Connectors (depends upon wiring)

9. 12V 2A Adapter for powering Relay Board

10. 24V 3A Adapter for powering external relays

11. 2 x wiring channels

12. 2 x DIN rail

13. 16 x SPDT switches (Optional for fail safe mechanism)


Step 2: Schematic

Here I have shown only one control, rest 15 controls are copy of the circuit.

Phase is routed via a 16A MCB to a optional SPDT switch which acts as a fail safe to if the total circuits fails someway

Here this circuit optional has been bypassed

Load can be switched either ways via a normal switch or through the RCD board with wifi router. This is simple two way switching.

THE RATING OF THE RELAYS IN RCD BOARD ARE ENOUGH TO DRIVE THE 6A 230V LOAD. JUST IN ORDER NOT TO HAVE 230VAC TO THE BOARD I HAVE INCLUDED THE EXTERNAL RELAYS WHICH TAKES THE 230VAC AND ALSO FOR EASY REPLACEMENT OF RELAYS IN FUTURE. THE COIL VOLTAGE OF RELAYS ARE CONTROLLED BY THE RCD BOARD WHICH IS 24VDC.

Point A is branched to 16 230VAC and connected to the common terminal of external relay

Point B is branched to 16 +24VDC and connected from common of rcd board relay and coil A1 of the external relay

Point C is branched to 16 -24VDC and looped together and connected to NO of rcd board relay and coil A2 of the external relay

All three adapters and powered through a 2A MCB

Other end of the load is connected to a common Neutral of 230VAC.

Step 3: Surface Preparation

As my initial plan was not to have the panel to be placed, so removed some wall blocks to place the panel

Step 4: Initial Wiring and Testing

Here I have used a optional SPDT switches for failsafe and testing purposes.

wiring came complicated which led to removal of some optional items.

Step 5: Panel Assembling

This is completely your self idea to design custom panel

As the circuit and wiring gets complicated, have decided to do the DC wiring in the panel and connect the power source and 2 way wiring connection after placing the panel inside the enclosure.

Step 6: Panel Wiring

Panel wiring I have used some 2 way, 3 way and 5 way wago 222 connectors.

Since on 230VAC using tapes and joints is not reliable

External relay makers are OEN and Goodsky, which is readily and easily available here.

Make sure all metal boards are earthed properly.

Step 7: Adding Wifi Router

Since the board uses Ethernet, it should be connected to the Router

Router to be placed in a central area where loads can be switched with enough wifi signal.

1. Connect the patch cord to the rcd board and other end to one of the router lan port

2. Power on the rcd board and wifi router

3. By default rcd board has ip 192.168.1.25 and port 80 and access code 123456

4. Now ping 192.168.1.25 from your computer and confirm reply

5. If failed turn off the firewall

6. Once wifi connected it will have limited connectivity only

7. Once ping is successfull open browser to http://192.168.1.25/web

8. Enter the access code 123456

9. 1 to 16 relays can be switched from here

Step 8: Android and Windows App

Android and windows app can be downloaded from here

http://www.apatce.com/en/software/

System is double secure

1. Secure the wifi router with authentication password

2. Change the access code to any by following the datasheet

http://www.apatce.com/en/wp-content/uploads/2014/0...

Step 9: Notes

Upon successful router addition remember to add the below code to maintain power off memory which provides memory function, when the function is turned on, the relay state is saved when there is a power failure.

This prevents change over of relay making some load to toggle its power state.

Just copy paste this to the address bar on a successful ping of 192.168.1.25

http://192.168.1.25/cfg/other?ac=123456&rb=1

ANOTHER IMPORTANT NOTE IS THAT THIS TYPE OF SWITCHING IS TWO WAY SO THE STATE OF RELAY SPECIFIED CAN BE DIFFERENT FROM ACTUAL IF BOTH MANUAL SWITCH AND WIFI BASED SWITCHING IS USED.

Apologize for the low quality video.

Any doubts feel free to mail me at

kua201@gmail.com

-Kumaran

Share

Recommendations

  • Space Challenge

    Space Challenge
  • Microcontroller Contest

    Microcontroller Contest
  • Spotless Contest

    Spotless Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

27 Comments

Can you please tell me the brands of the din rail mount and the relay you are using along with the amp rating?

Board relays and second extra relays are both 10A. Din rail mounted items are local retail purchase.

hello Sir, I study your project. I have one query. when my manual switch is off then I am not able on the light using the mobile app. so always need to take precaution to turn on my manual switch on. one more query some reason LAN internet not working then how do I control all light?

You can control loads with both manual switches and also through mobile app provided relay and manual switches are wired as staircase wiring. FYI there is no internet involved here, switching is through LAN only.

It would be cool instructables had a deal with newegg or other retailer where they could put a bundle deal of the parts to do these projects for a quick buy.

this was a hard build and expensive one as well

I am working on a low cost version with enhanced features, will post once done

will I be able to control the lights from the wall switch also ?? or just using the smart phone to control them ? Thanks

Both wall switch and wifi can be used for switching

This is a wonderful projrct, sir!... May I ask where you purchased the enclosure? as pictured.. I can find no info on it... Thanks!

enclosure.jpg