Introduction: How to Make a Simple Home Automation System

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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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 : - technocrat.tech.blog

Comments

peachville (author)2017-11-23

Very nice project! I'm planning to build but the TSOP1738 seems harder to find in North America with reasonable shipping costs and speed. I did however find a TSOP4838 (same frequency but different pinouts) available with cheap/fast delivery on eBay. I'll just swap the pin connections to suit.

Also, rather than play with the transistors and hand crafting the circuit board (although very nicely done), I'll just use an off-the-shelf 8 x relay board with built-in optocouplers. We have pins D2 - D5 available on the Nano so an 8 gang relay will create an additional 5 outputs too.

AshokK17 made it! (author)peachville2017-11-24

You are doing pretty well.

TSOP4838 work same as TSOP1738 only things is that pin configuration is different.

If you can able to drive 8 relays directly from Arduino is good or if not then try this.

To drive 8 relay form Arduino is quite difficult because Arduino has limited current to drive 8 relays. So you can use an extrnal power supply for the relay module. And don't forget to connect ground pin as common in Arduino and external power supply.

peachville (author)AshokK172017-11-25

Many thanks AshokK17. As you say, "you can use an extrenal power supply for the relay module". After blowing up a few Nanos as a newbie, I always power all gang relays externally with 5VDC to the JD-VCC pins and cut that nasty GND pin right off just in case I forget. :) I have an existing Douglas low voltage lighting system in my home which switches the 110VAC via 24VAC control. Each control switch sends either a negative pulse (OFF) or positive pulse (ON) with the use of diodes. It'll be handy to incorporate your project into this (sketch for 3 relays attached). I may even add a couple more IR receivers to control different rooms.

AshokK17 (author)peachville2017-11-30

can you send your Email ID.

Roland_Arilla (author)2017-07-29

Will you please send the codes on this email? Rolandarilla24@gmail.com . Thanks a lot.

Blaze smith 1233 (author)2017-04-28

how do you play games on it

sorry i can,t understand your question.

This instructable is not about games.

miralaxel (author)2017-04-11

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

aliaksak33@hotmail.com

Thank you

AshokK17 (author)miralaxel2017-05-16

i uploaded code in this instructable.

plz download here.

Thanks

Diamond2017 (author)2017-01-30

Please, can u send the project with all details and source code to my email: diana20120101@gmail.com

Thank you .

AshokK17 (author)Diamond20172017-02-03

i send complete document file in your Email id.

ElectronicaXAB3 (author)2017-01-21

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

AshokK17 (author)ElectronicaXAB32017-01-21

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 :)

AMbros Custom (author)2017-01-20

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

rwhit052 (author)2017-01-12

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

golirajesh (author)2017-01-07

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

golirajesh (author)golirajesh2017-01-07

can anyone help me please

AshokK17 (author)golirajesh2017-01-07

Hello,
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.

KrX. (author)2017-01-06

hi,

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

AshokK17 (author)KrX.2017-01-06

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.

akn1 (author)2016-12-25

how to make it with arduino uno. ?

AshokK17 (author)akn12016-12-25

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

akn1 (author)2016-12-25

check some of my instructables also

diy_bloke (author)2016-12-24

well done. reserve 1 pin for a 433MHz transmitter and the possibilities become endless

AshokK17 (author)diy_bloke2016-12-24

Thanks for comment

Akshay Jha (author)2016-12-23

Nice & simple instructable

AshokK17 (author)Akshay Jha2016-12-23

Thanks bro

About This Instructable

18,068views

265favorites

License:

Bio: 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 ... More »
More by AshokK17:How to Make a Simple Mobile Power BankHow to Make a Simple Home Automation SystemArduino Tutorial 1. Blinking LED Part 1
Add instructable to: