Skip to product information
1 of 1

Blue PCB Electronics

5A1 Beam photoelectric sensor infrared radiation count Sensor Module

5A1 Beam photoelectric sensor infrared radiation count Sensor Module

Regular price Dhs. 15.00
Regular price Sale price Dhs. 15.00
Sale Sold out
View full details

Description:

The Encoder Photoelectric Speed Sensor Module LM393 black is a highly sensitive sensor module that is designed to detect rotational speed and position. It is commonly used in a variety of industrial and DIY projects, including robotics, automation, and control systems. The module operates by using a photoelectric sensor to detect the movement of an object. As the object moves past the sensor, it blocks or reflects the light, causing a change in the output signal. This signal is then processed by the LM393 chip, which provides a high or low signal output depending on the position and speed of the object. One of the key advantages of this sensor module is its high sensitivity, which allows it to detect even very small changes in position and speed. It also has a wide operating voltage range of 3.3V to 5V, making it compatible with a range of microcontrollers and other devices. The module features a compact and durable design, with PCB mounting holes and M3 screws for easy installation. It also has a low power consumption, making it ideal for battery-powered applications.

Features:

  1. LM393 chip: The module is built with the LM393 chip which is a voltage comparator that has two independent low-current open-collector outputs.
  2. Photoelectric sensor: It uses a photoelectric sensor to detect changes in light and dark.
  3. Working voltage: The module works on a DC 5V voltage.
  4. LED indicator: It has a built-in LED indicator that indicates the presence of power and output status.
  5. PCB mounting holes: The module has two mounting holes that allow for easy attachment to a PCB or other surface.
  6. Compact size: The module has a small size of 32mm x 11mm x 20mm, making it suitable for applications with limited space.

 

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.

LM393 Sensor Pinout

Required Materials

Hardware Components

Arduino UNO R3 × 1
LM393 Infrared Speed Sensor Module × 1
Male Female Jumper Wire × 1

Software Apps

Arduino IDE

Interfacing LM393 Infrared Speed Sensor with Arduino

Step 1: Circuit

The following circuit shows how you should connect Arduino to LM393 sensor. Connect wires accordingly.
LM393 Sensor Arduino circuit

Step 2: Code

 

Install the following library on your Arduino.

https://github.com/brunocalou/Timer

Upload the following code to your Arduino.


#include "timer.h"

Timer timer;

const int LM393 = 2;
int counter = 0;
void setup() {
  attachInterrupt(digitalPinToInterrupt(LM393), count, RISING);
  Serial.begin(115200);
  timer.setInterval(1000);
  timer.setCallback(RPM);
  timer.start();
}

void count() {
  counter++;
}

void RPM() {
  Serial.println(counter * 60);
  counter = 0;
}

void loop() {
  timer.update();
}
After running the code, you will see the following image in the serial output.