TroubleshootingGravity

Ulstrasonicsensor SKU_SEN0307 reads wrong values

userHead awakencaptive 2022-09-02 11:11:46 686 Views1 Replies

I have got the following sensor: https://wiki.dfrobot.com/URM09_Ultrasonic_Sensor_(Gravity_Analog)_SKU_SEN0307

So its an older version of URM09.

 

I copied the code from the link and tried it on my arduino uno. It measure the following distances:

142,cm 143cm, 144cm

 

These distances are wrong, because I put the sensor at a distance of about 4 cm…

 

Does any of you have any idea what could be the error here?

2022-09-02 11:19:51

Got it! Sorry, I put attached it to the wrong pin… not an analog one ;)

userHeadPic awakencaptive