Asked — Edited

Distance Sensor

I got a problem when I got my distance sensor. Is there any tutorials that teach how to connect the distance sensor in EV4?


ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

#1  

Which sensor, ultrasonic or IR ? Go to the top of this page, then select "Learn" then at the top of the page select "ARC Manual". Then scroll down to the type of sensor you have and watch the video. The. videos include the EZB(3) but the connections are identical on the EZB(4)

United Kingdom
#2  

The V4 requires the regulator though.

#3  

What I got is an ultrasonic distance sensor. It works in arduino uno, but when I try to connect it to ev4, it doesn't show anything.

I bought roli, and it has an ultrasonic with it when it came. I also bought several ultrasonic sensors which work fine in arduino uno. But when I test the roli ultrasonic distance sensor to the arduino uno, it didn't work in both 3.3v and 5v.

And I test both sensors to the ev4, none of them work.

I'm wander whether the triger pin and echo pin should connect to the analog or digital?

#4  

Digital.

Trigger on port 0 and echo on port 1 for example.

Red and black can be off of port 0 passing through a voltage regulator for 5 volts.

Then in ARC specify port 0 as trigger and port 1 as echo.

These are all digital.

#5  

Is it a 3 pin or 4 pin ping (ultrasonic sensor).... if it is a 3 pin like the parallax ping then you can specify the same port as trigger and echo... Either way you still need a voltage regulator in order to plug it into the ezb4 board (The power pin is not regulated to 5v like the arduino is)

#6  

Thank you all!

What kind of regulator do I need? When I got roli, it did have a small circuit within the cable, I guess that's the regulator, right?

And where can I buy regulator, because I may install multiple sensors to ev4 for my project.

#7  

Ez robot has them in their store... Or you can make one like I did using a LM7805 5V voltage regulator ... I simply spliced the 7805 into a servo extension cable...

#8  

What you got should be the regulator.

It will have two black wires going into it and 2 wires coming out. These wires will be black and red both going into and out of the circuit.