loading

Hi guys ,

Welcome to my another instructables.

Today in this instructable we are going to make something really useful and very cool thing a IR Remote Controlled Home Automation System.

The reason i come up with this idea is, i hate to turn on and off my switches in my garage. Because the switch board is little far away from my work bench, So every time to turn on or off my light or something i really need to stand up and go to switch board . It is a horrible problem when i working with something in my garage. So i decided to find a way to solve my problem . I come up with a home automation device.

The best way is to use a IR remote to control through this, i can control multiple devices. The work bench and switch board is approximately about 3 meter away so it will work fine. Using this device you can also control any home appliances like TV, Fan, Lights etc....

It does not cost me enough , i just spend about 15$ or less to make this device.So guys it is super cheep and very useful.

So what you waiting for lets roll........

Step 1: Collect the Parts.

The first and primary step is to collect the necessary parts that we needed to do this project. The parts are super cheap .You can collect from your nearest radioshack.

Here Is The Parts You Needed To Collect :-

  • Arduino uno (or you can make a Diy arduino from here).
  • Relay Module (you can make one yourself from here).
  • Mini BreadBoard.
  • Jumper Wire(male to male).
  • TSOP1738(or any equivalent),
  • Buzzer(optional , used for notification).
  • General Purpose PCB(only need a small piece).
  • Male Header Pin(three pin).

Other Tools Needed :-

  • Soldering Iron.
  • Soldering Wire.
  • Soldering paste.
  • Box(used as enclosure for the device).
  • Utility Knife and glue.

I think that's all we needed.

warning :- In this instructables we are dealing with high voltage so, do not proceed this instructable without wearing safety glass and gloves.

Now lets head to the next step.


Step 2: Solder IR Sensor on the PCB.

In this step we need to solder the TSOP1738 IR sensor to a small piece of PCB. Like the image given above. I know it can directly plug to arduino but some cases the pin will break and the sensor will useless to us, to prevent this i just soldered the TSOP1738 on a small piece of PCB with male header pins, so i can use it like a sensor module.

It is not hard enough to make, see the above images and make one yourself.

After you make one lets jump to the next step.

Step 3: Download and Install IR Library .

Before we proceeding to next upcoming steps. We need to install IRremote library in Arduino IDE.This library is necessary to do this instructable.

To install the Library in your Arduino IDE keep below steps:-


  • First download the IRremote library file from here.
  • Extract the file using the winrar or 7zip.
  • After extracting you will get a folder named IRremote.
  • Copy the folder to your arduino installed folder, in my case it is C:/Program Files/arduino-16.8
  • Then open the folder called Libraries.
  • Paste the IRremote folder there.

We done we just installed the IRremote library.

Lets go to the next step now.

Step 4: Get Hex Code From Remote.

Now in this step we need to take the hex code of the remote button.

The IR remote have unique hex codes for every button, it helps to uniquely identify witch button is pressed on the remote.So first we need to take the hex codes of button that we are going to use on the remote.

Follow This Step To Get The Hex Code From IR remote:-


  • Wire the arduino and TSOP1738 sensor(i gave the pinout of the sensor in above images ) as shown the above schematic diagram.
  • Open Arduino IDE and copy the below code and paste there .
  • Upload the Sketch.
  • Then open Serial Monitor Window.
  • Press the button on the remote that you need to get the hex code.
  • At that moment you will get a piece of hex code in your serial monitor, note it down any where we need that.
#include 

int RECV_PIN = 8;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()

{

 Serial.begin(9600);

 irrecv.enableIRIn(); // Start the receive

}

void loop() {

  if (irrecv.decode(&results)) {

  Serial.println(results.value, HEX);

 irrecv.resume(); // Receive the next value

 }

}

After you get the Hex code we can move to the next step.

Step 5: Wire the Arduino.

Now its time for wiring the arduino and other components together !
See the above schematics and carefully connect all the parts to the arduino. I used some jumper wires to wire the components.

It is a pretty easy , does not have any complicated connections. You can use a mini breadboard to wire up the arduino and component together easily.

Here i explain by parts :-

  • TSOP1738 GND(pin1) To Arduino GND
  • TSOP1738 VCC(pin2) To Arduino 3.3v
  • TSOP1738 OUT(pin3) To Arduino D12

  • Buzzer GND To Arduino GND
  • Buzzer VCC To Arduino D10
  • Relay Module GND To Arduino GND
  • Relay Module VCC To Arduino 5v
  • Relay Module OUT To Arduino D7



Warning:(do not connect the bulb or any home appliances to the relay module out now !)






After wiring the parts together lets move to the next step !





Step 6: Arduino Sketch.

Now its the time for uploading the sketch to the arduino.

Simply just download the below arduino sketch called irautomation.ino , then simply open in your arduino IDE and upload it.

please note:- replace the hex code of remote buttons that you took from your remote and also using this code you can control up to 4 relay module.

Step 7: Powering the Circuit.

So we are uploaded the arduino sketch to arduino board . Now we should check if it is work or not.

Deeply check there is any wrong connections exist, if not then just power up your arduino board.

Now take your IRremote and press the button that you used in the previous steps.

If the relay turn on and hear a beep sound from buzzer, its all fine lets go to the next step.

Else is there any problem in working, carefully check once again the connections and also the arduino sketch.

Then power the arduino once again and check it.

After the successful testing lets go to the next step.

Step 8: Find a Enclosure.

Now we are almost done .

In this step we need to put all our electronics in a box for a safety, because we are using high AC voltage.

Its not a hard step. Find a box yourself that we can use to put all our electronics together. I always make my own custom box myself using form board sheet(here i used an old box that i made for one of my previous instructables).

please note:- Do not use metal box.

Step 9: Done.

At last we made our IR remote Home Automation Device.

Fix it in your garage or bedroom to remotely operate your home appliances or place it any where that you need a remote control.

Good luck guys :)

<p>Hey,</p><p>I am using Arduino with RTC to operate the lights of my home.</p><p>I want at 10 PM all my lights should OFF and at 6 AM same should be ON.</p><p>I have completed everything but only unable to tell Arduino to read time from RTC to operate lights.</p><p>Can it be done by reading Arduino Serial Monitor? If yes, then HOW.</p><p>Also the other possible method to do same through Arduino.</p><p>Thanks.</p>
<p>or share your arduino code . then i can help more on that.</p>
<p>first you need to read the time to a variable or array. the use if condition to check weather it is 10.00pm or6.00am. </p>

About This Instructable

3,550views

66favorites

License:

Bio: My name is suhail. I'am currently Doing my degree for Computer Application . I really love making things from scratch and loves Hiking .
More by DIYmechanics:IR Remote Controlled Home Automation DIY LED TESTER Diy Smart Blind Stick Using Arduino 
Add instructable to: