Car Speed Detector using Arduino with IR Sensor
HTML-код
- Опубликовано: 11 авг 2020
- #Speeddetector #Arduino #LCD #IRsensor
This Arduino tutorial explain about car speed detector using IR sensor with Arduino UNO board. By considering known distance and by measuring time using IR sensor you can measure the speed of vehicle using Arduino or any micro-controller.
Code - github.com/hir...
Subscribe this channel:
bit.ly/3c7zcax
Arduino Tutorial Playlist:
• Arduino Projects and C...
Link for LCD Interfacing & Programming Video:
• LCD Interfacing & Prog...
Arduino code for Ultrasonic Sensor:
• Distance Measurement A...
Link to download Arduino IDE:
www.arduino.cc... - Наука
One can increase the distance between two IR Sensors with respect to Car size and replace 0.2 by actual distance.
very excellent explanation.
you make things very clear and right to the point
@@jeriesmarjieh5862 Thanks!
Excellent work, perfect explanation. Amazing how short the code was. Thanks 😊👍
1. Abstract
2. Introduction
3. Literature review
4. Methodology
a. Block diagram
b. Circuit diagram
c. Flow-chart
d. Description
e. Mathematical analysis (if any)
5. Required instruments
6. Picture of the implemented project
7. Result analysis
8. Future scope
9. Conclusion
10. References
11. Appendices
Can you please that add this project
No, I think you can prepare your thesis or report by your self.
Say I want to replace the IR sensor with an ultrasonic sensor... What changes would i have to make to the code? I want to use a HC-SR04 sensor
I have already uploaded multiple videos on ultrasonic sensor, I think you use the current logic of IR sensor only you need to replace IR sensor read operation with ultrasonic sensor.
ruclips.net/video/XBF_HRTtdPI/видео.htmlsi=iMlsXTobgxrGquzN
bhai very nice
Thanks!
Thank you for the good work, I want to ask something with regard to the connection of the LCD, if i have an LCD that have I2C, where should I connect the SDA and SCL? Thank you!
SDA-A4, SCL-A5
ir sensor gives 1 or HIGH when object is not detected in its vicinity but in the code you we have taken 1 for detecting the object....i'm confused can someone please explain
It will depend upon the IR sensor,
If your IR sensor provide output as login 0 when object is present then you need to reverse the logic in code
Lcd showing blocks please tell reason 😢😢😢 bro tommorow project submit day please
Vary the potentiometer and adjust the contrast
informative for Arduino project
Thanks
Very Nice Explanation....
Thank You!
can you please explain this code for IR2,
If (Ir2 ===1)
t2 = millis();
velocity = t2 - t1;
millis() will return the current ticks of Arduino in milliseconds.
So, we will get the time at IR1 and IR2,
Then will find the difference between this two points and convert it into km/hr (we have also fixed the distance between IR1 and IR2 sensor)
Watch full video to understand the concept
Thank you bro 🎉🎉🎉🎉❤❤❤❤❤❤
Excellent 👍
Thanks
your project is very good i want read the speed cricket ball
Speed of cricket ball can be measure with image processing. IR sensor is not suitable for that purpose
Sir ush device ka name kya h jisme vcc and gnd ka input or output lcd mei Jaa rhah h
Refer the circuit diagram given in description link. Its resistor
@@ecit sir is it compulsory to use or not
Description mei nhi h
@@manoj_o27 oh ok, you were asking about potentiometer, It is 1kohm potentiometer, it is required to adjust the contrast of LCD. So, yes it is required
What if we want to monitor the speed of multiple vehicles at the same time?
Good thought, this is designed by considering single road.
For multiple vehicles, I don't have any idea
It shows error when I upload the code from mobile phone using ardinodriod app
Which error?
i keep getting inf number on the display when there is no output how do I fix that?
Do you see square box on display? You can vary the potentiometer to adjust the brightness and also verify the connection again
Please I would like to see a proteus simulation of this project
Sorry, I don't have it. However you can use this code in proteus too
Thank u so much
Most welcome 😊
Nice sir 👍
Thank you Anuj
I want proper diagram
Good 👍
Thank you 😊
What type of IR sensor did you use?
Its active IR sensor with digital output
@@ecit Thanks! And one more thing. Can i use this code for other models too?
@@anastasiabakuriya8193 do you mean other IR model? Yes, you can
Sir how we can create a data base for this...
You can store data in SD card or you can connect to server with esp chip.
Bhai do video using atmega 32 and do proteus simulation
Do you mean instead of using Arduino Framework, you want to learn Bare Metal programming for ATMega32 using Microchip Studio?
@@ecit yess
The previous connection of LCD n now in this video the connection was same ?
Yes both are same, you can refer the circuit diagram and code link in the description
@@ecit thankyou sir
@@nikhitajagadale2657 welcome, don't forget to subscribe this channel
@@ecit hello sir my lcd showing some black boxes what's the problem in that ?
@@nikhitajagadale2657 adjust the contrast by varying the potentiometer
thank u
Welcome!
how do we calculate the speed in mph instead of km/hr???
There are two ways,
First in this code you can take one float variable, multiply km/hr value by 0.621371 and display the result.
Second:
Convert cm into mile and set equation for mile per hour.
I will tell you the exact equation tomorrow.
@@ecit thank you please get back to me and thanks for fast reply
What is the equation?
@@ahdalmahmood5433 velocity = (0.2 / velocity) * 3.6 * 0.621;
Here, 0.2 means distance between two sensor is 20 cm, if you change the distance, make sure you replace the 0.2 value
Resistar type
Half watt
Which resistor is used
😊
220 ohm resistor and 1K potentiometer
Do you have a list of components for this project with the reference for each component?
No, However I have provided code link and circuit diagram, so you will get details of components from there.
How close does the car have to be to the sensor to be detected?
It will depend upon sensitivity and range of the sensor. I will work between 5 to 30 cm
@@ecit so, how it can be used in road or highway because the range is too small
@@chandanganakwar5010 there are many other IR sensor available in the market which has higher range than this
@@ecit can you suggest me the sensor ... which is suitable for this project ...for long distance range it can measure easily...!!
@@chandanganakwar5010 it will depend upon your requirement and range you want. Gp through this www.google.com/search?q=ir+sensor+for+long+range&client=ms-android-xiaomi-rev2&prmd=isvn&source=lnms&tbm=shop&sa=X&ved=2ahUKEwiv-um75vP6AhVMwzgGHfcaCFAQ_AUoAnoECAMQAg&biw=360&bih=560&dpr=3
Bro my speed meter not show more than 1.43 km/hr please tell bro 😢😢😢😢😢😢😢
You can change the speed from kmhr to m/hr or cm/hr
Just multiply the number
I did not understand
😢😢😢😢😢
Watch the full video carefully and understand the concept, its a small distance so speed will be less.
Bro if we add the buzer to this project
What is model no of IR sensor?
Its from local manufacturer, You can use any IR sensor.
@@ecit what is value POT and resistor? i tried with only POT 10K its not working display?
@@gopinathan6454 I have used 1 K POT and 220 ohm resistor.
Vary the value of POT and test it again, are you getting backlight on LCD?
Bright.... I varied but no response only bright
@@gopinathan6454 Go through this video ruclips.net/video/er5CIi76bJ0/видео.html this may help you to find your fault
send the code pleas ?
Code link is available in description
what if i want to detect speed of 2 cars .than what changes will take place in programming
Two cars simultaneously or 1 by 1?
1 by 1
@@pranavnaik9878 then, pass 2 cars 1 by 1, first it will show speed of first car and then for second. (Ideal condition is assumed, first car will cross first)
Can you please send me a coding
@@pranavnaik9878 code link is available in the description
Python code useful
Thanks! 😂
Code
I will provide link in the description tomorrow
code link - github.com/hirentailor-youtube/Arduino-Vehicle-Speed
Just the video I was looking for. What parts of the code would i need to change to use retro reflector sensors? I just want to measure time from the time the first sensor is tripped to when the last sensor is tripped.
For that i think i just drop of the speed conversation part of the code.