Parking sensor with barrier control
Proximity-based parking sensor which controls a barrier on a set timer
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
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
Photos
Bill of Materials
Device | Usage | Price |
---|---|---|
Rapspberry Pi Pico W | The microcontroller | 35 RON |
2x Ultrasonic Sensor HC-SR04 | This will be at the base of both the parking sensor and the parking barrier sensor | 30 RON |
Stepper Motor 28BYJ-48 5V with ULN2003 Driver | the motor to control the barrier arm | 17 RON |
Breadboard Kit | To place the components | 22 RON |
LCD Hat 1602 Screen | LCD Screen to display distance | 56 RON |
Potentiometer | Potentiometer for the LCD contrast | 56 RON |
Adafruit NeoPixel 8 x 5050 LED Strip | The LED strip | 50 RON |
Buzzer | The Buzzer | 2 RON |
220Ω Resistor | Resistor for the buzzer | 1 RON |
Software
Library | Description | Usage |
---|---|---|
uln2003 | Driver for the stepper motor | Used for integrating the motor with rust |
pwm | PWM | Used for controlling the sound intensity of the buzzer |
gpio | GPIO | Used for interacting with GPIO pins |
embassy-time | Managing time | Used for time-based delays for the barrier |
embassy-rp | Peripheral access library | Interacting with the peripherals |