Congratulations Richard R, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

3 Wire Ping Sensor

Assistance Requested

Help Ellis with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

Ellis claims to have checked these sources:

Hi everyone. I have purchased a Parallax ping sensor because it comes with a black Lexan holder that mounts the ping plus IR sensor.

I was wondering, it comes with three wires not 4 as the EZB one. I have an EZB ping sensor I received with my EZB v3 developer kit. I may have to see if it would fit the holder.

I have attached the link for the Parallax sensor.

Parallax Ping Sensor PDF

Any help would be greatly appreciated.

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.

Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


It will work fine, just use the same port # for trigger and echo... Make sure however you use a 5V regulator like you would with the ez robot ping (if you are using it with the ezb4)....


don't forget to use a 5v regulator for the HC-SR04 Ultrasonic Distance Sensor that came with v3 kit.


corr blimey Rich you're fast


Thanks. I am using a voltage regulator to adjust the voltage output of the EZB to 5v plus or minus .1v. Will that be ok?


When you say "voltage output of the EZB" I assume you mean the Red pin
outputs of the Servo pins etc, if so yes that is OK.

I've just done this putting a 5v Reg to the SF04 ultrasonic unit, works just fine!



Yes that should be fine. I just checked the parallax ping voltage and I can confirm it is +5 VDC so your golden. Just to confirm what Richard said, the trigger and Echo use the same signal pin, which in some ways is better as it frees up a digital port compared to using a 4 wire one. Smile


I use the Parallax Ping with the EZ-B without the regulator.

You connect the power and ground to an analog power pin A0 for example
and the signal pin to the EZ-B digital port. The example I've attached, I connected the signal pin to D2.

I know it isn't good form but it works and you don't need the regulator.



that's good to know @mtiberia


I think I will use the analog for power. Thanks everyone for all the help.