<div dir="ltr"><div><div><div><div>Hi,<br> I am  having trouble in using the ultrasound distance sensor with the arduino board.<br></div>the model is HC_SRO4 and has a vcc- trigger- echo and gnd pins.<br></div>i am trying to get  distances out of it <br></div>while
 most online tutorials that i am checking is putting the echo and 
trigger into digital pins of the arduino board but my problem is if so 
how do I write the patch in pduino to get the distance.)<br></div><div>I am using the pduino test patch to do the interactions but can't figure out how to generate numbers through a digital input.<br><br></div><div>or
 should I put the echo/trigger pin into the analog input pins ? I have also tried to put the Echo into the analog pins of the arduino board but doing 
so is not providing any number except flickering at 0.00<br>Please help me out in sorting this<br><br></div><div>to get an analog input i am using the message- analogIns 2 $1 going to the arduino object and the route objects coming out of it <br></div><div>but can't get much<br></div><div>I
 also tried using trigger pin as an output pin to send a signal and an 
echo pin as an anolog input pin to receive the signal but ofcourse 
without any sucess.<br></div><div>please suggest<br></div><div><br></div><div>Thanks<br></div>Sujay</div>