LM393 Sensor Features
The LM393 module is an IR counter that has an IR transmitter and receiver. If any obstacle is placed between these sensors, a signal is sent to the microcontroller. The module can be used in association with a microcontroller for motor speed detection, pulse count, position limit, etc.
You can download the datasheet of this module here.
LM393 Sensor Pinout
This sensor has 3 pins:
- VCC: Module power supply – 3-5.5 V
- GND: Ground
- OUT: Digital output data to the microcontroller
You can see pinout of this module in the image below.
Interfacing LM393 Infrared Speed Sensor with Arduino
Step 1: Circuit
Step 2: Code
/* by MohammedDamirchi