How to Interface Tv Remote With Arduino | Home Automation | Ir Receiver Arduino

by vishalsoniindia in Circuits > Arduino

890 Views, 4 Favorites, 0 Comments

How to Interface Tv Remote With Arduino | Home Automation | Ir Receiver Arduino

IMG_20210625_040525.jpg
how to Interface tv remote with arduino | home automation | ir receiver arduino #shorts #vishalsoni

Please subscribe to my youtube channel.......

In this tutorial we gonna learn how to use TV remote to control house devices. Or you can say TV remote based home automation.

Requirements

Screenshot_2021-06-25-03-41-16-092_com.miui.videoplayer.jpg
  1. Arduino Uno
  2. Breadboard
  3. Led (2)
  4. 330 ohm resistor (2)
  5. Tsop38238 (ir receiver)

Types of IR Receiver

Screenshot_2021-06-25-03-41-30-954_com.miui.videoplayer.jpg
IMG_20210623_224416.jpg

There are many IR receiver available in market so if you found other ir receiver then please cross check pin out once on Google.

Tv Remote With Arduino Circuit

Glorious Migelo.png

In the image above there is circuit diagram to interface tv remote with arduino.

Ir receiver connected at 4rth pin

2 led is connected at 6 and 7 pins

Install IR Remote Library

Screenshot_2021-06-25-03-45-42-851_com.miui.videoplayer.jpg
Screenshot_2021-06-25-03-45-54-464_com.miui.videoplayer.jpg
Screenshot_2021-06-25-03-46-06-081_com.miui.videoplayer.jpg
  1. Open Arduino
  2. Click on sketch
  3. Click on Include Library
  4. Click on Manage Libraries
  5. Search IRremote
  6. Install IRremote by shirriff

Code for Ir Remote With Arduino

IMG_20210625_034745.jpg
IMG_20210625_034956.jpg
Screenshot_2021-06-25-03-48-10-425_com.miui.videoplayer.jpg
  1. Download code from my github page.
  2. Open Get_remote_data code in arduino.
  3. Connect your Arduino with pc
  4. Select correct board and port
  5. Upload the code.

Github :- https://github.com/vishalsoniindia/TV_remote_with_...

Get TV Remote Data With Arduino

IMG_20210625_035146.jpg
Screenshot_2021-06-25-03-52-16-246_com.miui.videoplayer.jpg
Screenshot_2021-06-25-03-52-46-984_com.miui.videoplayer.jpg
  1. Open Serial monitor
  2. Now put tv remote in front of your sensor.
  3. Press any button in tv remote.
  4. Now you will see some data on serial monitor.
  5. If you see FFFFFFF values, please ignore it.
  6. Copy and paste your remote button data in notepad as show in image

Control Led by Tv Remote

IMG_20210625_035504.jpg
IMG_20210625_035527.jpg
Screenshot_2021-06-25-03-55-51-515_com.miui.videoplayer.jpg
Screenshot_2021-06-25-03-56-15-326_com.miui.videoplayer.jpg
Screenshot_2021-06-25-03-56-23-231_com.miui.videoplayer.jpg
Screenshot_2021-06-25-03-56-28-215_com.miui.videoplayer.jpg
  1. Open the code placed in the same folder download by github.
  2. Copy remote code from note pad and paste it in switch case as shown in image.
  3. For better understanding you can see my video.
  4. Now upload the code.

GitHub :- https://github.com/vishalsoniindia/TV_remote_with_...

Done

Screenshot_2021-06-25-03-56-53-445_com.miui.videoplayer.jpg
IMG_20210625_035731.jpg
Screenshot_2021-06-25-03-57-54-752_com.miui.videoplayer.jpg

All done now you can see i am controlling led from my remote.

If you want to control any home appliances then just add relay at place of led.