W600-PICO with HC-SR04 Sensor
Posted: Mon Feb 10, 2020 5:26 am
I have been unable to get the HC-SR04 sensor to work with this board. I am using the driver at https://github.com/rsc1975/micropython-hcsr04 modified to pull Pin.PULL_FLOATING on lines 26 and 30 to get it to run on this board.
The command returns a -2. I believe this means the pin never read high from the sensor. This is explained at https://docs.micropython.org/en/latest/ ... -functions.
Any ideas on what the issue may be or how to troubleshoot this.
Thank you,
John
The command
Code: Select all
pulse_time = machine.time_pulse_us(self.echo, 1, self.echo_timeout_us)
Any ideas on what the issue may be or how to troubleshoot this.
Thank you,
John