I bought two HY-SRF05 ultrasonic distance sensors and connected them to BeagleBone Black (one at a time). They are powered with 5V line, so I connected the echo line through resistor divider (3x1kohm) to BBB input (one of GPIOs) which is 3.3V. The trig line is connected directly to BBB GPIO (another one, obviously also 3.3V).
Teoretically the sensors should be able to measure distance up to 400cm. However, when directing the sensors to the ceiling which is about 1,8m away from the sensor I got results of approximately 90cm in case of 1 sensor and approximately 120cm in case of the other one. When the objects are closer to the sensor, the measurements look ok.
Now the questions:
- Is the connection setup correct? Or could the low voltage on trig line cause any issues?
- Why would there be this 30cm difference in max distance measured?
- Anything I can do to measure something about 3m away or should I look for different sensor? If so what do you recommend?