This prototype represents a small-scale police car, built with a cardboard frame and controlled by a Raspberry Pi 4.
The vehicle incorporates six strategically placed LEDs: two red at the rear, two white at the front (simulating headlights), and two blue on the top, which recreate police emergency lights.
Qualification Technology after-school clubs
Technologies Electronics | Programming
Tools Raspberry Pi 4 | LCD Screen | HC-SR04 Ultrasonic Sensor | Pygame
How does it work?
At the rear of the car, there is an HC-SR04 ultrasonic sensor that measure the distance Regarding nearby objects. The system is connected to an application developed in Pygame, from which the various lights can be switched on and audible alarms activated.
Additionally, if the sensor detects that an object is approaching below a defined threshold, A warning beep activates automatically, simulating a parking security or assistance system.
Educational purpose
This project creatively combines hardware and software, using the Raspberry Pi 4 as the control centre to integrate sensors, actuators, and an interactive graphical interface.

