A contactless speed sensor is a type of tachometer that is used to measure the speed of a rotating object like a motor without physical contact with it.
In this tutorial, we will learn how to make a speedometer or a speed control system using an IR speed sensor and Arduino.
Connect the wires between the IR speed sensor and the Arduino, as shown in the image below.
Connections from the IR speed sensor to arduino :
• VCC → Arduino 5V pin
• GND → Arduino GND pin
• D0 → Arduino pin 2
Connections from the motor to 18650 battery holder:
• Motor first wire → 18650 battery holder negative wire
• Motor second wire → 18650 battery holder positive wire
Now access the serial monitor on your Arduino IDE by clicking on the magnifying glass icon at the top right corner.
Now, as shown in the image below, the serial monitor displays the speed of the motor in rpm value.