DIY Garage Parking Assist Stoplight
HTML-код
- Опубликовано: 30 июл 2024
- Using an Arduino Nano, ultrasonic sensor, rotary encoder, and an OLED display I created a stoplight for your garage! It helps you park at just the right distance every time. Hope you like it!
I am finally able to park in a garage, which takes some getting used to. I like to have as much space as possible to access the workbench along the back wall, but trying to get as close to the garage door has caused some...problems.
This device senses the distance of the object in front of it (a vehicle) and depending on range, one of three lights will turn on.
The Stopping point can be adjusted via a rotary encoder on the side of the device, current range and the set stopping distance can be observed on the OLED display.
The Red light the variable that can be adjusted, and the ranges of the yellow and green lights are based on that variable.
Project Write-Up:
create.arduino.cc/projecthub/...
Links (Affiliate):
TS100: amzn.to/32SGZHk
Arduino Nano: amzn.to/32TEgxB
OLED: amzn.to/3kBRZz5 (trust me, get two)
Rotary Encoder: amzn.to/2RRMosa
Ultrasonic Sensor: amzn.to/32TppDp
Better Wire: amzn.to/2RQsSwc
Timestamps:
0:00 - Very important
0:15 - Intro/Concept
0:53 - Device Components/Code Explanation
2:10 - First Iteration Design
2:56 - Electronics
3:47 - Preliminary Test
4:31 - Garage Install
5:24 - Garage Real Test
6:07 - Conclusion
This thing:
/ typalowski Наука
Sweet! I need it! I can mount it on my desk in my small machine shop so I can back my truck in without running into my desk/3D printer stand/cnc router stand!
Side note, your lead out music reminds me of Napoleon Dynamite. 😂
You win buddy! Check my channel for my email and message me there if you still want it!
Ty Palowski ruclips.net/video/e0v-Y8rdx40/видео.html
@@TyPalowski Hello Ty, very much enjoyed your video and creativity. Wondering if you would be interested in building and selling me a system?
So very well done! 👍 Sharing the how to's of a project like this is so very much appreciated by those of us who need them. You saved me weeks of figuring it out myself. So impressed that you took the time to share in such detail. Thank you!
I don't even have a garage and I want one. Sweet build, yet again, Ty. 2k subs is closer than you think!
Awesome bud very nice build, especially the easy calibration function.
I built something similar but a little more crude.
An LED switched by a radar beam, so as you reverse into the garage the beam is broken, the LED switches on and switches off again once you are clear of the garage door.
Love your stuff mate keep it up.
This idea was a genius one.
ty i freakin love u man im just waiting for this channel to take off.
Definitely beats the old tennis ball on a string hanging from ceiling trick, very cool project!
That was the benchmark I tried to beat haha! Thanks Matt!
Awesome video and awesome build once again!
Sir, you seem to never disappoint us with your videos!
And about the parking sensor, it would definitely not be useful in my case but it sure would be a lot of fun to play around with!
Thank you very much! I'm glad you liked it!
I'm going to do another write-up with all the parts and code in a bit!
Really enjoyed the video as always, keep it up my man !
Appreciate it!
Nice work, good explanation, and I like the humour thrown in the video as well!
Thanks Albert! I appreciate you checking out the video and leaving a comment.
Great job, best design I have seen yet for this type of device.
Thank you! And thanks for watching and commenting!
This would be super helpful ! Would love to get one ! Great work !
Sweet build Ty! Super practical!
Thanks Michael! Glad you liked it and I appreciate the support as always!
Very cool! I saw this over on the Arduino subreddit, and watched. Nice, relatively simple, but well executed project, and I love your video editing/presentation style and humor. The only thing I would add personally is some kind of filtering/smoothing function for distance measurement, to decrease the amount of flickering you see changing between lights.
Hey thanks for taking the time to watch and comment! You're completely right! Of course I thought of that after the fact haha, but writing in a function that takes a moving average of the distance measurement and uses that to determine which light to activate would be much better. Thank you for the suggestion! I'll come up with something in the code and add it to mine and maybe the one that I'll be sending out.
@@TyPalowski You do it like a thermostat. Instead of checking a hard limit in the code for switching you subtract one inch when checking to go from green to yellow or yellow to red, but add 1 inch when checking red to yellow or yellow to green.
Impressive!! The variable distance using the knob and the ui on the display is pretty nice.
Wish I could make one to replace my tennis ball but sadly I don’t have the tools.
Congrats anyway it’s an awesome project!
Thanks Nicola! Glad you liked the video!
This would be helpful in so many different areas.
Love it! Just what I was going to do. Thanks!
This is awesome. I wish I could park in my garage but when you're a dad of (currently) 3, there's a lot of crap piled up in the garage, forcing m=e to park on the street. Awesome video as usual.
also, happy birthday on the 15th
Thanks! Idk if you read the fast text when talking about the workbench; I understand completely about how much stuff 3 people can stack up in a garage haha! Thanks for commenting and for the support!
@@TyPalowski yea i saw it, maybe you could do a collab video where they help you build some storage in the garage? lmao
That is very slick. Nice work and great fun tutorial.
Thank you very much! I appreciate you leaving a comment.
I'm working on my next video now, should have it next week!
After working on and off making my own garage parking arduino I find you and I want it!
Love this project. I just scored a real traffic light and want something like this to control it. Great job!
Me aswell 😂😂😂😂
Awesome channel Ty! Didn’t even know you had one till you linked this vid in the Discord, it’s Juan Robledo btw.
Hah thanks Juan! Hope you like the vids
Really cool idea, as always.
Btw, youtube didn't show me your last video on my subs, i'll watch it now. Don't worry, now the bell is on
Thanks Borja! And I very much appreciate that haha!
I love the ingenuity would love to get one
Wow, I want one! Love youR VIDS
I love them more!
Hey Ty, a pretty cool video. I have been attempting to do this very same parking system but only with traffic light. I was successful in all aspects but after parked the code should reset. Unfortunately I have not had the time to research to get this working as I would like it. Today I ran across a few other videos doing the same thing. One by "Mechanical Max" who added a calibration step where you added the calibration knob as well as a OLED display. I am looking forward to looking at your code and perhaps using it with my traffic light. I also like your 3D printed case. I also have a CNC from Stepcraft and can mill, 3d print etc. I think your video was a bit rough but I can understand being able to work with what you have and I can appreciate your work. I have subscribed
Awesome project. I need to make one for my wife. The tape on the side garage wall doesn't seem to help enough! Like you, I am trying to keep all the "extra" space at the front of the garage.
You can do it Brian! Thank you for watching and commenting!
Excellent! Subscribed.
Very cool. I want to try this with an old retired traffic light that I'm restoring. Wish me luck
Good luck! Thanks for checking out the video’
Did you get it done. Im currently doing the same
Bro this is dope asf 💯 I need 1 lol
While I'd love to win this giveaway I think it'd be even more fun to make it (once I have a garage...). Nice work!
Why isn't this gone to market yet? Seems like a million dollar success. Shark Tank perhaps?
Great job!. I was going to make something like this, but yours is way better so I am going to copy it. :)
Glad you enjoyed it! And feel free!
Check the comments, some people recommended extra stuff to put into the code that will make it auto turn off and also implement a moving average for the distance measurement.
I appreciate you checking out the video and commenting
I am looking forward to reading your code. Thanks.
Bruhhhhh that is so cool! I would love to have one :D
Wow nice! Maybe add some kind of aural signal if you’re really too close? I had wanted to build one like that but I never thought the humble ultrasound distance sensor would work!
I would buy this!
Another great video Ty, I always look forward to your videos. Like another commenter, I'd like to win one buuuuut this definitely looks like something I could build for myself and mount magnetically on my garage racks using your video and materials.
Ping pong balls cut in half over the LEDs as diffusers
YES! That's a great idea! Thanks Andy
The red light stays on as long as the car is parked right? Maybe you should make it turn off after some minutes without a change of distance
That's a good idea! I tried looking into ways of dimming the screen as well (for burn-in) but nothing jumped out at me. I'm sure there's a way to have a secondary function running that measures the time an object is within a certain range. Or maybe I could set the red light to turn off just after the threshold and have a similar effect as the green light?
Thanks for the comment and taking the time to watch!
@@TyPalowski Make variables "sleeping", "lastActivity", and "lastDistance". In the beginning set sleeping to false, lastActivity to millis() and lastDistance to the current sensor reading.
Every loop check if the sensor reading is more than four inches different than lastDistance. If it is, set sleeping to false, lastActivity to millis() and lastDistance to the current sensor reading.
Every loop check if millis() > (lastActivity + 30000). If the last time the distance changed was more than 30 seconds ago set sleeping to true.
In the display loop (LED output) only run it if sleeping is false, otherwise set all leds to off and display the splash screen with upper case z's moving up and away from the sensor image. Also check the distance, and if it's greater than the green distance, don't display the jeep part of the splash screen.
And don't worry about oled burnin. Buy another $2 oled display and stuff it loose inside the case so you can replace it if it ever gives you trouble.
@@TyPalowski Can you please integrate this into the code? I'm working on building this and it would be PERFECT!
nice!
Cool!
Thanks!
great project but I have two quick questions. the switch in your video is different than the one in your parts list one has four points, the one in the parts has three. Which one do I use? and please. if you send me this code that includes turning off the red light say after one minute I will make sure your future ancestors are blessed lol
this it great but is there anyway to add code to turn the red light off after say 1 min so you don't
have to unplug it
Brilliant as always! Also I think it would be very useful for me cuz I’m Asian and a female so god knows I need all the help I can get 😆
I also made one of these for my capstone project... the HC-SR04 sensor tends to not be too accurate >5ft which sucks... only other method is to swap it out for a TFmini-s but that lidar sensor is $29 compared to $2 :/
Cool
Ty, do you have a solution for the side of the garage? I was driving a sedan, but I just transitioned to a SUV. It is hard to gauge the depth and distance on the right side of my garage, which is a wall. Thanks!
I think you should a flashing red pattern to tell you to pull forward incase you back up to far. This would insure you have a certain amount of room between your jeep and your work bench.. ALSO one of these would light fire under my butt to finish cleaning out my garage so I can park my car in it haha.
That's a good idea! Someone mentioned having the light turn off after a certain amount of time, that gave me the idea to maybe have the light turn off when I get just past the stopping point to save some energy. Blinking would be a great warning too! Let me know if I went too far. Thanks for checking out the video!
I need one of these! And a car too. And a garage. :(
Haha don't worry! They will come in time!
I don't need this, however the mrs does hahah. You should sell those!
Thanks for checking out the video! lol about the mrs, and maybe one day I'll be able to, just need to find an injection molding place!
Very nice! I’m new to the arduino world, but I am wanting to utilize your platform to make this, but modify it to use an actual stop light that I have. I assume the relay boards will work with the nano you recommended?
Has anyone done any sleep mode for the LED's and OLED?
VERY cool, thumbs up! Have you seriously considered selling them? The only other one I've seen that is similar is the Striker parking assistant, but the sensor is on a separate lead, and have to get a separate power supply to eliminate batteries.
Yes, nice! But now that you are focused on the backup stoplight, how are you avoiding sideswipes? :-) You could have a loud annoying horn go off on yellow-to-red transition maybe?
And I could use this ... first thing it would help with is forcing me to clean out my garage!
Great, love it. Can you post the schematic on how to wire it please?
Thank you! I posted a link in the description to the arduino write up where you can see the wiring, along with some links to the electronics used.
Wait. Are you telling me the walls of the garage are just walls and not a good indicator of when I should stop?
nice video. nice project.
as always, I have to offer suggestions.
add two other ranges green and yellow yellow and red
add yet another range red blinking
I didn't look at the code, but how long is the delay before it shuts off ?
================
deep dive....
sensor is set for a jeep back window. too high for a car.
you could make the above to work with the windshield.
does it go on when the door goes up and off when the door drops ?
Hey Dave! Sorry I'm getting to you late, I was at a training all week/weekend for work.
Thanks for checking out the video and leaving suggestions, I'm far from an expert on any of this so I'll take all the help I can get haha.
Adding those ranges would be cool to give a smoother visual experience. Some one also suggested adding a smoothing calculation (i.e. moving average) to the distance measurement so the lights don't blink back and forth.
Another commenter wrote some nice code that would add an off function if the range hadn't changed by a certain amount within a set time period. The LEDs don't bother me too much, I was more worried about the burn in on the little OLED. When mentioning that to the guy that wrote the off function code, he said just to buy another $2 OLED haha!
You're absolutely right about the sensor possibly being too high for a car. I mentioned in the video that I left the opening to the bottom of the case large just incase I needed to add a cable extension to the ultrasonic sensor, in my case it worked out so I didn't bother.
Thanks again for watching and commenting!
The Range I set the edge of the green light to is inside the distance to my garage door so that is not a problem for me.
Great project! I know this is 3 years old but have you made any changes to your code? Are you still using the stoplight? It'd be great to hear your thoughts on this after 3 years!
Hey Ty! Can you make a video on how to design various things in cad? I’m in a drafting and design class, and I chose it specifically because I liked your videos
Hey Caden, do you mean show more of the design process in my videos? Or make an entire video designing something from start to finish?
I thought about making a Solidworks tutorial but couldn't think of a way to make it more entertaining than paint drying lol.
Let me know what your ideas are!
Ty Palowski I think making an entire video designing something from start to finish might be the best way for a “how-to”, but I think it’d be good to include a little bit more if the design process in each video for a better understanding of the engineering behind it. Don’t get me wrong I’d still enjoy the more “how-to” design videos, but it’d be nice if each video was more in depth.
Haha cool, can you make a mains voltage detector?
i wish i knew how to do things like these .
Hi, i have a real stop light, is there any way i can make it work kike this ?
It would be helpful to me.
In your parts list, for the OLED display, you said "trust me, get two". Why is that? Are they flaky -- and is it possible one won't work?
I broke one by accidentally bending it at the solder point. I was being careful! But not careful enough haha. You might have better luck than me.
IT WOULD BE HELPFUL
SEND IT TO ME
TAKE MY MONEY!!!
Are these for sale?!
How much for you to build me one or two of these?
Haha, I have the files and links to electronics in the description for free! Plus I looked into it and there's commercial versions of this out there if you really need one! Thanks for checking out the video and commenting!
Hey did you decide to sell them?
Sadly no...I looked into it and there's commercial versions of this already being sold. Thanks for watching the video and commenting, I really appreciate it!
.......oh No !!! you got your precious certificate hanging up in the garage.... It needs a cleaner place.😒😒😒 Everyone is going to take down the hanging tennis ball that bumps on the car when you are at the right spot and replace it with The Ultrasonic Man!!!👍👍😍😍😍😍
Haha, I had it in my old office but since switching jobs it's been stuck there at the house. But you're right about a cleaner place.. I'll move it to the kitchen lol
Thanks for checking out the video!
there is some discussion on the Arduino forums. forum.arduino.cc/index.php?topic=707461.new#new
My wife totally needs this to get her jeep in the garage! Can u make me one to work w a real traffic light lol?
Hey thanks for checking out the video and commenting!
Lol, you might need some more power for those larger lights, but the concept is the same so it can be done!
Should have put it on the car then you could use it anywhere
Subbed.
That's cool as a witch's tit in a brass bra. 👍👍
Been trying to figure out something like that for my garage but ... I used a laser pointer, not nearly as cool as your traffic light. Seems to work ok.
Great project! I gave it as a gift. I'm a coding novice--could you possibly help with the code for getting the red LED to shut off after X number of seconds? As it runs now, the LED stays on and unplugging is required. Thank you Ty!
Hey I really appreciate it you checking out the video!
I haven't messed with the code too much since posting this, but here is a comment by Adam Davis,
//
Make variables "sleeping", "lastActivity", and "lastDistance". In the beginning [setup] set sleeping to false, lastActivity to millis() and lastDistance to the current sensor reading.
Every loop check if the sensor reading is more than four inches different than lastDistance. If it is, set sleeping to false, lastActivity to millis() and lastDistance to the current sensor reading.
Every loop check if millis() > (lastActivity + 30000). If the last time the distance changed was more than 30 seconds ago set sleeping to true.
In the display loop (LED output) only run it if sleeping is false, otherwise set all leds to off and display the splash screen with upper case z's moving up and away from the sensor image. Also check the distance, and if it's greater than the green distance, don't display the jeep part of the splash screen.
//
Let me know if you need more help John!
@@TyPalowski Thank you Ty!