tachometer using ir sensor

DIY Tachometer Using IR Sensor: Build Your Own RPM Meter

By Matthew Davis
AD

Measuring the rotational speed of a motor or a fan is a fundamental requirement in countless industrial, automotive, and hobbyist projects. While traditional methods often involve direct mechanical contact, a non-contact tachometer using an IR sensor offers a robust and versatile alternative. This approach leverages infrared light and optical interruption to calculate speed with surprising accuracy, making it ideal for environments where durability and isolation from the moving part are critical.

Principle of Operation: How an IR Tachometer Works

The core principle behind an IR tachometer is simple yet effective: interrupt an infrared beam and count the interruptions over time. The system typically consists of an IR emitter and a photodiode or phototransistor detector housed together. A reflective tape or a target with alternating black and white stripes is affixed to the rotating shaft. As the object spins, the reflective surface bounces the IR beam back to the detector, while the dark sections absorb the light. This creates a pulse waveform whose frequency is directly proportional to the rotational speed, allowing a microcontroller or timer circuit to calculate RPM with precision.

Key Components Required for the Circuit

Building a functional IR tachometer requires a selection of readily available electronic components. The system is generally divided into the sensor front-end and the processing unit. A reliable sensor module often includes an IR LED and an IR phototransistor paired with a special transistor to amplify the signal. To ensure consistent performance, especially in varying light conditions, an operational amplifier is commonly used to create a Schmitt trigger, cleaning the signal into a perfect square wave. The processing unit can range from a simple Arduino board to a dedicated microcontroller, which handles the timing and RPM calculation logic.

AD
Digital Tachometer using IR Sensor with Arduino for measuring RPM
Digital Tachometer using IR Sensor with Arduino for measuring RPM
How to make Arduino based Tachometer (RPM Meter) using IR sensor?
How to make Arduino based Tachometer (RPM Meter) using IR sensor?
DIY Tachometer using Arduino
DIY Tachometer using Arduino

Essential Hardware List

Component Function
IR Emitter (LED) Generates the infrared light beam.
IR Phototransistor Detects the reflected light and converts it into an electrical signal.
Operational Amplifier (e.g., LM358) Amplifies and conditions the signal into a digital square wave.
Microcontroller (e.g., Arduino) Processes the pulse signal and calculates RPM.
Encoder Disk Features alternating patterns to interrupt the IR beam.

Step-by-Step Implementation Guide

Constructing the circuit involves aligning the IR emitter and detector so that the beam passes through the gaps of the encoder disk. Proper alignment is critical; the sensor must be perpendicular to the axis of rotation to maintain consistent distance and accuracy. The output signal from the detector is fed into the microcontroller, where a function measures the time between successive pulses. By knowing the number of pulses per revolution, the firmware divides the total pulses by the time elapsed and multiplies by 60 to convert the measurement into rotations per minute. Calibration against a known tachometer ensures that the software calculations match real-world values.

Advantages Over Traditional Methods

The primary advantage of an IR-based system is its non-contact nature. Because the sensor does not physically touch the rotating shaft, there is no mechanical wear, eliminating the risk of introducing drag or failure points into the system. This makes it ideal for measuring high-speed rotors or hazardous environments where physical contact is unsafe. Furthermore, IR sensors are immune to electromagnetic interference that often plagues contact-based sensors like Hall effect probes. They also provide excellent long-term stability, as the optical components do not degrade under normal operating conditions.

DIY Tachometer (RPM Meter)
DIY Tachometer (RPM Meter)
Arduino Tachometer (RPM meter) with IR sensor module
Arduino Tachometer (RPM meter) with IR sensor module
DIY Tachometer using Arduino and IR Sensor
DIY Tachometer using Arduino and IR Sensor

Practical Applications and Use Cases

These sensors are incredibly versatile and find utility across a wide range of industries. In automotive diagnostics, they are used to measure the speed of fans, pumps, and belt systems without needing to disconnect belts or hoses. Industrial settings rely on them for monitoring conveyor belts and turbine blades where safety and continuous operation are paramount. For the hobbyist, they provide an accessible way to benchmark the performance of custom-built motors or drones. The ability to log RPM data over time also makes them valuable for trend analysis and predictive maintenance strategies.

Tips for Calibration and Troubleshooting

To achieve reliable results, calibration is essential. Enclosed modules often feature a small potentiometer to adjust the detection threshold, ensuring they work well in bright ambient light. If the readings are unstable, check for vibrations causing misalignment between the emitter and the target. Ambient light interference can sometimes swamp the sensor; however, most modern modules include a simple photodiode that filters out visible light, responding only to the IR wavelength. When troubleshooting, verify the voltage levels of the pulse output—if the signal is too weak, an op-amp buffer stage is necessary to pull the signal high cleanly.

AD
DIY Non-Contact Tachometer (RPM Meter) With Arduino and IR Sensor
DIY Non-Contact Tachometer (RPM Meter) With Arduino and IR Sensor
Arduino RPM tachometer IR sensor meter 3D printed
Arduino RPM tachometer IR sensor meter 3D printed
Infrared Tachometer Using Arduino
Infrared Tachometer Using Arduino
Arduino Tachometer (RPM Meter) With IR Sensor Module
Arduino Tachometer (RPM Meter) With IR Sensor Module
Build Non-Contact Type Digital Tachometer - Full Electronics Project
Build Non-Contact Type Digital Tachometer - Full Electronics Project
Digital Tachometer using an IR Sensor with Arduino
Digital Tachometer using an IR Sensor with Arduino
Arduino IR Lathe Tachometer
Arduino IR Lathe Tachometer
DIY Tachometer
DIY Tachometer
Arduino Tachometer
Arduino Tachometer
Analog Speedometer Using Arduino and IR Sensor
Analog Speedometer Using Arduino and IR Sensor
Arduino IR Lathe Tachometer
Arduino IR Lathe Tachometer
Contactless Digital Tachometer using 8051 Microcontroller
Contactless Digital Tachometer using 8051 Microcontroller
Digital RPM Tachometer with Arduino
Digital RPM Tachometer with Arduino
Light Intensity Measurement using LDR and AVR Microcontroller
Light Intensity Measurement using LDR and AVR Microcontroller
tachometer – Page 2 – Hackaday
tachometer – Page 2 – Hackaday
Analog Speedometer Using Arduino and IR Sensor
Analog Speedometer Using Arduino and IR Sensor
Contactless Tachometer
Contactless Tachometer
No-contact IR Thermometer
No-contact IR Thermometer
How to Make Arduino Based Digital Tachometer Simple DIY Tutorial
How to Make Arduino Based Digital Tachometer Simple DIY Tutorial
How to Make Arduino Based Digital Tachometer Simple DIY Tutorial
How to Make Arduino Based Digital Tachometer Simple DIY Tutorial
AD