Asked — Edited
Resolved Resolved by Dunning-Kruger!

Hc-Sr04 Shows Only 255

I am trying to get the HC-Sr04 sonar to work with the EZB. I use the add for my project, select radar view and the value stays at 255. I am using port D0 and D1. Could the sensor be bad? It is brand new, just received it in box with other components.

thanks


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

#17  

When this happened to me, I found that my Ping unit was fried. It just takes a split second to touch wires were they don't belong. You will be lucky if you haven't blown something. Good luck. I hope things will be fine for you. If you go back and see D.J.s video on HOW to do this, it will help.

my 2 cents.

#18  

Is there a new video showing how to use the ping with the inline voltage regulator? If not, the old video would not be much help to him... The ping could have been defective right from the factory.....

PRO
USA
#19  

Good Morning. I verified that coming out of the regulator is ~4.9 volts. That is the side going out to the sensor, so I think that is good. I think everything is working fine except for sensor. Have ordered a new one and will be very careful to connect correctly before applying power. Thanks for all the support and suggestions.

#20  

You probably didn't ruin the sensor... More than likely it was duff from the factory... Glad you got it sorted out though...

Richard;)

United Kingdom
#21  

They are very sensitive sensors, even the slightest hint of static and they can play up.

PRO
USA
#22  

Just wanted to update the thread. Received new sensor and it is working. Appreciate all the help.

PRO
USA
#24  

Thanks again to everyone.