RMT Peripheral - Receiving
Posted: Mon Jul 03, 2017 5:00 pm
Hi there,
I've been fighting with the receiving part of the RMT peripheral for some time now. I have a known working TSOP 1738, with two separate and seemingly fully functioning ESP32 boards. One is an ESP-WROOM-32 and the other is a ESP Dev Kit C. Main problem is I can't get any pulse data from the ring buffer, it's always empty.
I'm running the NEC IR demo from esp-idf. I commented out the TX task, and also commented out RMT_RX_SELF_TEST which I believe I'm supposed to do when using real hardware.
I have Vcc hooked up to 3v3 coming out of the esp, GND to GND, and Vout to GPIO 19 like in the example. I've confirmed that the IR receiver works with an ESP8266.
Example here: https://github.com/espressif/esp-idf/bl ... nec_main.c
I've tried adjusting quite a few of the timing parameters, trying out different GPIO pins, adding a decoupling capacitor and a pull up resistor to the receiver, changing the CPU's clock speed, trying other ESP32 boards, and I just have no idea what I need to do to get this to work. If it helps at all, the signals I'm sending are just from consumer remotes, typical 38kHz carrier waves.
Any help is appreciated, maybe I'm not setting the timing values correctly or something simple like that. Thanks for your time!
I've been fighting with the receiving part of the RMT peripheral for some time now. I have a known working TSOP 1738, with two separate and seemingly fully functioning ESP32 boards. One is an ESP-WROOM-32 and the other is a ESP Dev Kit C. Main problem is I can't get any pulse data from the ring buffer, it's always empty.
I'm running the NEC IR demo from esp-idf. I commented out the TX task, and also commented out RMT_RX_SELF_TEST which I believe I'm supposed to do when using real hardware.
I have Vcc hooked up to 3v3 coming out of the esp, GND to GND, and Vout to GPIO 19 like in the example. I've confirmed that the IR receiver works with an ESP8266.
Example here: https://github.com/espressif/esp-idf/bl ... nec_main.c
I've tried adjusting quite a few of the timing parameters, trying out different GPIO pins, adding a decoupling capacitor and a pull up resistor to the receiver, changing the CPU's clock speed, trying other ESP32 boards, and I just have no idea what I need to do to get this to work. If it helps at all, the signals I'm sending are just from consumer remotes, typical 38kHz carrier waves.
Any help is appreciated, maybe I'm not setting the timing values correctly or something simple like that. Thanks for your time!