Go to advanced search

by Quynh
Fri Jan 13, 2017 12:52 am
Forum: Python
Topic: Ultrasonic Sensor Problems
Replies: 18
Views: 7376

Re: Ultrasonic Sensor Problems

Here is some pigpio code which will give accurate results. You need to change the ECHO and TRIGGER constants to reflect the Broadcom numbers of the gpios you are using. You need to power the HC-SR04 from 5V and make sure you have a voltage divider to lower the echo line from 5V to 3.3V. If you powe...

Go to advanced search