4 ms·
This is fantastic. It's well written and a pleasure to read, and I learned a ton along the way. I look forward to trying this when I have some downtime. Than
by enobrev 9y ago
This is fantastic. It's well written and a pleasure to read, and I learned a ton along the way. I look forward to trying this when I have some downtime. Thanks for taking the time to research, write, and share it.
- bschwindHN 9y agoThanks for reading! If you decide to do a project with IR communication, be sure to research things like signal interrupts and hardware support for generating waveforms. On the Pi I'm basically using a busy loop to decode the signal in Python. It's not too elegant or efficient but it can usually get you what you need. A more accurate (and more efficient) approach would be to either use a microcontroller that can record timestamps during pin interrupts from the IR receiver, or use a chip that has hardware support for receiving signals. The ESP32 has a nice peripheral for sending and receiving IR signals without tying up the main processor(s): https://esp-idf.readthedocs.io/en/v1.0/api/rmt.html https://esp-idf.readthedocs.io/en/v1.0/api/rmt.html But if you just need to decode and send a few different signals and only have a Pi, my approach works well. Been using it for close 1.5 years now without any trouble.
- xvf22 9y agoUsed your library to smarten up my window AC. Didn't notice the ESP32 RMT, I may just upgrade my current setup, thanks!