[SOLVED] Polling pin at 13_us rate ?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
pidou46
Posts: 101
Joined: Sat May 28, 2016 7:01 pm

Re: Polling pin at 13_us rate ?

Post by pidou46 » Wed Jul 29, 2020 1:55 pm

Thanks for your help.

I hope the digital dial gauge I ordered will work with theses timmings. I will post an update then.

If not I will follow pythoncoder advice and go for a pyboard

Or maybe RMT receive or PCNT will come to esp32 since then (somewhere close to Christmas)
nodemcu V2 (amica)
micropython firmware Daily build 05/31/2016

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [SOLVED] Polling pin at 13_us rate ?

Post by Roberthh » Wed Jul 29, 2020 3:29 pm

In case you want to try out RMT:

Reading pulses with RMT is available in the Pycom variant of Micropython. Their WiPy3 device is a esp32 with 8MB Flash and 4 MB SPIRAM. Their firmware runs on any ESP32 with a rev1 chip and 8MB flash/4MBSPIRAM. The API is similar to the WiPy1 version of Micropython.org.
The RMT read works, with a few limitations: It can read up to 128 pulses, and it will only stop reading on a timeout.

I have prepared a branch of the Pycom firmware for genuine ESP32, using "GPIOxx" resp "GPIxx" for Pin names (instead of "Pxx" or "Gxx"), using ESP32 as the board name. You can find that here: https://github.com/robert-hh/pycom-micr ... e/homebrew.

Post Reply