Hi!
I'm using DYPA02YYUM ultrasonic sensor I could detect that sometimes the sensor report zero as distance.
When I block with my fingers either TX or RX part, I receive a zero value but it is completely reasonable. However, sometimes I point the sensor to an open space and I read a distance of 5500mm and then suddenly 0. If any object appears right in front if the sensor, the measurement is correct again but it goes back to 0 when the object is gone.
Is 0 a special value to indicate MAX_DISTANCE or something similar?
I checked that I read between 10 and 11 times per second and the characters that I read from UART matches the checksum. Therefore the sensor is working fine but it delivers a value that I didn't expected.
Hi! I'm using DYPA02YYUM ultrasonic sensor I could detect that sometimes the sensor report zero as distance. When I block with my fingers either TX or RX part, I receive a zero value but it is completely reasonable. However, sometimes I point the sensor to an open space and I read a distance of 5500mm and then suddenly 0. If any object appears right in front if the sensor, the measurement is correct again but it goes back to 0 when the object is gone. Is 0 a special value to indicate MAX_DISTANCE or something similar?
I checked that I read between 10 and 11 times per second and the characters that I read from UART matches the checksum. Therefore the sensor is working fine but it delivers a value that I didn't expected.