Ultra sonic sensor always shows same distance

610 Views Asked by At

I tried to bulid up an ultra sonic sensor and followed this tutorial: https://www.thestrongestlink.nl/2020/05/31/ultrasonic-sensor-for-the-jetbot/#comment-90

In the picture below you can see my wiring.enter image description here

I uploaded the code from the tutorial to my Feather M0. But when I start the software the display always shows 175 cm (sometimes it fluctuates from 174 to 176).

So next I tried to find the problem. I measured the voltage: at VCC pin are 5V but at TRIG and ECHO is no voltage. I also used two other ultra sonic sensors to see if one is damaged but it is always the same problem.

I dont know why there is no voltage at those two pins and also dont know what to do next or where can be the problem.

Does anyone of you have an idea what to do or what can be the problem? Thanks

1

There are 1 best solutions below

2
Stefano Martini On

175cm is the maximum distance the sensor can measure, surelly wiring is wrong or bad pin assignament, post code nd maybe we can help you