Sensor ultrasonic hy-srf05

hi . Can this sensor ultrasonic hy-srf05 be launched on the pixhack ???

This sensor is a variation of the HC-SR04, that we do not recommend as a rangefinder, because of the range and quality of signal. If you are still interested to experiment , you can use an Arduino to read the Trigger-Echo and send the result over the serial port to the Flight Controler emulating a MaxBotic serial sonar.

Look here for an example that could be adapted to emulate the Maxbotics (Sending Rxxx in inches):

1 Like

How do I transfer the result to Flight Controler ?

Using Serial port on the Flight Controler
For example:
SERIAL4_BAUD = 9 (9600 baud)
RNGFND_TYPE = 13 (MaxboticSerial)
RNGFND_MIN_CM = The value depends on the model
RNGFND_MAX_CM = The value depends on the model
RNGFND_GNDCLEAR = 10 or more accurately the distance in centimetres from the range finder to the ground when the vehicle is landed. This value depends on how you have mounted the rangefinder.
If you instead were using the Telem2 port, then you would set SERIAL2_PROTOCOL = 9, and SERIAL2_BAUD = 9 (9600)

1 Like