Skip to main content

Parking sensor with barrier control

Proximity-based parking sensor which controls a barrier on a set timer

info

Author: Rosoiu Luca
GitHub Project Link: https://github.com/UPB-FILS-MA/project-LucaRosoiu

Description

The project consists of a smart parking sensor which will detect the presence of other objects and will emmit sound and light signals when the distance is within a certain range. The signals will grow in intensity and be more frequent the closer the said object is, until it reaches the climax, at which point the emmited light becomes red and the sound is static.

Moreover, the project includes a barrier control system, which will consist of a barrier with an attached sensor that will be lifted once it detects an object get within its range. When that happens, a countdown timer will start until the barrier goes back down, just like a real life parking barrier.

Motivation

I have been interested in cars for as long as I can remember, so I have been thinking about a way to make this project be related to a component of a real car. Therefore, I took this as an opportunity to learn how parking sensors and parking barriers work in real life.

Architecture

architecture

Log

Week 6 - 12 May

Switched the doppler sensor with the ultrasonic HC-SR04 sensor and the simple LED with an LED strip that changes colors based on the proximity (Green->Yellow->Red)

Week 7 - 19 May

Integrated an LCD screen to display the distance between the object and the sensor for the parking sensor. Designed the KiCAD schematic for the project and finished the conceptual state of hardware, however I forgot to purchase female-male // female-female wires.

Week 20 - 26 May

Hardware

An ultrasonic HC-SR04 sensor will represent the base of both the parking sensor and the barrier control sensor. For the parking sensor, it will light up an LED strip that will change colors (Green->Yellow->Red) based on proximity and will trigger a buzzer that will emmit sounds and increase in frequency up until the "climax", when it emmits a static sound. The distance from the car to the sensor will be displayed on an LCD screen. As for the barrier control sensor, it will lift the barrier up and start a countdown until the barrier goes back down.

Schematics

Kicad schematic

Photos

Pic1 Pic2

Bill of Materials

DeviceUsagePrice
Rapspberry Pi Pico WThe microcontroller35 RON
2x Ultrasonic Sensor HC-SR04This will be at the base of both the parking sensor and the parking barrier sensor30 RON
Stepper Motor 28BYJ-48 5V with ULN2003 Driverthe motor to control the barrier arm17 RON
Breadboard KitTo place the components22 RON
LCD Hat 1602 ScreenLCD Screen to display distance56 RON
PotentiometerPotentiometer for the LCD contrast56 RON
Adafruit NeoPixel 8 x 5050 LED StripThe LED strip50 RON
BuzzerThe Buzzer2 RON
220Ω ResistorResistor for the buzzer1 RON

Software

LibraryDescriptionUsage
uln2003Driver for the stepper motorUsed for integrating the motor with rust
pwmPWMUsed for controlling the sound intensity of the buzzer
gpioGPIOUsed for interacting with GPIO pins
embassy-timeManaging timeUsed for time-based delays for the barrier
embassy-rpPeripheral access libraryInteracting with the peripherals
  1. Parking Sensor Video Example
  2. Parking Sensor Architecture
  3. Barrier Video Example