DIY Speed Sensor Using Arduino
by Yogeshwaran in Circuits > Arduino
2443 Views, 27 Favorites, 0 Comments
DIY Speed Sensor Using Arduino
 Title Image.png)
Are you curious about how speed guns measure vehicle velocities or how athletes' sprint speeds are recorded? While advanced sensor technology often plays a role, you can create your speed detector using an Arduino and a pair of infrared (IR) sensors.
By positioning two IR sensors a fixed distance apart, you can accurately calculate the object's speed when the object passes those two IR sensors.
This project has a wide range of applications. You can measure the speed of moving cars, conduct scientific experiments to study motion, acceleration, or friction, and even use the sensor in packaging and sorting systems to monitor object speeds on a conveyor belt.
Looking for even more thrilling projects? Explore a range of exciting ideas such as Arduino IoT Projects | Arduino Robotics Projects | Arduino AI Projects | Arduino Home Automation Projects | Raspberry Pi Projects | ESP32 Projects to take your creativity to the next level!
Supplies
- Arduino UNO R3 Development Board
- Two IR Sensors
- 16x2 LCD Display with builtin I2C Module
- 12V DC Power Adaptor with Barrel Jack
- Breadboard
- Connecting Wires
Let's Understand How IR Sensors Measure Speed of Moving Object

Eventually IR sensor used for detecting the object presence, but when it used in a pair, we can also able to measure the speed of a moving object.
The first sensor triggers the timer when the object passes, and the second sensor stops the timer once the object passes it. With the known distance between the sensors and time taken by object, speed can be easily calculated using the formula: For more details check on my detailed guide of making DIY Arduino Speed Sensor.
Speed = Distance / Time
When placing IR sensors, we must be aware that the spacing between them is crucial for calculating speed without error. If you want to know how this will affect accuracy and what steps we can take to improve it, feel free to check out my official documentation.
Create Circuit Diagram for Arduino Speed Sensor

Here is an Breadboard Versioned Circuit Diagram for our Arduino Speed Detector.
Start to Build an Hardware Setup


Here is the actual hardware setup developed by using our Arduino sensor circuit diagram as a reference. Here you can see that I am powering this whole setup from the external power adapter through a 12V DC jack.
If you are facing any issues or having an query related to hardware setup, you can reach our here, where I provide a complete details related to hardware setup.
Lets Start to Write Some Code for Arduino
If you feel confused, How this code works? and what algorithm did it follows? For all of yours question, you can get an answer on my original documentation work, where I explained code part by part in easily understandable way.
After understanding the concept behind the code, start to upload the code into Arduino.
Do Experiment on Our Arduino Speed Sensor
.png)
After flashing the code and providing a proper power supply, If everything goes well, you can able to get the result as shown here.
No matter if you're a beginner or an experienced maker, this speed detection system makes learning about sensors and speed measurement both fun and simple. Ready to build your own speedometer? Check out our detailed guide on creating a DIY Speed Detection System with IR Sensors and Arduino to get started!
Want to discover more cool projects? Dive into our collection of Arduino IoT Projects | Arduino Robotics Projects | Arduino AI Projects | Arduino Home Automation Projects | Raspberry Pi Projects | ESP32 Projects to inspire your next build!