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...
  • НаукаНаука

Комментарии • 123

  • @hiren5421
    @hiren5421 4 года назад +3

    One can increase the distance between two IR Sensors with respect to Car size and replace 0.2 by actual distance.

  • @jeriesmarjieh5862
    @jeriesmarjieh5862 18 дней назад +1

    very excellent explanation.
    you make things very clear and right to the point

    • @ecit
      @ecit  17 дней назад

      @@jeriesmarjieh5862 Thanks!

  • @techtinkerin
    @techtinkerin Год назад +1

    Excellent work, perfect explanation. Amazing how short the code was. Thanks 😊👍

  • @makeovergames342
    @makeovergames342 Год назад +1

    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

    • @ecit
      @ecit  Год назад

      No, I think you can prepare your thesis or report by your self.

  • @dbzflame
    @dbzflame 8 месяцев назад +1

    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

    • @ecit
      @ecit  8 месяцев назад

      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

  • @user-kj2uv5ip2m
    @user-kj2uv5ip2m 6 месяцев назад +1

    bhai very nice

    • @ecit
      @ecit  6 месяцев назад

      Thanks!

  • @kentlumpay256
    @kentlumpay256 10 месяцев назад +1

    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!

    • @ecit
      @ecit  10 месяцев назад

      SDA-A4, SCL-A5

  • @varshithachowdary569
    @varshithachowdary569 Год назад +1

    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

    • @ecit
      @ecit  Год назад

      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

  • @user-bz6pj4sb7c
    @user-bz6pj4sb7c 5 месяцев назад +2

    Lcd showing blocks please tell reason 😢😢😢 bro tommorow project submit day please

    • @ecit
      @ecit  5 месяцев назад

      Vary the potentiometer and adjust the contrast

  • @mayankpatel862
    @mayankpatel862 3 года назад +1

    informative for Arduino project

    • @ecit
      @ecit  3 года назад

      Thanks

  • @meghajoshi4886
    @meghajoshi4886 Год назад +1

    Very Nice Explanation....

    • @ecit
      @ecit  Год назад

      Thank You!

  • @swaritmahalsekar5521
    @swaritmahalsekar5521 Год назад +1

    can you please explain this code for IR2,
    If (Ir2 ===1)
    t2 = millis();
    velocity = t2 - t1;

    • @ecit
      @ecit  Год назад

      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

  • @user-bz6pj4sb7c
    @user-bz6pj4sb7c 5 месяцев назад +1

    Thank you bro 🎉🎉🎉🎉❤❤❤❤❤❤

  • @hetalhtailor6725
    @hetalhtailor6725 4 года назад +2

    Excellent 👍

    • @ecit
      @ecit  4 года назад +1

      Thanks

  • @tahirmaqsood2584
    @tahirmaqsood2584 3 года назад +1

    your project is very good i want read the speed cricket ball

    • @ecit
      @ecit  3 года назад

      Speed of cricket ball can be measure with image processing. IR sensor is not suitable for that purpose

  • @manoj_o27
    @manoj_o27 7 месяцев назад +2

    Sir ush device ka name kya h jisme vcc and gnd ka input or output lcd mei Jaa rhah h

    • @ecit
      @ecit  7 месяцев назад

      Refer the circuit diagram given in description link. Its resistor

    • @manoj_o27
      @manoj_o27 7 месяцев назад

      @@ecit sir is it compulsory to use or not

    • @manoj_o27
      @manoj_o27 7 месяцев назад

      Description mei nhi h

    • @ecit
      @ecit  7 месяцев назад

      @@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

  • @therockloaddrummer1915
    @therockloaddrummer1915 3 года назад +1

    What if we want to monitor the speed of multiple vehicles at the same time?

    • @ecit
      @ecit  3 года назад +1

      Good thought, this is designed by considering single road.
      For multiple vehicles, I don't have any idea

  • @swastiksharma8901
    @swastiksharma8901 2 года назад +1

    It shows error when I upload the code from mobile phone using ardinodriod app

    • @ecit
      @ecit  2 года назад

      Which error?

  • @cameroncollum3538
    @cameroncollum3538 Год назад +1

    i keep getting inf number on the display when there is no output how do I fix that?

    • @ecit
      @ecit  Год назад

      Do you see square box on display? You can vary the potentiometer to adjust the brightness and also verify the connection again

  • @albertyeboah1177
    @albertyeboah1177 2 года назад +1

    Please I would like to see a proteus simulation of this project

    • @ecit
      @ecit  2 года назад

      Sorry, I don't have it. However you can use this code in proteus too

  • @vahynecknzita7544
    @vahynecknzita7544 3 года назад +2

    Thank u so much

    • @ecit
      @ecit  3 года назад

      Most welcome 😊

  • @anujlad7685
    @anujlad7685 4 года назад +1

    Nice sir 👍

    • @ecit
      @ecit  4 года назад

      Thank you Anuj

  • @prashantbansode2096
    @prashantbansode2096 Год назад +1

    I want proper diagram

  • @hetaltailor3886
    @hetaltailor3886 4 года назад +1

    Good 👍

    • @ecit
      @ecit  4 года назад

      Thank you 😊

  • @anastasiabakuriya8193
    @anastasiabakuriya8193 9 месяцев назад +1

    What type of IR sensor did you use?

    • @ecit
      @ecit  9 месяцев назад +1

      Its active IR sensor with digital output

    • @anastasiabakuriya8193
      @anastasiabakuriya8193 9 месяцев назад

      @@ecit Thanks! And one more thing. Can i use this code for other models too?

    • @ecit
      @ecit  9 месяцев назад +1

      @@anastasiabakuriya8193 do you mean other IR model? Yes, you can

  • @rocknaga3438
    @rocknaga3438 3 года назад +1

    Sir how we can create a data base for this...

    • @ecit
      @ecit  3 года назад

      You can store data in SD card or you can connect to server with esp chip.

  • @KhushiChalageri
    @KhushiChalageri 3 месяца назад

    Bhai do video using atmega 32 and do proteus simulation

    • @ecit
      @ecit  3 месяца назад +1

      Do you mean instead of using Arduino Framework, you want to learn Bare Metal programming for ATMega32 using Microchip Studio?

    • @KhushiChalageri
      @KhushiChalageri 2 месяца назад +1

      @@ecit yess

  • @nikhitajagadale2657
    @nikhitajagadale2657 2 года назад +1

    The previous connection of LCD n now in this video the connection was same ?

    • @ecit
      @ecit  2 года назад +1

      Yes both are same, you can refer the circuit diagram and code link in the description

    • @nikhitajagadale2657
      @nikhitajagadale2657 2 года назад +1

      @@ecit thankyou sir

    • @ecit
      @ecit  2 года назад +1

      @@nikhitajagadale2657 welcome, don't forget to subscribe this channel

    • @nikhitajagadale2657
      @nikhitajagadale2657 2 года назад

      @@ecit hello sir my lcd showing some black boxes what's the problem in that ?

    • @ecit
      @ecit  2 года назад +1

      @@nikhitajagadale2657 adjust the contrast by varying the potentiometer

  • @user-mv5wq2cy6z
    @user-mv5wq2cy6z Год назад +1

    thank u

    • @ecit
      @ecit  Год назад

      Welcome!

  • @ahdalmahmood5433
    @ahdalmahmood5433 2 года назад +1

    how do we calculate the speed in mph instead of km/hr???

    • @ecit
      @ecit  2 года назад

      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.

    • @ahdalmahmood5433
      @ahdalmahmood5433 2 года назад

      @@ecit thank you please get back to me and thanks for fast reply

    • @ahdalmahmood5433
      @ahdalmahmood5433 2 года назад +1

      What is the equation?

    • @ecit
      @ecit  2 года назад

      @@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

  • @akgamingtamil009
    @akgamingtamil009 5 месяцев назад +1

    Resistar type

    • @ecit
      @ecit  5 месяцев назад

      Half watt

  • @lohithyoutube7389
    @lohithyoutube7389 10 месяцев назад +1

    Which resistor is used
    😊

    • @ecit
      @ecit  10 месяцев назад

      220 ohm resistor and 1K potentiometer

  • @InvincibleKing786
    @InvincibleKing786 2 года назад

    Do you have a list of components for this project with the reference for each component?

    • @ecit
      @ecit  2 года назад

      No, However I have provided code link and circuit diagram, so you will get details of components from there.

  • @fredsampson8064
    @fredsampson8064 Год назад +1

    How close does the car have to be to the sensor to be detected?

    • @ecit
      @ecit  Год назад

      It will depend upon sensitivity and range of the sensor. I will work between 5 to 30 cm

    • @chandanganakwar5010
      @chandanganakwar5010 Год назад +1

      @@ecit so, how it can be used in road or highway because the range is too small

    • @ecit
      @ecit  Год назад

      @@chandanganakwar5010 there are many other IR sensor available in the market which has higher range than this

    • @chandanganakwar5010
      @chandanganakwar5010 Год назад

      @@ecit can you suggest me the sensor ... which is suitable for this project ...for long distance range it can measure easily...!!

    • @ecit
      @ecit  Год назад

      @@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

  • @user-bz6pj4sb7c
    @user-bz6pj4sb7c 5 месяцев назад +1

    Bro my speed meter not show more than 1.43 km/hr please tell bro 😢😢😢😢😢😢😢

    • @ecit
      @ecit  5 месяцев назад

      You can change the speed from kmhr to m/hr or cm/hr
      Just multiply the number

    • @akgamingtamil009
      @akgamingtamil009 5 месяцев назад

      I did not understand

    • @akgamingtamil009
      @akgamingtamil009 5 месяцев назад

      😢😢😢😢😢

    • @ecit
      @ecit  5 месяцев назад

      Watch the full video carefully and understand the concept, its a small distance so speed will be less.

    • @user-bz6pj4sb7c
      @user-bz6pj4sb7c 5 месяцев назад

      Bro if we add the buzer to this project

  • @gopinathan6454
    @gopinathan6454 3 года назад +1

    What is model no of IR sensor?

    • @ecit
      @ecit  3 года назад

      Its from local manufacturer, You can use any IR sensor.

    • @gopinathan6454
      @gopinathan6454 3 года назад +1

      @@ecit what is value POT and resistor? i tried with only POT 10K its not working display?

    • @ecit
      @ecit  3 года назад

      @@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?

    • @gopinathan6454
      @gopinathan6454 3 года назад

      Bright.... I varied but no response only bright

    • @ecit
      @ecit  3 года назад

      @@gopinathan6454 Go through this video ruclips.net/video/er5CIi76bJ0/видео.html this may help you to find your fault

  • @jv_ip
    @jv_ip 10 месяцев назад +1

    send the code pleas ?

    • @ecit
      @ecit  10 месяцев назад

      Code link is available in description

  • @pranavnaik9878
    @pranavnaik9878 2 года назад +1

    what if i want to detect speed of 2 cars .than what changes will take place in programming

    • @ecit
      @ecit  2 года назад

      Two cars simultaneously or 1 by 1?

    • @pranavnaik9878
      @pranavnaik9878 2 года назад

      1 by 1

    • @ecit
      @ecit  2 года назад

      @@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)

    • @pranavnaik9878
      @pranavnaik9878 2 года назад

      Can you please send me a coding

    • @ecit
      @ecit  2 года назад

      @@pranavnaik9878 code link is available in the description

  • @yendurichandrasekhar6605
    @yendurichandrasekhar6605 3 года назад +1

    Python code useful

    • @ecit
      @ecit  3 года назад

      Thanks! 😂

  • @electronics369
    @electronics369 3 года назад +1

    Code

    • @ecit
      @ecit  3 года назад

      I will provide link in the description tomorrow

    • @ecit
      @ecit  3 года назад

      code link - github.com/hirentailor-youtube/Arduino-Vehicle-Speed

    • @bradposton1834
      @bradposton1834 Год назад

      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.