How to Make a Simple Home Automation System

by AshokK17 in Circuits > Arduino

30068 Views, 274 Favorites, 0 Comments

How to Make a Simple Home Automation System

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]

Requirement

3.png
100PCS-font-b-BC548-b-font-BC548B-NPN-font-b-Transistor-b-font-TO-92.jpg
-100-pcs-lot-12V-SPDT-Relay-250V-AC-30V-DC-10-Amp.jpg
19706682-Set-of-color-3-mm-LED-diodes-isolated-on-white-background-Stock-Photo.jpg
img_6107a.jpg
TSOP.jpg
2-54mm-0-1-40-pin-female-header-3.gif
  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.

Design and Make PCB

pcb home.jpg
exposure3.jpg
pcb_iron.jpg
58422b667a9cb60670000e2d.jpeg

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.

Attached Component

schmetic.jpg
DSC00032.JPG
942486611_849.jpg
DSC00031.JPG
DSC00042.JPG

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.

Scan Raw Value

light_arduinopna4602.gif
universal-remote-cluster.jpg
ex32p1sm1.jpg

Now its turns to choose any remote as you want for controlling purpose. And download Arduino IR library and 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.

Raw Value Put in Arduino Code

Untitled-1 copy.jpg

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.

Test It

DSC00041.JPG
DSC00044.JPG

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