Closed jerryneedell closed 3 years ago
i think pulsein isnt fully implemented on the rp2040?
I suspect this is a core issue. Want to move this one or create a new one in the core?
I think @DavePutz would know about the current PulseIn state.
Instrumentation shows that the issue is that occasionally the PIO input from the Pico is returning a zero bit in a result word when it should be a one. As a result, the code detects that as an edge change and returns the short value. The logic analyzer confirms that the pulse coming in from the HCSR04 does not have any drops in the signal. Changing pins and voltages does not have any effect on the issue. Will pursue what might be done to correct this.
fixed by #4859
When I run the hcsr04_simpletest on a feather_rp2040, every other reading is very short. The ~40cm reading is correct. This works normally on a feather_m4_express
I am using the RCWL-1601 sensor