GrovePi+ Ultrasonic Ranger : Garbage Value

Hi, I am new to GrovePi+ & I have connected my Raspi 4B + GrovePi+ + Grove UltraSonic Ranger.

I perform the simple task of reading values for the sensor when an object(thick metal) is placed in fronton it between 3-10 cm. I get a steady stream of reading, (3,2,3,2…65335) and in between I keep getting the maxed out value 65335 and then again the corrector reading. I know I can ignore this value form the program. But can someone please tell me why is this happening ? Is there some delay between the i2C communication between the grovePi & Raspberry Pi ? Is there a cleaner solution to get a steady stream of values ?

1 Like