• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Measuring PWM pulse width

Q&A Forum › Category: ESP32 › Measuring PWM pulse width
0 Vote Up Vote Down
Bryan McNeil asked 4 years ago

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

Question Tags: RC receiver read PWM
1 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

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/
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.