Remote Controlling Home Appliance Using your TV Remote

Introduction

Let’s learn to control our home appliance using the TV or DVD player remotes or smartphones phones like Xiaomi which is having an inbuilt IR transmitter.

We are using a Relay channel with an Arduino and IR receiver to control our home appliances.

If you haven’t watched the previous tutorial watch it before reading further. ????????

How to use IR remote with Arduino?

Hardware Used

ComponentsAmazon.comamazonBanggood.combanggoodAliExpressali expressUtsourceutsource
Arduino UNOcart iconcart iconcart iconcart icon
5v Relay Channelcart iconcart iconcart iconcart icon
IR Receiver Modulecart iconcart iconcart iconcart icon
Bread Boardcart iconcart iconcart iconcart icon
Jumper Wirescart iconcart iconcart iconcart icon

Software / Libraries Used

SoftwaresDownload
IR library for Arduinodownload icon
Arduino IDEdownload icon

Circuit

Connect the circuit as shown below.

Arduino UNO with 2 channel relay and IR receiver.
ArduinoRelay ChannelIR Receiver Module
GNDGNDGND
5VVCCVCC
D11OUT
D9IN2
D8IN1

Video

Code

How to assign buttons to the relays?

  • First, upload the above code and open the serial monitor.
  • Then press the buttons on the IR remote which you want to assign to the relays.
  • So some values will be printed on the serial monitor for the press of each button.
  • Copie the code from the serial monitor and change it in the code where it is mentioned
  • Then upload the code again
  • Now if you press the same buttons which you assign then the relay will ON for the first press and it will OFF if pressed again

How to connect it to the home appliances?

Use the NO(normally open), C(common) & NC(normally closed) connections of the relays to connect to the high voltage appliances like fan, lights, etc…

To buy electronic components order from UTSOURCE

Leave a Comment

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