Hello All…total noob question…I am looking to use the ESP32 to decode the PWM signals from a standard RC receiver. I have been looking around for some ideas but I haven’t found much that a noob like me can grasp
Does anyone know of a library that will work with the ESP32? I assume that the code would be in C++ due to the speed required but if someone has done it with Micropython that would be even better
thanks for your time
bmanfoui
Creating PWM signals are much easier than reading them. That said it probably depends on whether your have a PPM transmitter/receiver. This has an extra port that sends all signals in one go. If not you need to go the pin interrupt route to find the pulse widths etc. This will require a pin on the ESP32 for every channel you want to read and, depending on the board you have, may be in limited supply. Here are some articles I found that should help you on your journey:
https://create.arduino.cc/projecthub/kelvineyeone/read-pwm-decode-rc-receiver-input-and-apply-fail-safe-6b90eb
http://www.camelsoftware.com/2015/12/25/reading-pwm-signals-from-an-rc-receiver-with-arduino/
https://www.instructables.com/Reading-RC-Receiver-PPM-Signal-Using-Arduino/