Skip to main content
Version: ACS CC

Car parking monitoring

A smart car parking monitoring system built with Rust and Raspberry Pi Pico

info

Author: Florin-Cristian Dinu
GitHub Project Link: link_to_github

Description

The project uses Raspberry Pi Pico 2 and proximity sensors to monitor the occupancy of parking spaces. When a car enters, the system detects where it is parked and updates a 7-segment digital display, which counts the number of free spaces in the parking lot.

Motivation

Why did you choose this project?

​I chose to develop this project to address the growing challenges of vehicle parking in congested urban areas. The rapid growth of the number of cars often exceeds the capacity of the existing parking infrastructure, leading to congestion, additional carbon emissions and time loss for drivers looking for a free space.​

The implementation of a smart parking system, based on Raspberry Pi Pico 2 and proximity sensors, allows for real-time monitoring of parking space occupancy. By displaying the number of available spaces on a 7-segment digital display, drivers can be promptly informed about parking availability, thus reducing the time spent searching for a space and contributing to traffic flow.​

Architecture

A 7-segment display has segments A–G and sometimes a dot (DP). Each segment connects to a Shift Register pin, then to the Pico.

Segment74HC595 Pin
AQ0
BQ1
CQ2
DQ3
EQ4
FQ5
GQ6
DPQ7 (optional)
Pico Pin74HC595 Pin
GPIO1714 (SER)
GPIO1611 (SCLK)
VCC(external)10
GPIO1412(RCLK)
GND13(OE)
  • HC-SR04 NR.1 connection diagram
HC-SR04 PinConnection
VCC5V (external source)
GNDGND (Pico)
TRIGGPIO2 (Pico)
ECHOGPIO3 through voltage divider
  • HC-SR04 NR.2 connection diagram
HC-SR04 PinConnection
VCC5V (external source)
GNDGND (Pico)
TRIGGPIO6 (Pico)
ECHOGPIO7 through voltage divider
  • HC-SR04 NR.3 connection diagram
HC-SR04 PinConnection
VCC5V (external source)
GNDGND (Pico)
TRIGGPIO10 (Pico)
ECHOGPIO11 through voltage divider
  • HC-SR04 NR.4 connection diagram
HC-SR04 PinConnection
VCC5V (external source)
GNDGND (Pico)
TRIGGPIO18 (Pico)
ECHOGPIO19 through voltage divider
  • HC-SR04 NR.5 connection diagram
HC-SR04 PinConnection
VCC5V (external source)
GNDGND (Pico)
TRIGGPIO20 (Pico)
ECHOGPIO21 through voltage divider
  • Servomotor SG-90 Full connection
SG90 Servo PinConnecting to Raspberry Pi Pico 2
Orange (PWM)GPIO15 (or other PWM compatible GPIO)
Red (VCC)5V from an external source
Brown(GND)GND common with Pico

Log

Week 21 April - 5 May

Connecting the hardware components

Week 12 - 18 May

Week 19 - 25 May

Hardware

Detail in a few words the hardware used.

Here’s a concise description of the hardware components used in my project:

  • Raspberry Pi Pico 2 – the main microcontroller that controls all components and processes sensor data.
  • HC-SR04 – an ultrasonic proximity sensor used to detect the presence of a vehicle in a parking space.
  • SG90 Servo + Barrier – the servo motor lifts or lowers a physical barrier to control access when a car is detected.
  • 7-Segment Display – shows the number of free parking spaces available in real time.
  • Voltage Source – provides 5V power to the sensors, servo, and display.

Schematics

Place your KiCAD schematics here. kicad

Bill of Materials

DeviceUsagePrice
Raspberry Pi Pico WThe microcontroller[35 RON]
HC-SR04The ultrasonic proximity sensor[9.75 RON]
SG90 ServomotorThe servomotor[14 RON]
7-Segment DisplayDisplay[9 RON]

Software

LibraryDescriptionUsage
st7789Display driver for ST7789Used for the display for the Pico Explorer Base
embedded-graphics2D graphics libraryUsed for drawing to the display
  1. link
  2. link ...