With the help of distance and proximity sensing you can determine the location of objects without physical contact. In the field of electronics, for example in the Arduino environment, so-called distance sensors are used for this purpose.
How does a distance sensor work?
Distance sensors or proximity sensors generally work by emitting a signal (e.g. laser, IR LED, ultrasonic wave) and then detecting how the signal has changed. This change can be read in the intensity of the returned signal or, for example, the time it takes for the signal to return.
What role do interface options play in sensor selection?
Many factors play a role in deciding which interface option is best for a distance sensor project.
The first is usually what type of sensor your project requires. Can you use an ultrasonic rangefinder, or do you need to measure distances greater than 20 meters? This can make the interface decision for you.
However, if you are presented with multiple options, consider how many sensors you need and how many pins are available. I2C uses two pins on your board even if you use multiple sensors (with different addresses), whereas SPI sensors each need their own pin.
Other considerations include things like power consumption, speed, wire length from the board to the sensor, and whether or not verification of received data is required.
Distance measurement technologies
There are many options to choose from when integrating a distance sensor or proximity sensor into your project.
We will primarily focus on four different distance sensors or technologies:
Each option has its pros and cons, and we have guides, projects, and tools to make sure you know which one is right for you!
LED |
LIDAR |
Ultrasound |
VCSEL |
|
|
|
|
Inexpensive, small footprint, good update rate, multiple interface options. |
Very good maximum range, very fast update rate |
Very low power consumption, multiple interface options |
Very small minimum range, wide input voltage range, very fine resolution, low cost |
|
|
|
|
Power consumption somewhat high, maximum range relatively low |
High power consumption, expensive, large footprint |
Low resolution, slow update rate |
Very small maximum range, only I2C interface |
Comparison of different distance sensors
For the comparison of the different sensors, some terminology should be clarified in advance:
-
Resolution: refers to the smallest change in distance that a sensor can detect. For example, an IR LED can have a resolution of about 5 mm, while a VCSEL unit can have a resolution of about 1 mm.
-
Refresh rate: usually measured in Hz, comes into play for moving objects. The higher the refresh rate, the more readings per second the sensor receives. Important information if your sensor is moving at a high speed towards a stationary object.
-
Range: The range is a distance (from minimum to maximum) in which a sensor can provide accurate readings.
Sharp GP2Y0A21YK0F |
Specifications: |
|
- Technology: LED
- Minimum range (m): 0.10
- Maximum range (m): 0.80
- Resolution (mm): -
- Accuracy: +/- 1%
- Typical update rate (Hz): 26
- Wavelength (light) (nm): 850 nm
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): -
- Input voltage: 4.5 - 5.5 V
- Max. Continuous current consumption (mA): 30.0
- Interfaces: Analog
|
Sharp GP2Y0A41SK0F |
Specifications: |
|
- Technology: LED
- Minimum range (m): 0.04
- Maximum range (m): 0.30
- Resolution (mm): -
- Accuracy: +/- 1%
- Typical update rate (Hz): 60
- Wavelength (light) (nm): 870 nm
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): -
- Input voltage: 4.5 - 5.5 V
- Max. Continuous current consumption (mA): 30.0
- Interfaces: Analog
|
TF Mini LiDAR
|
Specifications:
|
|
- Technology: LED
- Minimum range (m): 0.30
- Maximum range (m): 12
- Resolution (mm): 5
- Accuracy: +/- 5 mm
- Typical update rate (Hz): 100
- Wavelength (light) (nm): 850 nm
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): 2
- Input voltage: 5 V
- Max. Continuous current consumption (mA): 24.0
- Interfaces: Serial
|
LIDAR-Lite v3
|
Specifications:
|
|
- Technology: LIDAR
- Minimum range (m): 0.30
- Maximum range (m): 40
- Resolution (mm): 10
- Accuracy: +/- 1%
- Typical update rate (Hz): 270
- Wavelength (light) (nm): 905 nm
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): -
- Input voltage: 4.75 - 5.5 V
- Max. Continuous current consumption (mA): 135.0
- Interfaces: I2C, PWM
|
LIDAR-Lite v3HP
|
Specifications:
|
|
- Technology: LIDAR
- Minimum range (m): 0.30
- Maximum range (m): 40
- Resolution (mm): 10
- Accuracy: +/- 1%
- Typical update rate (Hz): 1000
- Wavelength (light) (nm): 905 nm
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): -
- Input voltage: 4.75 - 5.5 V
- Max. Continuous current consumption (mA): 85.0
- Interfaces: I2C, PWM
|
HRLV-MaxSonar-EZ1
|
Specifications:
|
|
- Technology: Ultrasonic
- Minimum range (m): 0.30
- Maximum range (m): 5
- Resolution (mm): 1
- Accuracy: +/- 1%
- Typical update rate (Hz): 10
- Wavelength (light) (nm): -
- Frequency (sound) (kHz): 42
- Minimum field of view (degrees): 40
- Input voltage: 2.5 - 5.5 V
- Max. Continuous current consumption (mA): 3.1
- Interfaces: Serial, PWM, analog
|
HRLV-MaxSonar-E4
|
Specifications:
|
|
- Technology: Ultrasonic
- Minimum range (m): 0.30
- Maximum range (m): 5
- Resolution (mm): 1
- Accuracy: +/- 1%
- Typical update rate (Hz): 10
- Wavelength (light) (nm): -
- Frequency (sound) (kHz): 42
- Minimum field of view (degrees): 40
- Input voltage: 2.5 - 5.5 V
- Max. Continuous current consumption (mA): 3.1
- Interfaces: Serial, PWM, analog
|
HRXL-MaxSonar-WR
|
Specifications:
|
|
- Technology: Ultrasonic
- Minimum range (m): 0.30
- Maximum range (m): 5
- Resolution (mm): 1
- Accuracy: +/- 1%
- Typical update rate (Hz): 8
- Wavelength (light) (nm): -
- Frequency (sound) (kHz): 42
- Minimum field of view (degrees): 20
- Input voltage: 3 - 5.5 V
- Max. Continuous current consumption (mA): 3.4
- Interfaces: Serial, PWM, analog
|
LV-MaxSonar-EZ0
|
Specifications:
|
|
- Technology: Ultrasonic
- Minimum range (m): 0.15
- Maximum range (m): 6.5
- Resolution (mm): 25
- Accuracy: +/- 1%
- Typical update rate (Hz): 20
- Wavelength (light) (nm): -
- Frequency (sound) (kHz): 42
- Minimum field of view (degrees): 60
- Input voltage: 2.5 - 5.5 V
- Max. Continuous current consumption (mA): 2.0
- Interfaces: Serial, PWM, analog
|
HC-SR04
|
Specifications:
|
|
- Technology: Ultrasonic
- Minimum range (m): 0.02
- Maximum range (m): 4
- Resolution (mm): 3
- Accuracy: +/- 3 mm
- Typical update rate (Hz): 40
- Wavelength (light) (nm): -
- Frequency (sound) (kHz): 40
- Minimum field of view (degrees): 15
- Input voltage: 5 V
- Max. Continuous current consumption (mA): 15.0
- Interfaces: PWM
|
Distance sensor VL53L1X
|
Specifications:
|
|
- Technology: VCSEL
- Minimum range (m): 0.04
- Maximum range (m): 4
- Resolution (mm): 1
- Accuracy: +/- 1%
- Typical update rate (Hz): 50
- Wavelength (light) (nm): 940
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): 15
- Input voltage: 2.6 - 3.5 V
- Max. Continuous current consumption (mA): 18.0
- Interfaces: I2C
|
Distance Sensor RFD77402
|
Specifications:
|
|
- Technology: VCSEL
- Minimum range (m): 0.10
- Maximum range (m): 2
- Resolution (mm): 1
- Accuracy: +/- 10%
- Typical update rate (Hz): 10
- Wavelength (light) (nm): 850
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): 55
- Input voltage: 2.7 - 3.3 V
- Max. Continuous current consumption (mA): 15.0
- Interfaces: I2C
|
TOF VL6180
|
Specifications:
|
|
- Technology: VCSEL
- Minimum range (m): 0.01
- Maximum range (m): 0.10
- Resolution (mm): 1
- Accuracy: +/- 5 mm
- Typical update rate (Hz): 10
- Wavelength (light) (nm): 850
- Frequency (sound) (kHz): -
- Minimum field of view (degrees): 25
- Input voltage: 2.8 - 12 V
- Max. Continuous current consumption (mA): 4.0
- Interfaces: I2C
|
Didn't find a sensor you were looking for? In our category"Distance/Proximity" we have a large selection of different distance sensors!