Skip to main content
Version: ACS CC

Smart parking sistem

A parking sistem that use infrared sensors, ultrasound sensors and Raspberry Pi Pico 2W

info

Author: Gabriel Constantin
GitHub Project Link: https://github.com/UPB-PMRust-Students/proiect-pachirishu

Description

The parking sistem use ultrasound sensors that detect when a car wants to enter and a servomotor will activate as a barrier. Inside there are 3 parking slots that use led rgb modules to generate the use for each spot and infrared sensors that check the availability. At the entrance there is a lcd module that will tell the number of available spots and the closest one to the entrance. The parking also use wifi connection, so the driver can see online how many spots are left.

Motivation

I chose this project because it addresses a real-world problem related to the organization and management of parking spaces, especially in small or private areas such as driveways, company lots, or residential complexes. The proposed system offers an automated, cost-effective, and scalable solution for access control and parking availability display, without relying on expensive equipment like cameras or commercial barriers.

Architecture

alt text

The Raspberry Pi Pico 2W acts as the central controller, managing all data exchange and operations between input and output modules. The ultrasonic sensors detect vehicle presence near the entry and exit, triggering barrier actions. The micro servomotors lift or lower the entry and exit barriers based on sensor data. The infrared sensors detect car presence in each parking spot. The RGB LED modules indicate the occupancy status: green for available, red for occupied. The LCD 1602 displays the number of available parking spaces in real time. The built-in Wi-Fi module allows the Pico to transmit parking status data to a remote server, enabling remote monitoring. The PC is used for programming and optional debugging, while the battery supplies power to the entire system.

Log

Week 5 - 11 May

Week 12 - 18 May

Week 19 - 25 May

Hardware

Schematics

Bill of materials

DeviceUsagePrice
Rapspberry Pi Pico 2WMicrocontroller39.66 RON
Rapspberry Pi PicoDebugger22.49 RON
Modul Led RGBLed RGB4.99 RON
Micro Servomotor SG90 180°Micro Servomotor11.99 RON
Male to male jumper wiresWires4.99 RON
Male to female jumper wiresWires7.99 RON
Infrared Sensor Infrared Sensor3.49 RON
Ultrasonic Sensor Ultrasonic Sensor6.49 RON
LCD 1602 LCD14.99 RON
Breadboards Breadboard4.56 RON

Software

LibraryDescriptionUsage
embassy-rpPeripheral access crate for the RP2040 chip used in Raspberry Pi PicoUsed to interact with the microcontroller's hardware
embassy-executorAsynchronous task executor for embedded systemsEnables non-blocking async execution
embassy-timeTime management libraryUsed for implementing delays and measuring durations
gpioGeneral-purpose input/output abstractionUsed to read sensor data (e.g., IR sensor) or control devices like LEDs
pwmPulse-width modulation controlUsed to control RGB LED brightness and SG90 servo positioning
logLogging facade for embedded RustUsed to add structured logging
embassy-netAsynchronous embedded networking stack built on smoltcpUsed for network connection
embassy-net-driverNetwork interface drivers for embassy-netUsed to connect embassy-net with hardware like the CYW43 Wi-Fi chip on the Raspberry Pi Pico 2W