You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a 433 MHz receiver with a DATA pin which is connected to a GPIO of my raspberry pico board. Decoding signals basically involves measuring times between edges of this GPIO pin and trying to match those times with one remote control protocol (cf. for instance https://github.com/sui77/rc-switch/blob/master/RCSwitch.cpp#L671).
This algorithm works great when using an ESP8266 and Arduino / C code (cf. rc-switch link above), but when I use pico board and the Embassy framework and wait_for_any_edge / Instant combination, I get really different and unexpected durations with the same remote / transmitter.
Question is: are interrupts used this way in Embassy precise enough i.e. with 10 microseconds precision? Am I doing something wrong, should I use any other mechanism or timer?
The text was updated successfully, but these errors were encountered:
I have a 433 MHz receiver with a DATA pin which is connected to a GPIO of my raspberry pico board. Decoding signals basically involves measuring times between edges of this GPIO pin and trying to match those times with one remote control protocol (cf. for instance https://github.com/sui77/rc-switch/blob/master/RCSwitch.cpp#L671).
Schematically:
This algorithm works great when using an ESP8266 and Arduino / C code (cf. rc-switch link above), but when I use pico board and the Embassy framework and wait_for_any_edge / Instant combination, I get really different and unexpected durations with the same remote / transmitter.
Question is: are interrupts used this way in Embassy precise enough i.e. with 10 microseconds precision? Am I doing something wrong, should I use any other mechanism or timer?
The text was updated successfully, but these errors were encountered: