Hey everyone, I’m working on a project to control my TV using an IR transmitter with an ESP32. I’ve got this YS-IRTM board and I’m trying to read IR codes from my remote and send them to the TV. I’ve set up my ESP32 with the necessary UART configurations, but I’m stuck on reading data from the serial interface. I’m not very familiar with C++, which is making this a bit challenging. Here’s my current setup:
markdown
- ESP32 Configuration: I’ve configured the ESP32 with UART pins 26 and 16 for TX and RX respectively, set at 9600 baud rate.
- Custom Component: I’ve created a custom component to handle UART communication, but I’m not sure if it’s correctly reading the data from the serial interface.
- Questions: Can someone help me understand how to properly read IR codes from the serial interface? Is there a better way to handle the data parsing in C++? I’m also wondering if there are any libraries or examples that could simplify this process.
I’d really appreciate any guidance or suggestions on how to proceed with this project. Thanks in advance for your help!