How to Make a Simple Home Automation System





Introduction: How to Make a Simple Home Automation System

About: I love electronic and made new things. Electronic gives to us lots o adventure and explore new things. DIY is the best way to learn and make new electronics feature.

Home automation gives you access to control devices in your home from a mobile device and other device anywhere in the world. The heart of device is programmable microcontroller devices, like Arduino, Raspberry pi, BeagleBone Black, SparkCore, DigiSpark, DigiSpark, ExtraCore system, but home automation more accurately describes homes in which nearly everything -- Room light, cooling AC, Motors, Fans, control any A.C. devices and D.C. devices are hooked up to a remotely controllable network. From a home security perspective, this also includes your alarm system, and all of the doors, windows, locks, smoke detectors, surveillance cameras and any other sensors that are linked to it.

This instructable is based on IR (Infrared) remote technology. In which you can control any A.C. and D.C. device by using a simple T.V. and other normal remotes. In today smartphone have a feature of IR transmitter which is easily available in market at a middle budget.

Lets gets Started.....

[Play Video]

Step 1: Requirement

  1. Arduino Nano
  2. Relay 5V
  3. LED
  4. Transistor BC548
  5. Female header
  6. 5V charger/5V power supply
  7. Srew terminal
  8. IR receiver TSOP
  9. PCB
  10. Encloser
  11. Copper PCB
  12. DipTrace Software and other Stuffs.

Step 2: Design and Make PCB

All stuff for PCB, Arduino library and code.

Design PCB in PC software and than print on a Photo paper by using a laser Printer. Take a new copper PCB and clean it. Iron the photo paper on PCB and than Etch the PCB. After that drill the hole by mini drill machine as hole size component required.

Step 3: Attached Component

Follow the schematic.

First check data sheet of transistor and Relay and collect useful information like transistor pins detail, relay connection, LED terminals, power supply and IR transmitter. Than placed all component and soldered it carefully as shown in image. Soldered fist all small components.

  1. On the PCB one copper line for transistor Emitter terminal is always connected to GND.
  2. Arduino nano mostly gives 5 V output so LEDs positive terminals is connected to Arduino output pins.
  3. LED negative terminal is connect to Base of transistor. (Use of indicate ON/OFF state)
  4. Pins 7,8,9 is use for output signal as ON/OFF state.
  5. Pin 11 is use for receive the IR signal by IR receiver.
  6. Connect IR Receiver TSOP 1738. ( Check pin configuration )
  7. Connect Female header at the position of Arduino nano.
  8. Connect relays.
  9. At the last stage connect 5 V regulated power supply.

Step 4: Scan Raw Value

Now its turns to choose any remote as you want for controlling purpose. And download Arduino IR libraryand past in Arduino library. And do not forgot to delete the library file of Robot_IRreceiver. Open Arduino IDE and click on File---Example---IRremote---IRrecvDemo.

Connect Arduino to PC and Select COM port and Type of Board in Tools. After selection both things Upload the sketch in Arduino. Connect IR receiver to Arduino Board. ( first see pins of your's TSOP IR receiver from data sheet)

Now press remote buttons, you receive some Hexadecimal value. Note down all values of remote transmit in front of buttons of remote in a list.

Step 5: Raw Value Put in Arduino Code

Which buttons are going to use put that button value in Arduino sketch. Process of changing values are given in above image.

Select COM port and board type in tools: COMxx ---- Arduino Nano

Complete the sketch and upload to Arduino Nano board.

At the final stage connect the Arduino Nano to PCB board.

Step 6: Test It

This times to testing the whole circuit. When your test is completed than Connect the relay to your's Home appliances as a Normal switch connection.

You done all thing. Now your Home automation is ready.

I hope you enjoy this instructable and thank you for reading this instructable

Please like and subscribe My youtube channel for new updates : - Technocrat

Blog : -



  • Oil Contest

    Oil Contest
  • Water Contest

    Water Contest
  • Clocks Contest

    Clocks Contest

24 Discussions

Will you please send the codes on this email? . Thanks a lot.

sorry i can,t understand your question.

This instructable is not about games.

please can you send document and source code to my email:

Thank you

1 reply

i uploaded code in this instructable.

plz download here.


Please, can u send the project with all details and source code to my email:

Thank you .

1 reply

i send complete document file in your Email id.

Please post the code on instructables, so it doesn't get lost. Nice project!

1 reply

This instructable code i never delete and if you want complete data so please give me your Gmail ID. i will send all details and code.

Thanks for suggesting me :)

well done....check mine instructable too..

also, I did not see the library you mention in the download file.

hii ,i am unable to compile the code due IRreceiver
when i connect the ir receiver to the board shows board error

2 replies

You have problem of Arduino communication with PC.
1. This problem is overcome by replugging Arduino board.
2. If you face problem of IRreceiver library than you add library of IRreceiver given in Download file.

Add library file in arduino library and do not forget delete ROBO-IRreceiver library.

I hope your problem is solved.


1 year ago


it seems like a really nice project. what would i need to do to change it from IR to RF ?

1 reply

RF home automation no need microcontroller. By using a simple RF module and Relay you can make this.

If you want to make RF based home automation system by using microcontroller you need to change in program code and input pin for microcontroller board.

and program inputs pin as a receiver of RF module and connect output pin of microcontroller to Relay.

You can use IC like HT12E and HT12D with RF module.


1 year ago

how to make it with arduino uno. ?

1 reply

Its same as arduino nano. Only the size of arduino board is different and code remain same.


1 year ago

check some of my instructables also