IR Remote Control Home Automation using Arduino and TSOP1738

Share This

Hello friends! Welcome back to ElectroDuino. This blog is based on IR Remote Control Home Automation using Arduino, TV Remote, and TSOP1738. Here we will discuss Introduction to IR Remote Controlled Home Automation System, Project Concept, Block Diagram, components required, circuit diagram, working principle, and Arduino code.

Introduction

In this modern-day, every home has a TV, DVD, Air Condition, or MP3 player, which is controlled wirelessly using the remote. These remote are communicate with these devices using IR-based wireless communication. In this project, we will control the home appliances by the DVD remote using this wireless communication technique.

Project Concept

The key components of the project are Arduino,  TSOP1738 IR Reciever, DVD Remote, 4 Channel Relay Module. Where Arduino is the main microcontroller of the project that’s controlled all other components. TSOP1738 is an IR Receiver sensor, that can detect 38 kHz IR frequency coming from the IR remote. Here we have used a remote to control home devices.  A Relay Module is an electrically operated switch. Which is used to control AC devices. Here we have used a 4-channel relay module to control 4 devices.

Block Diagram of IR Remote Control Home Automation using Arduino and TSOP1738

IR Remote Controlled Home Automation Block diagram
IR Remote Controlled Home Automation Block diagram

Components Required

Components NameQuantity
Arduino UNO1
TSOP 1738 IR Receiver sensor
1
4 Channel Relay Module1
DVD Remote (any IR Remote)1
AC Bulb with Holder and Wire4
PCB Prototyping board1
12V DC Power supply1
220V AC Power supply 
Connecting wiresAs required in the circuit diagram

 

Tools Required

Tools NameQuantity
Soldering Iron1
Soldering wire1
Soldering flux1
Soldering stand1
Multimeter1
Desoldering pump1
Wirecutter1
Screwdriver1

“IRremote” library download from https://github.com/z3t0/Arduino-IRremote

TSOP 1738 IR Receiver sensor

TSOP1738 is an IR Receiver sensor, it is consists of a Photodetector and signal demodulator. It can detect 38 kHz IR frequency coming from the IR remote. The TSOP1738 sensor operates on 5V dc power supply and consumes around 5mA to operate. This sensor has 3 terminals, these are GND(ground), VCC(+5v), and Signal pin. we need to connect the signal pin to a microcontroller to read the received data by the sensor. 

TSOP 1738 IR Receiver sensor
TSOP 1738 IR Receiver sensor

IR Remote

IR(InfraRed) remote is used to control devices IR based wireless communication. It emits InfraRed light when we press the button. Each button can emit a particular frequency of IR light. The main feature of IR Remote is that it can control a specific device. For example, a TV remote can control a particular TV.

Circuit Diagram of IR Remote Control Home Automation using Arduino, TV Remote, and TSOP1738

IR Remote Controlled Home Automation using Arduino
IR Remote Controlled Home Automation using Arduino

Circuit Wiring

Components PinArduino pin

TSOP 1738 IR Receiver and Relay Module Vcc Pin

5V pin
TSOP 1738 IR Receiver and Relay Module GND PinGND Pin
TSOP 1738 IR Receiver Out PinDigital Pin “D2”
4 Channel Relay Modules IN1, IN2, IN3, IN4Respectively  Digital Pin “D7”, “D6”, “D5”, “D4”,  
12V Power supplyExternal DC Power supply for operating Arduino

Working Principle IR Remote control home automation

In this project, we have used a simple Method for control (ON/OFF) a single home appliance device by a single button of Remote, this Method is known as Toggle [EVEN ODD] Method. As an example, we can turn ON and OFF of a device using the Remote button “1“.

At first, we will identify 4 buttons of the remote for controlling 4 devices. Here we have used 1, 2, 3, 4, and Power button of the IR remote. The power button is used to turn ON or OFF all devices same time.

When we pressed any button of the remote, the IR LED of the remote sends a unique encoded signal. The TSOP1738 IR Receiver sensor received this signal and send it to the Arduino. First of all, the Arduino decodes the signal and converts it into a hex value, and store the value into the variable. For that, we need to use a special library called “IR remote” in the Arduino program. Then, the Arduino compares the decode hex value with the predefined hex value of the pressed button. If this value is matching then Arduino sends an operating voltage to the relay module for turns ON the device.

If we again press the same button then it sends the same code. So, Arduino gets again the same code and the Arduino compares the decode hex value with the predefined hex value of the pressed button like before. But this time Arduino stop sending operating voltage to the Relay module and turns OFF the device because of Toggling the bit [EVEN ODD] (i%2).

IR DVD Remote HEX Value Decoding using Tshop1738 and Arduino

IR DVD Remote HEX Value Decoding using Tshop1738 and Arduino
DVD Remote HEX Value Decoding using Tshop1738 and Arduino

Arduino Code for IR Remote Control Home Automation

 

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *