ESP32 ext. interrupts sometimes not detected #9759
Unanswered
PythonKai
asked this question in
Hardware & Peripherals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello MicroPython Experts,
I have an ESP32 with MP 1.19.1.
I'll count slow Impulses from a water meter and gas meter (Impules are glitch free (hall sensor)).
I use 2 external interrupts on ESP32 for counting with IRQ routines.
In main process a lot of other periphery is used:
Disables some of the pheriphery above the external IRQ ? (unfortunately I'm not so detailed inside the source code of MP)
I guess it is the reason for missing a lot of impulses.
What is the best way not to miss an impulse ?
Is it possible to start an extra 'impulse count' thread maybe in the 2nd core ? (how?)
Is it possible to use the ESP32 internal pulse count module PCNT ? Unfortunately it is currently not supported in MP.
Thank you for some ideas.
Kai
Beta Was this translation helpful? Give feedback.
All reactions