Skip to content

Using ESP32 to control IR Devices with Google assistant integration

Notifications You must be signed in to change notification settings

Kavex/ESP32_Smart_Home_IR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

ESP32_Smart_Home_IR

Using ESP32 to control IR Devices with Google assistant integration

What You need

  • ESP32 Development Board
  • Arduino IDE
  • IRremoteESP8266 Lib
  • SinricPro Lib
  • TL1838 Infrared Receiver
  • Diymore PCB0100 Infrared Transmitter or another 3.3v compatible Infrared Transmitter
  • Cables!!!!
  • Breadboard for testing!!!!
  • ESP32 Terminal Adapter for testing!!!!

How to get IR Codes:

Using a TL1838 Infrared Receiver you can get the IR codes from your remotes on Pin 14

image

image

image

ESP32 Code under Testing\IR_ReceiverTest\IR_ReceiverTest.ino

Once the code is uploaded to your ESP32 you can use Serial Monitor in Arduino IDE to check the output

You can change the pin if you want in the code. not all pins work so best to look it up.

** Example Codes **

Samsung DVD Player Codes

Power:0x2D51D3B4

Vol+:0x15D943B8

Vol-:0x2D4F7194

Mute:0xA5A1E0F8

Function:0xCA949638

LG TV Codes

Power:0x20DF10EF

Vol+:0x20DF40BF

Vol-:0x20DFC03F

Input:0x20DFD02F


How to send IR Codes:

I used a Diymore PCB0100 Infrared Transmitter because it's easy but you could use a regular ir transmitter led with a resistor

image

ESP32 Code under Testing\IR_TransmitterTest\IR_TransmitterTest.ino

edit the defined code and test it out.


How to turn it smart:

We will be using https://sinric.pro/ because it's easy and offer 3 devices free

  1. Add a device and name it whatever. I called mine TV
  2. Grab your Device ID from Devices Tab
  3. Go to credential tabs and get your App Key and App Secret
  4. Edit the script with wifi, IDs, and Keys
  5. Add SinricPro to Google Home
  6. Bam Done!