riteshRcH / waterproof_small_blind_ultrasonic_sensor_DYP-A02YYxx_v1.0

**********Software is a rough test code. Feel free to contribute and optimize it. Thanks!**********
0 stars 0 forks source link

DYPA02YYUM delivers 0 mm distance #2

Open ftheirs opened 5 years ago

ftheirs commented 5 years ago

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.

MihaMarkic commented 4 years ago

Hi @ftheirs,

Can you share how did you connect it, I mean what connector did you use?