Arduino Parking Sensor Tutorial - FULL VERSION

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ย. 2024

ความคิดเห็น • 117

  • @upir_upir
    @upir_upir  9 หลายเดือนก่อน +1

    Do you like the video? Please consider buying me a coffee ☕, thank you! www.buymeacoffee.com/upir

  • @goowatch
    @goowatch 2 ปีที่แล้ว +12

    I want to say a huge thank you. There is no one who equals you in the explanation and mastery of these screens with Arduino.

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Thank you for such a nice comment, I really appreciate it!

  • @wumaan
    @wumaan 2 ปีที่แล้ว +27

    Found this about divide by 58:
    "The value of 58 or 58.2 is often seen in example code. It's worth exploring where this "magic" number comes from. The Echo high pulse duration represents the time for the first detected reflection. The speed of sound varies mainly with temperature and to a far lesser degree by humidity. The chirp travels to the target and is reflected back, its journey is twice as long as the distance. 58 represents an assumption that the speed of sound is 1000000 / 58 * 2 / 100 = 344.8 metres per second. 344.8m/s would equate to a 21.6 degrees Celsius (70.8 Fahrenheit), 40% relative humidity day."

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +9

      Thank you for resolving this mystery, it makes a lot of sense now! It also explains the slight difference between the value in WOKWI emulator and my readings, as I have used the speed of sound value from wikipedia, which is a speed of sound in dry air at 20 °C = 343 m / s.

  • @StigBSivertsen
    @StigBSivertsen ปีที่แล้ว +9

    What an amazing video, the detail level is just astonishing and at first glance super complicated....

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Thank you for your nice comment. However, what do you think is super complicated?

    • @StigBSivertsen
      @StigBSivertsen ปีที่แล้ว +2

      @@upir_upir Mostly all the work you put down preparing the images and fonts.

    • @upir_upir
      @upir_upir  ปีที่แล้ว +1

      @@StigBSivertsen OK, I see. That´s actually the easy part for me since I´m doing this for so many years, but the programming side is what´s complicated and what I often struggle with.

  • @mokkus6501
    @mokkus6501 2 ปีที่แล้ว +6

    wow just find the channel and what a goldmine of quality content great job keep it up.

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +1

      Glad you enjoy it! Thank you for your nice comment and good luck with your project.

  • @dfgdfg_
    @dfgdfg_ 2 ปีที่แล้ว +9

    Thank You for the pixel design guide. It's really helped to make some basic images for my projects. 👍🌟

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +1

      Glad it was helpful! Is there any chance that you share your projects? I would love to see those!

  • @andymouse
    @andymouse 2 ปีที่แล้ว +3

    The reason for 'Black = zero ' is the wires are coloured the same as the Resistor colour code, Black = 0 Brown = 1 ect. loads of people go 'oh yeah' when I point it out !! great video as usual !...cheers.

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Yep, it makes a lot of sense... but - since the Logic application UI is dark, this channel is white in the app, so it´s not consistent anyway.. I would probably prefer the wire to be white as well. Anyway, thank you for your comment, I´m glad you like it!

  • @ABG_3D
    @ABG_3D 2 ปีที่แล้ว +5

    Well done on yet another fantastic video Upir. I was so looking forward to this one and you have not not disappointed at all.
    The depth you cover is on another level and you make it super easy for anyone to follow along, never change the way you present these tutorials 🙌💪

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Many thanks! I´m glad you like it, thank you very much for your nice comment and good luck with your projects!

    • @toroddlnning6806
      @toroddlnning6806 ปีที่แล้ว +1

      @@upir_upir can you show how to add this parkingsensor to the "Arduino OLED Menu Tutorial" you just created, so that I can enter the parking sensor from the menue?

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      @@toroddlnning6806 Hopefully you should be able to just copy both sketches and paste it into one, and make some slight changes to the menu sketch - i.e., when on second screen, show the parking sensor. Let me know if you have any problems doing this and I can surely help.

    • @toroddlnning6806
      @toroddlnning6806 ปีที่แล้ว

      @@upir_upir Ok, how would I get back to the menue again?

  • @ChuckThree
    @ChuckThree 2 ปีที่แล้ว +3

    This is such a cool project. Was looking for something like this for a 60’s Ford F100 project. Probably using e-ink display or (success depending) a diy electroluminescent display.

    • @speedy19085
      @speedy19085 2 ปีที่แล้ว +1

      i'd love to be updated if u do a diy electroluminescent one

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +2

      Thank you, Charlie! I would also like to see your project in case you go with the diy electroluminescent display. Sounds like something I would like to try as well if I had more time :)

    • @ChuckThree
      @ChuckThree 2 ปีที่แล้ว

      @@upir_upir keep up the great work. The goal is to replicate the Apollo programs DSKY display but LumiLor paint is already being used elsewhere but doesn’t have the same look.

  • @shubhamjaiswal3172
    @shubhamjaiswal3172 2 ปีที่แล้ว +5

    Bro this is GOLD!
    Kudos for making such content!⚡⚡🚀

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Thank you so much 😀

  • @duckyblenderold
    @duckyblenderold 2 ปีที่แล้ว +2

    Nice detailed video! I actually prefer 1x, because I can learn faster and I still understand everything.

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +1

      Thank you for your comment, I actually hope that most viewers would prefer the 1x speed as this is the speed I talk.. good luck with your projects!

  • @drel2312
    @drel2312 2 หลายเดือนก่อน +1

    I hope you can create it with a buzzer. It can raise awareness for drivers when backing up.

    • @upir_upir
      @upir_upir  2 หลายเดือนก่อน

      Yep, that should be simple. I just hate hearing the buzzer sounds :)

  • @916senna
    @916senna 2 ปีที่แล้ว +2

    What an amazing video, you cover so much detail. I be watching this many times. Your knowledge is astonishing. 👍

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Glad you enjoy it! Thank you for your nice comment

  • @dan_m320
    @dan_m320 ปีที่แล้ว +1

    Great project! I think a buzzer would be a great addition.

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Thank you. Yes, I agree. I might add the buzzer and record additional quick video in the future..

  • @wszystkoinic3246
    @wszystkoinic3246 6 หลายเดือนก่อน +1

    Great job, only 99% of parking systems use four sensors, not three sensors.

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      Thank you; it should be simple to expand the sketch with as many sensor as you like. I only used 3 because the display was tiny to show more info.

  • @mazouakh
    @mazouakh 11 หลายเดือนก่อน +1

    Awesome video, very instructive and well explained Thank you for your hard work. I have a question, i'm looking to build an 8 waterproof sensors system but there aren't enough input pins in the arduino to have 8 sensors. is there a work around to achieve this you can think of? Thanks again

    • @upir_upir
      @upir_upir  11 หลายเดือนก่อน

      Thank you for your comment. There are many ways how to solve your problem, but I guess the simplest one is to use Arduino MEGA. In many ways, it´s similar to UNO, but it has much more pins, probably more than you will ever need. Plus you can simulate it on WOKWI.

  • @hellofisher3437
    @hellofisher3437 7 วันที่ผ่านมา +1

    Amazing content. One question please. I got all the sensors feeding me the distance but I cannot get it displayed on oled screen. Is the wiring different if I'm using arduino leonardo?

    • @upir_upir
      @upir_upir  4 วันที่ผ่านมา

      Yes, please google Leonardo Pinout, I believe for this board, I2C pins are 2 and 3.

    • @hellofisher3437
      @hellofisher3437 4 วันที่ผ่านมา

      @@upir_upir Should have done that in the first place. Thanks

  • @yogeshykvOfficial
    @yogeshykvOfficial ปีที่แล้ว +1

    Very interesting projects. Very well put and explained.

    • @upir_upir
      @upir_upir  ปีที่แล้ว +1

      Thank you, I’m glad you like them!

  • @mightycorbet
    @mightycorbet 5 หลายเดือนก่อน +1

    Great project! I have implemented everything but when I run the program and check the serial monitor I get wrong distances for 1 or 2 of the 3 sensors. They are equally distanced apart on breadboard but still close. Could this be a problem? Is it that the trig pulses somehow mix with each other and cause the error? Is there a way that we can trig the first sensor wait for it to receive and then trig the next sensor wait for it to receive and then trig the last sensor and wait for it to receive without a for loop?

    • @upir_upir
      @upir_upir  4 หลายเดือนก่อน

      Yes, you either have to wait a while, or place those sensors far away from each other so they don´t collide. I believe you can set the timeout time for each sensor, otherwise, it might take up to a second to wait for a reflected signal.

  • @Mr.Bearded.Mechanic
    @Mr.Bearded.Mechanic ปีที่แล้ว +2

    Wow, this is some next level sht! Awesome work, great video with lots of information and basically a step-by-step tutorial for it. I did not understand half of it, even though I made myself an Arduino uno oil temp and pressure (and battery voltage value with voltage divider resistors) gauge for my car.

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Thank you for your comment! The oil temp and pressure project looks interesting, do you have more details/ perhaps a video? I would love to see it!

    • @Mr.Bearded.Mechanic
      @Mr.Bearded.Mechanic ปีที่แล้ว +1

      @@upir_upir I am glad you are interested in my project. I will try to make a video about it, how it works, codes, and sources (if I can find them). I also made a 3D printed plastic case for the Arduino and the screen with XHP connectors, and an adapter for the sensor. Unfortunately, I was not able to add to my car, cannot find a good place for the sensor without a bigger modification.

    • @upir_upir
      @upir_upir  ปีที่แล้ว +1

      Great, I look forward to that video, and I would be happy to promote it on my channel. Please let me know once you have it and good luck with your projects!

    • @Mr.Bearded.Mechanic
      @Mr.Bearded.Mechanic ปีที่แล้ว +1

      @@upir_upir I just uploaded the video about the oil pressure and temp sensor with OLED display :) Here you can check it out. th-cam.com/video/Wn5kIrU5_tc/w-d-xo.html

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      @@Mr.Bearded.Mechanic This is great, thank you for posting it! It´s a shame it wasn´t installed in your car, I would love to see it in action. Does that sensor reports both the temperature and pressure?

  • @maxiepaxie.2006
    @maxiepaxie.2006 9 หลายเดือนก่อน +1

    In a beginner to this and don´t know programming, but i tried this as a little school project for my soon to be future older car. I have a question. Would it work to somehow install a small buzzer och speaker to play a sound as the objects come closer? When I ran the program I saw a little speaker icon on the display, is this already a feature? And then what pins is for the buzzer? Thanks for any help!

    • @upir_upir
      @upir_upir  9 หลายเดือนก่อน +1

      Yes, the buzzer could be easily added. Right now, it´s not supported in the code. If you google wokwi buzzer, you can get a lot of different examples. This is a one line of code that will play a tone on a buzzer connected to pin 8:
      tone(8, 262, 250); // Plays 262Hz tone for 0.250 seconds
      Good luck with your project!

    • @maxiepaxie.2006
      @maxiepaxie.2006 9 หลายเดือนก่อน

      @@upir_upir Thank you very much for your work!! :D

  • @shreechandansamal5206
    @shreechandansamal5206 ปีที่แล้ว +1

    why i didn't suscribe.....click now... great video...sir

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Thank you for subscribing, and good luck with your projects!

  • @VahaC
    @VahaC 2 ปีที่แล้ว +2

    You are the best. Thanks a lot. This is very useful tutorial

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Thank you very much for your nice comment! I´m glad it was helpful.

  • @manuel.camelo
    @manuel.camelo 11 หลายเดือนก่อน +2

    I MUST BECOME A GOD of Electronics just like you.
    👁️👃👁️🙏

    • @upir_upir
      @upir_upir  10 หลายเดือนก่อน +1

      I´m glad you think that, but I´m playing with electronics for only a few years. I´m definitely nowhere close to expert.

    • @manuel.camelo
      @manuel.camelo 10 หลายเดือนก่อน +1

      @@upir_upir I appreciate your Humility.
      👁️👃👃👁️
      🙏
      Absolute Jesus !

  • @jonny11bonk
    @jonny11bonk 2 ปีที่แล้ว +2

    Dúfam, že začneš robiť videá aj CZ. Veľmi sa mi páčia tvoje videá.

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +1

      Díky za komentář, do budoucna to určitě plánuji, ale teď bohužel nemám kapacitu natáčet dvě verze videa - hlavně teda proto, že nestačí jenom namluvit českou verzi, když všechno ostatní (proměnné, komentáře atd), jsou stejně v angličtině...

  • @upir_upir
    @upir_upir  ปีที่แล้ว +4

    Want to see this project used in a menu? 𝐖𝐚𝐭𝐜𝐡 𝐭𝐡𝐢𝐬 𝐯𝐢𝐝𝐞𝐨> th-cam.com/video/HVHVkKt-ldc/w-d-xo.html

  • @juancarlos1549
    @juancarlos1549 ปีที่แล้ว +1

    You are incredible, I like a lot your work... Greetings.

    • @upir_upir
      @upir_upir  ปีที่แล้ว +1

      Thank you, Juan! I’m glad you like it. Good luck with your projects!

  • @janbryknar6190
    @janbryknar6190 2 ปีที่แล้ว +2

    Dobrá práce 👍

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Díky díky!

  • @mokshkandpal1220
    @mokshkandpal1220 ปีที่แล้ว +1

    this will work on practical(real life) OLED also right?

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Sure, it´s displayed also in the video.

  • @jaakkawinterroadofficial
    @jaakkawinterroadofficial ปีที่แล้ว +1

    I like your lcd graphic desing😍

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Thank you! Are you working on any project using the OLED display?

  • @FS-me8mj
    @FS-me8mj 4 หลายเดือนก่อน +1

    because of exporting the "sensors..." layers as rectangles, my screen is showing them as rectangles and they are overlapping with each other. Is there anyway to overcome this?

    • @upir_upir
      @upir_upir  4 หลายเดือนก่อน

      try setting the bitmap mode to 1 (transparent) -
      u8g2.setDrawColor(1);
      u8g2.setBitmapMode(1);
      ....

  • @enriejayocate7994
    @enriejayocate7994 ปีที่แล้ว +2

    Hello where to but the ultrasonic tester you used? Thank you

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      You can get it for example from here: s.click.aliexpress.com/e/_DCABGCV

  • @electroniclife7213
    @electroniclife7213 7 หลายเดือนก่อน +1

    good work, can you add sonor alert for minimum values

    • @upir_upir
      @upir_upir  7 หลายเดือนก่อน

      You mean sound? Yes, you can add buzzer quite easily.

  • @electronic7979
    @electronic7979 2 ปีที่แล้ว +2

    Nice project

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +1

      Thank you! Cheers!

  • @sumedhburbure4173
    @sumedhburbure4173 10 หลายเดือนก่อน +1

    Great informative video!

    • @upir_upir
      @upir_upir  10 หลายเดือนก่อน

      Glad you enjoyed it!

  • @carlinwhite6915
    @carlinwhite6915 6 หลายเดือนก่อน +1

    I am having an issue with the sensor images overlapping on the display. For example the sensor 1 B black background is on top of the sensor 1 C white section. Anyone know where I went wrong? I have retried the background fill with “black” and “color burn” multiple times but keep getting the same result.

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      try: u8g2.setBitmapMode(1); to see if that helps.

    • @carlinwhite6915
      @carlinwhite6915 6 หลายเดือนก่อน

      This fixed it! Thank you! If others are reading this, I should have mentioned I am using the library U8g2lib. I could not get Ug8 to work with the teensy 4.0 and ssd1309 screen I have but I was able to get U8g2 to work.

  • @H2ON_MEA
    @H2ON_MEA ปีที่แล้ว +1

    Great work .

    • @upir_upir
      @upir_upir  ปีที่แล้ว +1

      Thank you, I appreaciate it!

  • @chetreanualexandru9670
    @chetreanualexandru9670 ปีที่แล้ว +1

    Hello! The project is amazing!
    I am trying to do something similar but on a ILI9341 2.8” display with a resolution of 320X240 pixels and I cannot upload the image to the display. Can you guide me in this manner please?

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Thank you, I’m glad you like it! Unfortunately I don’t have any experience with that screen, but it’s on my list of the displays to try. Once I do that, I will surely record a video. I’m sorry I cannot help more right now.

    • @chetreanualexandru9670
      @chetreanualexandru9670 ปีที่แล้ว

      Thank you for your answer! Keep up the good work!

  • @gleteam2330
    @gleteam2330 ปีที่แล้ว +1

    Can I get some custom work done you got a upwork or Fiverr??

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      Please send me an email and I will take a look. Thank you!

  • @wendelsouza7689
    @wendelsouza7689 2 ปีที่แล้ว +3

    Wow. God.

  • @oswaldonetosegundo6890
    @oswaldonetosegundo6890 ปีที่แล้ว +1

    I implemented this method in a project, but unfortunately, it is not suitable for production because the lag caused by the constant updates of the image is too significant for the Arduino processor.

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      You can try to use a different Arduino or Arduino compatible board. I have an older video where I was testing a board that was fully compatible but 5x faster.

  • @mahendramobileshop8891
    @mahendramobileshop8891 2 ปีที่แล้ว +1

    GOOD SIR I LIKED

  • @TheJavaSync
    @TheJavaSync 2 ปีที่แล้ว +1

    0,75 speed -.better for me 😀

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +1

      It´s great that everyone could choose the speed that works for them :)

    • @TheJavaSync
      @TheJavaSync 2 ปีที่แล้ว +1

      @@upir_upir thanks for the great knowledge video!!

  • @TheGuyWhoComments
    @TheGuyWhoComments 2 หลายเดือนก่อน +1

    Is there a way to get the copy of the code?

    • @upir_upir
      @upir_upir  2 หลายเดือนก่อน

      There should be a link to source code in the description.

    • @TheGuyWhoComments
      @TheGuyWhoComments 2 หลายเดือนก่อน

      @@upir_upir thanks

    • @TheGuyWhoComments
      @TheGuyWhoComments 2 หลายเดือนก่อน

      @@upir_upir I think I’m blind

  • @pete3897
    @pete3897 2 ปีที่แล้ว +2

    I think it's pronounced "say-lee" (but I am NOT an authority on it!). Man, I'd _love_ to see what you and Posy could come up with if you designed a display together! I recommend his video on 7-segment displays if you haven't seen it already :) th-cam.com/video/RTB5XhjbgZA/w-d-xo.html

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว

      Thank you for the clarification. I have indeed seen the 7-segment video multiple times, it´s a masterpiece! Who knows, perhaps there will be some cooperation in the future..

  • @7BlackJack8
    @7BlackJack8 ปีที่แล้ว +1

    I've subscribed but you speek too fast, i need to slow down the video to catch...

    • @upir_upir
      @upir_upir  ปีที่แล้ว +2

      Thank you for the sub, and hopefully the slower playback speed would work well..

  • @tacolover619
    @tacolover619 ปีที่แล้ว +1

    Talking too fast or speed up audio. :(

    • @upir_upir
      @upir_upir  ปีที่แล้ว

      I´m talking fast. Please slow it down using the playback controls. Thank you!

  • @Scaramouche122
    @Scaramouche122 2 ปีที่แล้ว +1

    only watch your videos at 25% no even try to understand them

    • @upir_upir
      @upir_upir  2 ปีที่แล้ว +2

      I’m sorry to hear that! Please feel free to ask any questions you might have, I plan to record more tutorials for beginners soon.