Components and supplies
Male/Female Jumper Wires
IR proximity sensor
Arduino UNO
USB-A to Mini-USB Cable
RGB Diffused Common Cathode
Apps and platforms
Arduino IDE
Project description
Code
speed_detection101
arduino
here's the code for the speed detector.just upload to arduino after doing the circuitry. sen1 is the first sensors .sen2 is the second.led pin is the pin to the RGB led.The seperation between my sensors was 7.5 cms. you can adjust the speedconst variable for the same.
speed_detection101
arduino
here's the code for the speed detector.just upload to arduino after doing the circuitry. sen1 is the first sensors .sen2 is the second.led pin is the pin to the RGB led.The seperation between my sensors was 7.5 cms. you can adjust the speedconst variable for the same.
Downloadable files
Test_Video
A Video showcasing a test run of the project. the speed gets printed in the serial monitor.
Test_Video
Test_Video
A Video showcasing a test run of the project. the speed gets printed in the serial monitor.
Test_Video
here is the circuit schematic
the wires are a bit jumbled. And use the IR sensors whose link is given in the components section and not the one in the CAD.
here is the circuit schematic
Comments
Only logged in users can leave comments
manboyyy
5 months ago
if i was going to use a display , can you please recommend me to use which one ?
manboyyy
5 months ago
if i was going to use a display , can you please recommend me to use which one ?
manboyyy
5 months ago
if i was going to use a display , can you please recommend me to use which one ?
arguijo01
2 years ago
can this be made usind elegoo 2560 board?
williamworse
2 years ago
hey everyone i am here to introduce you about the best place for duct cleaning that is https://universeductcleaning.com/ universe duct cleaning
lonelyki
2 years ago
Is it possible to use it as a vehicle speed detector?
Anonymous user
2 years ago
Hi, Can you help me to attach 2 digit 7 segment display on this Soniy can display only speed in 2 digit display
Anonymous user
2 years ago
My son and I are trying this project. We want to use the concept to measure his running speed as a baseball runner. The suggested IR sensors have a shorter range than we think would work (30 cm), so I was looking at the following, NOYITO E18-D80NK Adjustable Infrared Obstacle Avoidance Detection Sensor 5V Switch Detect 3-80cm Does anyone know if these will work? Thanks.
Anonymous user
2 years ago
Hey is it possible to convert the speed detected as an input for another computer code? I was thnking of making a project where the speed is used as input for another code then the program runs
yashastronomy
2 years ago
yes its possible. you can use the pyserial library of python and take the speed as the input to your computer. I have a tutorial on that also. https://create.arduino.cc/projecthub/yashastronomy/chrome-dino-game-revamped-with-arduino-and-python-4e1bea?ref=search&ref_id=yashastronomy&offset=3 here's the link to it. you can directly use the concept used in that project.
Anonymous user
2 years ago
Hi Brand new to arduino and can nothing but willing to learn. I wonder if the detector you have used can be used to measure the speed of a speargun arrow. I have built a water tank that is 30 cm wide and 30 cm deep and 9 meters long. intend to have the sensors just above the water surface and fire the gun. Will the IR sensor be able to "see" the arrow about 15-20 cm deep in the water. The plan is to have a sensor each 100cm and then take the time from the first to the second, second to third and third to fourth. And then see how the speed slow down. Or is it another sensor/detector i should use ? Ben Simon (Sorry bad english) Im from Norway :)
Anonymous user
2 years ago
Thankyou!!!! The project is actually very easy and a good one for a beginner.
Anonymous user
2 years ago
@Yash, you haven't used a resistor while connecting the RGB LED to the Arduino Board. This will damage the LED and reduce its lifetime. Even on simulators like Tinkercad, it shows the LED getting damaged. I would definitely suggest connecting a 100-ohm resistor to the common cathode. Also, I wonder if the common cathode can directly be connected to GND instead of connecting it to pin11 and driving it low.
yashastronomy
2 years ago
@vamosabv, thanks for the comment, I know it is not good for the led to be connected without a resistor but actually i didn't have any within my reach at that time so i just didn't connect them however i have added them now. But as far as i know the common cathode can be directly connected to the ground pin of the arduino, thats not a problem. please tell me why if i am wrong. Thankyou!
Anonymous user
2 years ago
I used two VL53L0X Lasers, that work better than the IR. You can use just one and time the approach of an object.
Anonymous user
2 years ago
Can we have a contact less speed sensor for calculating the speed of the flowing liquid??
yashastronomy
2 years ago
yeah nice idea. I will definitely think about it.
Anonymous user
2 years ago
Hi, Can you help me to attach 2 digit 7 segment display on this Soniy can display only speed in 2 digit display
Anonymous user
3 years ago
I used two VL53L0X Lasers, that work better than the IR. You can use just one and time the approach of an object.
Anonymous user
3 years ago
My son and I are trying this project. We want to use the concept to measure his running speed as a baseball runner. The suggested IR sensors have a shorter range than we think would work (30 cm), so I was looking at the following, NOYITO E18-D80NK Adjustable Infrared Obstacle Avoidance Detection Sensor 5V Switch Detect 3-80cm Does anyone know if these will work? Thanks.
bensimon12
4 years ago
Hi Brand new to arduino and can nothing but willing to learn. I wonder if the detector you have used can be used to measure the speed of a speargun arrow. I have built a water tank that is 30 cm wide and 30 cm deep and 9 meters long. intend to have the sensors just above the water surface and fire the gun. Will the IR sensor be able to "see" the arrow about 15-20 cm deep in the water. The plan is to have a sensor each 100cm and then take the time from the first to the second, second to third and third to fourth. And then see how the speed slow down. Or is it another sensor/detector i should use ? Ben Simon (Sorry bad english) Im from Norway :)
Anonymous user
4 years ago
Can we have a contact less speed sensor for calculating the speed of the flowing liquid??
yashastronomy
2 years ago
yeah nice idea. I will definitely think about it.
Anonymous user
4 years ago
Hey is it possible to convert the speed detected as an input for another computer code? I was thnking of making a project where the speed is used as input for another code then the program runs
yashastronomy
2 years ago
yes its possible. you can use the pyserial library of python and take the speed as the input to your computer. I have a tutorial on that also. https://create.arduino.cc/projecthub/yashastronomy/chrome-dino-game-revamped-with-arduino-and-python-4e1bea?ref=search&ref_id=yashastronomy&offset=3 here's the link to it. you can directly use the concept used in that project.
Anonymous user
4 years ago
why i can't upload the code to the arduino?? it says avrdude: ser_open() : can't open device"\\\\.\\COM3" : the system cant find the file specified please help :(
Anonymous user
4 years ago
@Yash, you haven't used a resistor while connecting the RGB LED to the Arduino Board. This will damage the LED and reduce its lifetime. Even on simulators like Tinkercad, it shows the LED getting damaged. I would definitely suggest connecting a 100-ohm resistor to the common cathode. Also, I wonder if the common cathode can directly be connected to GND instead of connecting it to pin11 and driving it low.
yashastronomy
2 years ago
@vamosabv, thanks for the comment, I know it is not good for the led to be connected without a resistor but actually i didn't have any within my reach at that time so i just didn't connect them however i have added them now. But as far as i know the common cathode can be directly connected to the ground pin of the arduino, thats not a problem. please tell me why if i am wrong. Thankyou!
arpita49
5 years ago
Thankyou!!!! The project is actually very easy and a good one for a beginner.
manboyyy
5 months ago
if i was going to use a display , can you please recommend me to use which one ?