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

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

United Kingdom
#2  

Check it's wired correctly. Check the power to it is 5V (or less). Check the config of the control is set correctly.

#3  

Can you take a picture of your wiring to the ezb board? Check and see if you have it wired correctly...

*** Important do you have the inline voltage regulator installed?***

  1. Power = Red pin D0 (voltage reg'd to +5V)
  2. Ground = Black Pin D0
  3. Trigger = D0 (white pin)
  4. Echo = D1 (white pin)
#6  

In the second picture you have the ports reversed from the first picture (trigger and echo)... how about your wiring..? Is it connected to the EZB like my example above? (see post #4)

PRO
USA
#8  

I think I have the wiring correct, posted a close up photo