Team-BHP > Technical Stuff > DIY - Do it yourself
Register New Topics New Posts Top Thanked Team-BHP FAQ


Reply
  Search this Thread
16,079 views
Old 15th May 2020, 19:15   #1
BHPian
 
chiro3110's Avatar
 
Join Date: Mar 2015
Location: Asansol
Posts: 38
Thanked: 444 Times
DIY: Radar System for Garage

So, with still a few days to let go of the lockdown, boredom had got the better part of me. Tried my hand at almost anything which I could think of including cooking some weird dishes (some were good, some were not!), trying a bit of wood work, exercising and definitely binge watching several stuff on OTT platforms. However, my love for making small DIY projects was going unfulfilled mostly due to the closure of online shopping and restricted finances as I'm unable to go back to work for the time being. I started looking at all the stuff I had at home and think of some project. What did I find there?
  1. An Arduino Uno
  2. An Ultrasonic distance measurement sensor
So kept thinking what do do with them when finally I had the idea to assemble a makeshift radar system for my garage. This would help in placing the car at the correct position: not too close to the walking path (to access pump and water reservoir) and not too far to have issues closing and locking the garage door. For this I would atleast need a power adapter (to power up the Arduino and sensor) and some LEDs. I soon found a spare torch with some LED strips in it. Out comes the destroyer in me to rip apart the case and salvage the LEDs! (not to mention the torch getting unusable henceforth)

Name:  raw materials.png
Views: 8469
Size:  432.2 KB

After getting the parts ready, connected them up for a prototype circuit to check the the proof of concept and get the Arduino code ready as well. Once satisfied with the code, uploaded it and tested for the proper working of the circuit. I measured manually the proper distance where the green/red LEDs should fire up, added some tolerance and it was good to go. Here was a little bit of a technical hurdle. LEDs work at 3.5-4 V, where as Arduino works and supplies 5V over the digital pins. Normally one would add resistors to the LED to make it work but since there was no store or online ordering available something else was to be done. I used PWM (Pulse Width Modulation) to power the LEDs instead. The PWM pin was powered at around 30% (80 out of 255 steps), this would translate to the digital pin only having 5V on it for 30% of the time. This would effectively reduce the exposure and hence prevent the burn down of the LEDs. It seemed to be working fine. (so far!)

DIY: Radar System for Garage-prototype-circuit.png
DIY: Radar System for Garage-circuit-diagram.png

Next, it was time to set the project in an enclosure and finalize the wires and power lines. Thanks to my tools: Drill machine and Dremel Rotary the assembly task was fairly simple and done in a a couple of hours. Another dry test was done to check if all connections were proper. The assembly was completed and so far I was happy with with I had. It did not look professional but still it was suppose to be a DIY and it worked fine.

DIY: Radar System for Garage-assembly-1.png
DIY: Radar System for Garage-assembly-2.png

Last step before testing, to actually install in the garage. The sensor was aligned to the tentative car's number plate position (since it is the only flat surface to maximize the efficiency of the ultrasonic sensor, rough surface might bring attenuation). The LED strips (now covered with red and green paper) was attached with twist tie to the stair's handrail somewhere in line with the driver's range of vision. The wires did look a bit untidy, but was fine. It wasn't going to be a fully permanent installation but just a hobby lockdown project. Proabably with the proper parts a final always on version can be done. The power cable is actually attached to a smart switch which can powered on demand thru smartphone so normally it was off.

DIY: Radar System for Garage-install-1.jpeg
DIY: Radar System for Garage-install-2.jpeg
DIY: Radar System for Garage-sensor-install.jpeg

Now finally to testing hour. It's better with a video. P.S. It wasn't shot on a dashcam (still researching it on Team-BHP to narrow down) but with the mobile mounted on the windshield.

(Please seek to 9:20 for the final approach)


Last edited by chiro3110 : 16th May 2020 at 12:15.
chiro3110 is offline   (62) Thanks
Old 17th May 2020, 07:51   #2
Team-BHP Support
 
Join Date: Feb 2004
Location: Mumbai
Posts: 19,236
Thanked: 83,017 Times
Re: DIY: Radar System for Garage

Thread moved out from the Assembly Line. Thanks for sharing!
Aditya is offline   (3) Thanks
Old 17th May 2020, 09:12   #3
Distinguished - BHPian
 
mayankk's Avatar
 
Join Date: Apr 2010
Location: New Delhi
Posts: 5,213
Thanked: 8,524 Times
Re: DIY: Radar System for Garage

How close were you before the lights turned red? It's pretty nifty, you ought to do a trial production of 6-7 units and sell it in the classifieds.
mayankk is online now   (5) Thanks
Old 17th May 2020, 23:18   #4
BHPian
 
chiro3110's Avatar
 
Join Date: Mar 2015
Location: Asansol
Posts: 38
Thanked: 444 Times
Re: DIY: Radar System for Garage

Quote:
Originally Posted by mayankk View Post
How close were you before the lights turned red? It's pretty nifty, you ought to do a trial production of 6-7 units and sell it in the classifieds.
I manually measured the correct parking spot's distance from the sensor installation area which came around 155 cm. To that added a small tolerance of 3 cm. Then this value was coded to the Arduino.

Thank you very much for the idea. Honestly, I never thought from a commercial standpoint. Probably a similar offering can be made in around 5000 INR. Though I can see the downers, firstly the distance of transition green-red is hard-coded to the Arduino which would be a variable for most. Secondly, some sort of reverse engineered car park sensor might also do the trick which probably sells for a lot less. But, thank you very much the proposition was very welcoming; might think about this if any workable solution comes to my mind for the above two issues.
chiro3110 is offline   (5) Thanks
Old 18th May 2020, 10:30   #5
Senior - BHPian
 
haisaikat's Avatar
 
Join Date: Apr 2019
Location: Kolkata
Posts: 1,042
Thanked: 5,256 Times
Re: DIY: Radar System for Garage

Congratulations, well done indeed.

Until you are production ready, I believe a few convex mirrors placed around can also help in the meantime for those who are looking for a stop gap.
haisaikat is offline   (1) Thanks
Old 18th May 2020, 11:59   #6
BHPian
 
Join Date: Mar 2020
Location: KL 01
Posts: 64
Thanked: 343 Times
Re: DIY: Radar System for Garage

Nice project. I would suggest (once the lockdown ends) to get the cheaper JSN-SR04T sensor (about Rs. 500) instead of the Maxbotix sensor (about 8k). The sensor is the same that is used in cars and is also waterproof. I've been using one for measuring the water level in my overhead tank and has been running for two years after being in the sun and rain.

DIY: Radar System for Garage-screenshot-20200518-11.46.08-am.png
jothishX is offline   (11) Thanks
Old 18th May 2020, 13:48   #7
Senior - BHPian
 
blackwasp's Avatar
 
Join Date: Apr 2015
Location: Pune
Posts: 3,010
Thanked: 26,773 Times
Re: DIY: Radar System for Garage

Quote:
Originally Posted by chiro3110 View Post
So kept thinking what do do with them when finally I had the idea to assemble a makeshift radar system for my garage. This would help in placing the car at the correct position: not too close to the walking path (to access pump and water reservoir) and not too far to have issues closing and locking the garage door.
Wow, this is very neat and quite handy I must say. You could even retrofit a similar one on the car bumpers itself giving you a front and year parking sensors with realtime range display (you might need a couple of 7 segment displays).

But keep it up man, what a great project.
blackwasp is offline   (3) Thanks
Old 18th May 2020, 15:30   #8
Distinguished - BHPian
 
Reinhard's Avatar
 
Join Date: Nov 2010
Location: Pune
Posts: 4,873
Thanked: 17,835 Times
Re: DIY: Radar System for Garage

Quote:
Originally Posted by blackwasp View Post
Wow, this is very neat and quite handy I must say. You could even retrofit a similar one on the car bumpers itself giving you a front and year parking sensors with realtime range display (you might need a couple of 7 segment displays).
This was the exact thought I had when I was reading the thread earlier. That instead of placing it in the parking, how about placing it on the car itself, so that it can work anywhere outside also when parking at different places with small clearances.

But then I realized if one doesn't have these items already available, installing readily available front and rear parking sensors might be a simpler thing for general public.
Yet - for a dedicated home parking solution - this is simply fantastic. You have the liberty to customize and precisely set the distance for warning & you can keep it quite tight since its a standard parking slot and you know the margins well. Its almost like the landing light signals for carrier borne planes.
Quote:
Originally Posted by jothishX View Post
Nice project. I would suggest (once the lockdown ends) to get the cheaper JSN-SR04T sensor (about Rs. 500) instead of the Maxbotix sensor (about 8k). The sensor is the same that is used in cars and is also waterproof. I've been using one for measuring the water level in my overhead tank and has been running for two years after being in the sun and rain.
Wow a radar sensor for water level? Why didn't you simply go for a conductivity based sensor instead? Would have been terribly cheap & easier in comparison I think?

Last edited by Reinhard : 18th May 2020 at 15:37. Reason: typo
Reinhard is offline   (4) Thanks
Old 18th May 2020, 17:14   #9
BHPian
 
palsaumik's Avatar
 
Join Date: Jun 2015
Location: BEngaluru
Posts: 84
Thanked: 344 Times
Re: DIY: Radar System for Garage

This is excellent engineering stuff and I love such projects.

What sort of coding is needed to make this stuff work? Some technical details will be helpful.
palsaumik is offline   (1) Thanks
Old 18th May 2020, 18:53   #10
BHPian
 
Join Date: Mar 2020
Location: KL 01
Posts: 64
Thanked: 343 Times
Re: DIY: Radar System for Garage

Quote:
Originally Posted by Reinhard View Post
Wow a radar sensor for water level? Why didn't you simply go for a conductivity based sensor instead? Would have been terribly cheap & easier in comparison I think?
The benefits of an ultrasonic sensors are many:
Need to dip at least 6 electrodes in water to detect water level at different levels 0, 25, 50, 75, 100% etc. The electrodes will get corroded over time due to running current. Also, electrolysis will take place due to dissolved salts and will foul the water.
The ultrasonic sensor on the other hand is contact-less and gives precise measurement, not in steps. Like this
Name:  Screenshot 20200518 at 6.53.22 PM.png
Views: 4025
Size:  196.4 KB
I've mounted it on the tank lid.
jothishX is offline   (9) Thanks
Old 18th May 2020, 20:22   #11
Newbie
 
jnanesh's Avatar
 
Join Date: May 2019
Location: Chennai
Posts: 23
Thanked: 66 Times
Re: DIY: Radar System for Garage

The system would be an ultrasonic one, since radar works with radio waves which are electromagnetic waves, while ultrasonic waves are sound waves/pressure waves.

Don't mean to be nitpicking,the system by itself is a great idea, kudos!
jnanesh is offline   (2) Thanks
Old 18th May 2020, 23:43   #12
BHPian
 
chiro3110's Avatar
 
Join Date: Mar 2015
Location: Asansol
Posts: 38
Thanked: 444 Times
Re: DIY: Radar System for Garage

Quote:
Originally Posted by jothishX View Post
Nice project. I would suggest (once the lockdown ends) to get the cheaper JSN-SR04T sensor (about Rs. 500) instead of the Maxbotix sensor (about 8k). The sensor is the same that is used in cars and is also waterproof.
Thank you very much for the recommendation. I was looking for alternate cheaper ultrasonic sensors to have a more economic built. Now that you have confirmed it's durability it would be a safe choice. In India, the JSN sensor is available for around 800-900 INR. Aliexpress quotes cheaper but with shipping and customs it would probably go a bit higher. I had already bought this Maxbotix sensor for another project which required more precision, but unfortunately that assignment did not see the light of day!

Quote:
Originally Posted by blackwasp View Post
Wow, this is very neat and quite handy I must say. But keep it up man, what a great project.
Thank you very much.

Quote:
Originally Posted by Reinhard View Post
This was the exact thought I had when I was reading the thread earlier. That instead of placing it in the parking, how about placing it on the car itself. Yet - for a dedicated home parking solution - this is simply fantastic. Its almost like the landing light signals for carrier borne planes.
The comparison was very flattering when comparing to landing light signals .

Yes, agreeing with you and @blackwasp, with the availability of front parking sensors (with the distance display) it would have been a better choice. Actually this was like a hobby DIY to keep occupied during this lockdown period. Just wanted to be engaged. TBH, I hardly use it while parking the car as I have become quite accustomed of the distances by now.

Quote:
Originally Posted by palsaumik View Post
This is excellent engineering stuff and I love such projects. What sort of coding is needed to make this stuff work? Some technical details will be helpful.
Thanks. To code Arduino the language used is C++. Same syntax albeit some more additional header files. You would need the Arduino IDE which can be obtained from their website. Once the Arduino is connected to PC via USB, the Arduino IDE will detect it and will allow you to upload your codes to it.

Quote:
Originally Posted by jnanesh View Post
The system would be an ultrasonic one, since radar works with radio waves which are electromagnetic waves, while ultrasonic waves are sound waves/pressure waves. Don't mean to be nitpicking,the system by itself is a great idea, kudos!
Yes, you are right. Probably sonar would have been a better term to use, may be. But normally sonar is associated with underwater systems.

Last edited by aah78 : 18th May 2020 at 23:49. Reason: Spacing fixed.
chiro3110 is offline   (4) Thanks
Old 19th May 2020, 06:26   #13
BHPian
 
Join Date: Jul 2015
Location: New York
Posts: 97
Thanked: 249 Times
Re: DIY: Radar System for Garage

Awesome, something similar:
https://www.amazon.com/Striker-Adjus...s%2C144&sr=8-4
yash2424 is offline   (1) Thanks
Old 8th July 2020, 21:41   #14
Newbie
 
Join Date: Jan 2016
Location: Assam
Posts: 20
Thanked: 46 Times
Re: DIY: Radar System for Garage

Quote:
Originally Posted by jothishX View Post
The benefits of an ultrasonic sensors are many:
Need to dip at least 6 electrodes in water to detect water level at different levels 0, 25, 50, 75, 100% etc. The electrodes will get corroded over time due to running current. Also, electrolysis will take place due to dissolved salts and will foul the water.
The ultrasonic sensor on the other hand is contact-less and gives precise measurement, not in steps. Like this
Would the sensor work equally well, if the liquid were fuel- diesel or petrol , instead of water?

Would these ultrasonic sensors give a more precise reading as a fuel gauge than those based on variable resistor?
ElonSkum is offline  
Old 9th July 2020, 01:11   #15
BHPian
 
Join Date: Mar 2020
Location: KL 01
Posts: 64
Thanked: 343 Times
Re: DIY: Radar System for Garage

It would work for any liquid. Actually factories handling harsh chemicals like sulphuric acid use ultrasonic sensors to measure depth in the tanks.

These sensors will give a precise measurement, but may spike occasionally if the liquid surface is not stable, or if the soundwave bounces off the sidewalls. All of these have to be normalized in code.
jothishX is offline  
Reply

Most Viewed


Copyright ©2000 - 2024, Team-BHP.com
Proudly powered by E2E Networks