Calculating Time Between two rising edge

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
makram
Posts: 13
Joined: Thu Aug 13, 2020 7:14 pm

Calculating Time Between two rising edge

Post by makram » Wed Oct 07, 2020 12:00 pm

Hi Everyone,
Can anyone please suggest me an effective way to calculate time between two rising edges.
and i'm reading this rising edge on our GPIO pins

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Calculating Time Between two rising edge

Post by pythoncoder » Thu Oct 08, 2020 6:38 am

You'll need to supply a bit more information for us to offer a meaningful reply. What is the minimum time interval you expect to measure and what accuracy are you hoping for? As a very general point, if you're talking sub millisecond accuracy ESP32 is not very good at this kind of thing, at least until RMT input is supported.
Peter Hinch
Index to my micropython libraries.

Post Reply