How does Arduino measure distance with IR sensor?

The sensor continuously scans the objects in front of it and provides the output with an analog voltage reference, so we can use the analog inputs of Arduino to read the value of the distance. The measuring range is from 20 to 150 cm, maintaining a high degree of accuracy throughout the range.

What is IR range sensor?

An infrared sensor (IR sensor) is a radiation-sensitive optoelectronic component with a spectral sensitivity in the infrared wavelength range 780 nm … 50 µm. IR sensors are now widely used in motion detectors, which are used in building services to switch on lamps or in alarm systems to detect unwelcome guests.

Which is the distance measuring sensor module?

Ultrasonic Module HC-SR04 Distance Measuring Sensor

Technical
PCB Size ( L x W ) 4.5 x 2 cm
Range 2cm-450cm
Sensing Angle Not more than 15 degrees
Static Current Less than 2mA.

What is an IR distance sensor?

An IR distance sensor uses a beam of infrared light to reflect off an object to measure its distance. The distance is calculated using triangulation of the beam of light. The sensor consists of an IR LED and a light detector or PSD (Position Sensing Device).

How far can IR sensor work?

These sensors are good for detection between 100cm-500cm (1-5 meters / 3-15 feet). The long range makes them a good alternative to sonar sensors.

What is the range of IR sensor in CM?

Specifications

General Specifications
Interface Analog (Voltage)
IR Range 10 to 80 cm
Update Rate 38 ± 10 ms
Power Supply

What is difference between IR sensor and ultrasonic sensor?

The biggest difference between IR sensor vs. ultrasonic sensors is the way in which the sensor works. Ultrasonic sensors use sound waves (echolocation) to measure how far away you are from an object. On the other hand, IR sensors use Infrared light to determine whether or not an object is present.