DIY Garage Parking Assistant

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • Build this garage parking assistant for helping you keep from smashing into stuff. Use and ultrasonic distance sensor using the HC-SR04 chip, an Arduino NANO or Teensy, and an Adafruit Neopixel. Simple to wire, easy to code using c code. Best way to be alerted when parking your car is in the sweet spot. As you drive closer each of the 60 pixel light strip will light up indicating distance
    Source code
    github.com/Kri...
    link to light strip
    www.amazon.com...
    Other useful tutorials
    Temperature sensor shootout: • Temperature sensor sho...
    Using 7-segment LED's: • Using 7-segment displa...
    Writing and reading to SD cards: • Tutorial: Writing and ...
    Saving settings even during MCU power down: • Tutorial: How to save ...
    Getting those darn TFT LCD displays to work: • Tutorial: Getting TFT ...
    Turning stuff on or off: • Tutorial: Use your MCU...
    Writing analog signals/voltages: • Tutorial: Use analogWr...
    Using digital sensors: • Tutorial: Use digitalR...
    Using analog sensors: • Tutorial: Use analogRe...
    Talking to your Arduino: • Tutorial: How to talk ...
    Some fun projects to build
    Build a 3D printer filament meter: • Build a 3D printer fil...
    Homemade motorized table saw fence • DIY motorized table sa...
    High"er" res homemade Thermal Camera for $100: • DIY high-er res Therma...

Komentáře • 27

  • @tangocharlie5509
    @tangocharlie5509 Před 2 lety +1

    BTW better than a wood on the ground, a simple rope hung on the ceiling with a cork touching the windscreen is costly effective. But as a DIYselfer, I love your way to resolve this "issue"....

  • @brendancronley4480
    @brendancronley4480 Před rokem +1

    That’s a really neat solution and it looks like a fun project. Thanks for sharing.

  • @albertquick6598
    @albertquick6598 Před 2 lety

    I have been working on my garage and have been looking for something more hi teck than just a hanging tennis ball this is an awsome idea ! But I do not have the knowledge for programming ect

  • @osuhizzy
    @osuhizzy Před rokem

    I love this! Curious if you or any other viewers have tried to move this from arduino to esphome, or added the wifi/mqtt connection. I'd love to get this data into homeassistant as well.

  • @annelisabethcom
    @annelisabethcom Před 3 lety +1

    Looking at this, I thought, how could I make this much simpler? Well, attach a plank to the wall or in front of anything else you need to stay in front of. Then check what you can see over the hood when you're at the right distance. Mark the plank there. You may need different color markings for different cars using the same garage.
    Simple enough, eh?

  • @tommyl3385
    @tommyl3385 Před 2 lety

    Great video! Would you mind sharing or pointing me to the ultrasonic library you used for this project? Many of libraries are missing the methods/functions used in your sample code.

  • @dutch803
    @dutch803 Před rokem

    I enjoyed your video and decided to make this. I have copied your program and when I try to compile, I get an error on line 83, "ElaspedTime
    was not declared in this scope". On lines 28 and 29 you state "include if you are using a Teensy elapsedMillis ElapsedTime. First question is what is a Teensy, second question is how do I include elapsedMillis ElapsedTime? I am an old retired plumber and my wife got me an Arduino Elegoo Mega 2560 Starter Kit for xmas. Computer programing for Arduino is fun to learn and I could really use this parking design for my wife, of course.

    • @KrisKasprzak
      @KrisKasprzak  Před rokem +1

      ahh yes. You will need to grab a library for the ellapsedMillis call. you can get this one
      github.com/pfeerick/elapsedMillis
      Note: A Teensy is a competitor to the Arduino and like a million times better--you will get there :)
      Have fun.

    • @dutch803
      @dutch803 Před rokem

      @@KrisKasprzak perfect, compiled and loaded. Life is good, now to build hardware from your schematic. Thanks again ✌️

  • @Gino_567
    @Gino_567 Před 3 měsíci

    Code doesn't compile. again, another video on the subject with the same issues.
    why did you make a video and include code if it doesn't work?
    People are trying to follow along.

    • @KrisKasprzak
      @KrisKasprzak  Před 3 měsíci

      Compiles just fine for me… Maybe it’s… You…

  • @rashawnbrown2931
    @rashawnbrown2931 Před 2 lety

    I’m trying to make this for my senior project do you have a video or schematic of this project?

    • @KrisKasprzak
      @KrisKasprzak  Před 2 lety

      Is the one shown at 0:60 not good enough?

  • @Bakstrp
    @Bakstrp Před 3 lety

    So those how can’t figure out how to park a car will figure out and comprehend this tech talk?!

  • @justincipriani6102
    @justincipriani6102 Před 4 měsíci

    ok do it again, but in english this time!! ha. You should let me pay you to build one of these !!! you lost me at echo pin.

  • @miguelavello7493
    @miguelavello7493 Před 7 měsíci

    Hello Khris, I just found you in CZcams ..... I need to subscribe, I enjoyed your work....and I run into this "Garage parking assistant" great video.
    I was compiling the code and run into the following error:
    81..// if activity, reset counter which will wake up the unit, and display measured distance
    82.. if (abs(Distance - OldDistance) > 2) {
    83.. OldDistance = Distance;
    84.. ElapsedTime = 0;
    85.. Run = true;
    86.. }
    Did not like line 84
    Compilation error: 'ElapsedTime' was not declared in this scope
    Here is the analysis that I got from a compiler:
    "Since you are using an Arduino Nano, you should not use the ElapsedTime variable as it pertains to the elapsedMillis functionality, which is not inherently required for your scenario. Instead, you should rely on the millis() function and the OldTime variable that you've already declared to manage timing and timeouts in your code.
    Here's what you can do to correct the error:
    Remove or comment out any references to ElapsedTime in your code. Since you mentioned that the error occurs when trying to use ElapsedTime, you should ensure that any code attempting to use this variable is either removed or replaced with logic that uses millis() and OldTime.
    Use millis() for timing: You've already started this approach with the OldTime variable. To implement a timeout or measure elapsed time, you compare the current millis() value to OldTime and update OldTime when you start timing."
    Does this make any sense ?
    Can I have your comments ? Maybe I am doing something else wrong since the original code is working, so I am not sure why I am getting this "Compilation error"
    Thank you

    • @KrisKasprzak
      @KrisKasprzak  Před 7 měsíci

      When you have an application that is intended to run for weeks, months, or in this case, years, it's very bad practice to use millis(). After 29 days millis() will roll over. If the code does any time comparisons around the roll over your program will give some errors. While probably not a big issue here, it's better to use a library that will handle roll over.

    • @miguelavello7493
      @miguelavello7493 Před 6 měsíci

      @@KrisKasprzak Hello Kris, thank you so much for your reply. I have done all you shared with us here, but I can not get pass the 'ElapsedTime' in code line 83.
      I did download the and the . Do you have an idea on what I am doing wrong?
      I keep getting the 'ElapsedTime' error code.
      Thank you for your patience !!!!!!! Do not loose it yet !!!!

  • @steve8939123
    @steve8939123 Před 2 lety

    Hi Kris. Great project and great instruction thanks. Could we get the STL file for the case you made? Again thanks.

    • @KrisKasprzak
      @KrisKasprzak  Před 2 lety

      I've added a zip file of the case and back. look for "ParkingAttendent_STL.zip" in the github repository

    • @steve8939123
      @steve8939123 Před 2 lety

      @@KrisKasprzak Thanks,but I couldn't find it. Sorry.

    • @KrisKasprzak
      @KrisKasprzak  Před 2 lety

      @@steve8939123 Navigate here, the click the download button
      github.com/KrisKasprzak/SampleCode/blob/master/ParkingAttendent_STL.zip

    • @steve8939123
      @steve8939123 Před 2 lety

      @@KrisKasprzak Thanks, I got it. I really appreciate sharing your hard work with us who don't have the skill set as you. Again thanks.