Linkit ONE Parking Sensor




Introduction: 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

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


HC-SR04 Ultrasonic sensor

4x white LEDs

Linkit ONE microcontroller

Small project enclosure



Male Headers



Soldering Iron and solder

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


Step 2: 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

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

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

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

Step 6: 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

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.

Be the First to Share


    • First Time Author Contest

      First Time Author Contest
    • Meatless Challenge

      Meatless Challenge
    • Backyard Contest

      Backyard Contest



    5 years ago

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


    6 years ago

    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


    6 years ago

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