Introduction: Linkit ONE Parking Sensor

Picture of Linkit ONE Parking Sensor

Hey everyone, in this instructable, I will show you how to make a parking sensor that turns on an ultrabright LED when your car comes close enough to the wall. I am not liable if you drive your car into your house from the device being wired incorrectly.

Step 1: Parts and Tools

Picture of Parts and Tools

Here are the parts and tools that you will need to make this project:

Parts:

HC-SR04 Ultrasonic sensor

4x white LEDs

Linkit ONE microcontroller

Small project enclosure

Wire

Tape

Male Headers

Tools:

Drill

Soldering Iron and solder

Computer with the latest version of the Arduino IDE and linkit ONE drivers

Ruler

Step 2: Drill Holes Into Project Enclosure

Picture of Drill Holes Into Project Enclosure

Place some painters tape onto a side of the project box, place the ultrasonic sensor onto it and trace over it. Now, use a 16mm drill bit to drill two holes for the sensor. On the perpendicular side, drill a 5mm hole for the LED.

Step 3: Wire LED

Picture of Wire LED

Wire the LED's "+" pin to pin 13 on the linkit ONE board. Then, wire the "-" pin to a ground pin on the linkit ONE.

Step 4: Wire Ultrasonic Sensor

Picture of Wire Ultrasonic Sensor

Wire the ultrasonic sensor's "-" to GND, VCC to 5V, Trigger to pin 12, and echo to pin 11.

Step 5: Mount Sensor and LED to Box

Picture of Mount Sensor and LED to Box

Glue the Ultrasonic sensor to the drilled holes on the box, then the LED to the perpendicular side of the box

Step 6: Code

Picture of Code

Download the attached code and upload it to the linkit ONE. You may want to change the distance variable depending on how far you want to park from the wall. I don't drive, so I don't know exactly how far in cm it should be parked. If you want to change it, just find the "if(distance < 150)" and change the "150" to whatever distance in cm seems appropriate.

Step 7: Mount Box to Wall

Picture of Mount Box to Wall

You can mount the project box in many ways, but I chose to use a small amount of duct tape so I wouldn't need to drill any holes into the wall. You will need to make sure that the sensor is low enough to detect the car.

Comments

Wingloader (author)2017-03-14

Heck, I might make a couple of these for my car!

Nextprojectawesome (author)2015-12-08

I just started working with the sensor. Why do you set the trig pin so much. The low high low low high low low would be the pattern with the provided code

mgray26 (author)2015-12-08

I need to make this, I'm always hitting the storage boxes infront of my truck

About This Instructable

4,274views

86favorites

License:

Bio: My name is Zach Sousa and I'm a Canadian highschool student that has a passion for making.
More by Zach Sousa:CNC Oak Watch BoxCNC Camera SD Card HolderEdge 3D 3.0 - A $200 3D Printer
Add instructable to: