New Pololu distance sensors with digital and pulse width outputs

Posted by Kevin on 6 February 2021
Tags: new products

In many applications ranging from robotics to industrial automation, it is useful to quickly detect the presence of objects within a certain distance. Our carrier boards for the Sharp/Socle GP2Y0D8x digital distance sensors have been popular in this role, but those sensors are unfortunately no longer being produced and are becoming hard to find. So we are excited to announce the release of our next-generation lidar-based Pololu Digital Distance Sensors, which can replace the discontinued Sharp sensors and more!

Comparison of a Pololu Carrier with Sharp GP2Y0D8x Digital Distance Sensor and a Pololu Digital Distance Sensor (irs16a).

Comparison of a Pololu Carrier with Sharp GP2Y0D8x Digital Distance Sensor and a Pololu Digital Distance Sensor (irs16a).

These new sensors use an on-board rangefinder module to determine distance by measuring the time of flight (ToF) of invisible, eye-safe infrared laser light. They are available in three different digital output versions with the same range thresholds as the GP2Y0D8x series:

We also have one additional option for more advanced applications:

(More on that version below.)

A camera with no IR filter shows the infrared light emitted by a Pololu Digital Distance Sensor.

The Pololu Digital Distance Sensors work like the Sharp sensors: they operate with either a 3.3 V or 5 V supply and output a simple digital signal, which is low if an object is detected within the specified range, high otherwise. They have the same indicator LED, pinout, and form factor as our GP2Y0D8x carrier boards (but are much thinner than the Sharp sensors), allowing them to be drop-in replacements in most applications.

The pulse width output version looks almost identical to its digital output counterparts, but instead of simply indicating the presence or absence of an object, it outputs a pulsed signal (similar to a hobby servo control signal) that encodes the distance it is measuring in the length of each high pulse. By timing these pulses, you can get quantitative range readings for targets up to half a meter away (depending on reflectance and environmental conditions).

The four numbered surface-mount jumpers on these sensors’ printed circuit boards, near the mounting hole on the front side, determine the sensor’s operating mode. You can change the jumper connections yourself to customize its behavior and even effectively convert the sensor into a different version (more information on the jumper settings will be available soon). And since we assemble and program these boards here in our Las Vegas facility, we can produce a custom-configured batch of sensors for you. If you are interested in manufacturing customization, please contact us for more information.

We are back to offering an introductory special discount on new products, to help share in our celebration of releasing these Pololu distance sensors. The first hundred customers to use coupon code DISTSENSORS can get up to three units of each type for just $7.87 each!

19 comments

Will this work in daylight?
Can multiples of these be used in the same area, such as around the periphery of a robot, without interference?
Hi, Mark and Ron.

Like most sensors that use infrared light, the Pololu Digital Distance sensors are affected by daylight (and any other background infrared light) since it basically reduces their signal-to-noise ratio. They will generally still work, but you might see a significant reduction in effective range depending on the intensity and direction of the sunlight.

Multiple sensors shining at each other (e.g. on two different robots) can interfere with each other, but we haven't observed any significant interference between two side-by-side sensors pointing in the same direction, so having multiple sensors on the edge of a robot like you described should work fine.

Kevin
i am a beginner. can i have basic code to operate my distance sensor?
Hello, Joseph.

For the sensors with digital outputs all you need your code to do is read a digital input signal. In Arduino, you could do that with a digitalRead() command.

For the pulse width output version, we provided a simple Arduino example program showing how you could read the sensor on its product page.

- Patrick
What is the minimum distance and accuracy of these sensors?
Hello, Matt.

For objects to be detected by any of these sensors, the minimum distance is less than 5 mm; for an accurate measurement from the pulse width versions, the minimum distance is about 1 cm. We do not have the accuracy precisely characterized, but the graph of measured vs. actual distances on the pulse width version's product page should give some idea of typical accuracy (this includes timing uncertainty specific to the pulse width output).

Kevin
Dear Sirs ..Good day

I bought your PWM 50cm sensor and a 6 relay module board for my cnc machine, I have to activate deferent functions on my cnc according to the sensor height , (total distance is 10cm, and I divide it to (2.5cm Blind distance and 6 1.25cm height steps, total is 10), need to activate each relay according to these 6 steps, with some hysteresis !

Please I need a simple arduino code for this, :)

Thx a lot ...
Hello.

We do not have any example Arduino code for that specific purpose, but you can find a simple example Arduino sketch that reads the output of the Pololu Distance Sensor with Pulse Width Output, 50cm Max and displays the measured distance in millimeters on the sensor's product page. It should be fairly simple to use that as a reference and add some IF statements to activate your various relay boards. If you try doing that and have problems, I suggest posting a request for help that includes what you have so far on our forum, which is a much better place for debugging or troubleshooting code.

Brandon
Our current Sharp sensor (GP2Y0D810Z0F) will not recognize a black object (black plastic, black painted metal, etc), which is used to detect a machine state before enabling a process to begin. Will the lidar sensor detect black at a range of about 1"?
Hello, Jim.

Both the Sharp sensors and the Pololu Distance Sensors depend on infrared light reflections, which will be affected by ambient conditions and target characteristics. That makes it hard to know for whether one of the Pololu Digital Distance Sensors will work better for sure, but I think there is some hope that they could be better. If you decide to try them out, I would suggest testing the version with the longest range that will work in your setup since the longer range sensor should be more sensitive for a given distance.

- Patrick
Hi,

I am looking to find the proper protection glass that does not trigger this sensor. I have tried off-the-shelf IR transmitting glasses (red) but the sensor detects it. How can I find the right glass (for protection against dust and water vapor) to use?
Hello, Arash.

These boards use an 850nm emitter, so you would need to use a material that is transparent to that wavelength. I recommend looking at documentation for sensor components (e.g. like these) for more information and ideas.

For example, they link to these, which might work for you (although please note that we have not specifically tried them).

Brandon
Hi Pololu People,

We are interested in the Pololu Digital Distance Sensors.

Wondering what the basic difference is between the 5cm, 10cm, 15cm versions?
For instance, is the 15cm version more powerful than the 5cm version?

We are interested in sensing the presence of an object (cue ball) and simply starting a timer once the ball has moved from position (down a ramp). So, basically a digital switch. Using an infrared laser seems far more robust than a mechanical switch, and easier to fasten into place compared with say a micro switch requiring tight tolerance mounting to the object to be sensed.

Cheers,
Sean
Hello, Sean.

The 5 cm, 10 cm, and 15 cm Pololu Digital Distance Sensors are identical except for the configuration of the surface-mount jumpers, near the mounting hole on the front side of the board, which determine the sensor’s operating mode. You can find more detailed information about this in each sensor's product page description under the "Jumper settings (irs16a)" header.

- Patrick
Hi,

I was wondering what amount of current the Pololu Digital Distance Sensors can source on its output? I want to drive a relay with it through a transistor and so far so good, just wondering if I might be to close to the output specs.

Thank You.
Hello.

The output should be able to source or sink a few milliamps. There is a 220 Ω resistor in series with it, so it is unlikely to be damaged by overcurrent, but you will see a significant voltage drop or rise if you try to source or sink too much current respectively.

- Patrick
Hello. I have two question please :

1- What is the minimum size of object we can detect with it ?
We need to detect small object which dimension is at least 2x2mm square (almost a grain of rice).
Is this detector enough reliable for that ?

2- Concerning the FOV : Is it necessary that an object cut the whole cone to trigger the sensor, or if this object is on half of this cone it will also trigger the sensor ?

Thanks
Hello.

A target does not need to completely overlap the cone projected from the sensor's FOV for the sensor to work, but it does need to reflect enough light back to the sensor's detector for it to estimate the distance accurately. So, the combination of maximum range and minimum target size will depend on external conditions like ambient lighting and target characteristics (e.g. color, size, shape, texture, and reflectivity). That typically makes it hard for us to say with certainty whether or not our sensors will work in a particular application, but I think it is very unlikely for a grain of rice at a distance of 20 cm to reflect enough light for these sensors to work reliably.

- Patrick

Post a comment

Using your Pololu account allows you to customize your avatar and manage your comments; you can also post anonymously.

Related Products

Pololu Digital Distance Sensor 5cm
Pololu Digital Distance Sensor 10cm
Pololu Digital Distance Sensor 15cm
Pololu Distance Sensor with Pulse Width Output, 50cm Max
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors