Complete Raspberry Pi Pico parking assistant with HC-SR04, passive buzzer, and 8-RGB module A canonical horizontal Raspberry Pi Pico operates a protected HC-SR04 on GP19 and GP18, a passive buzzer through a GP15 S8050 transistor driver, and a square eight-pixel RGB module from GP16. Five-volt and 3.3-volt supplies remain separate and all grounds are common. + + S8050 E B C VCCTRIG ECHOGND BOOTSEL VBUS VSYS GND 3V3_EN 3V3 ADC_VREF 28 AGND 27 26 RUN 22 GND 21 20 19 18 GND 17 16 0 1 GND 2 3 4 5 GND 6 7 8 9 GND 10 11 12 13 GND 14 15 8 RGB LED MODULE SV G SV G OUT IN Parking assistant · sensor, buzzer, and RGB module Exact complete breadboard placement for code/day-5/parking_assistant.py and starter + 5 V · VBUS unused a b c d e CENTRE CHANNEL f g h i j + GND 5 V · VBUS 5 V GND GP19 GP18 GP15 GP16 RGB data 3.3 V RGB power 1 kΩ 2 kΩ 1 kΩ GP19 pin 25 GP18 pin 24 · protected Echo flat face: E · B · C RGB IN: S · V · G separate 3.3 V route to RGB V Keep the supplies separate HC-SR04 and buzzer use VBUS / 5 V. RGB V uses 3.3 V only; no 5 V reaches a GPIO. Before connecting USB ✓ Echo has the 1 kΩ / 2 kΩ divider; no direct 5 V reaches GP18. ✓ Sensor, divider, emitter, and RGB module share Pico GND. ✓ GP19 = Trig, GP18 = Echo, GP15 = buzzer, GP16 = RGB data. ✓ RGB uses IN S/V/G at 3.3 V; E/B/C and polarity checked.
Original course artwork informed by the official Freenove ultrasonic-ranging, passive-buzzer, and NeoPixel lessons. It matches code/day-5/parking_assistant.py and the starter: protected GP18 Echo, GP19 Trigger, transistor-driven GP15 buzzer, and the RGB module IN header on GP16.

Exact connection list

FromThroughTo
Pico VBUS / 5 V, physical pin 40 top 5 V rail; rail jumper also powers bottom 5 V rail HC-SR04 VCC and passive buzzer +
Pico GP19, physical pin 25 yellow Trigger jumper HC-SR04 Trig
HC-SR04 Echo 1 kΩ resistor divider junction and Pico GP18, physical pin 24
divider junction 2 kΩ resistor bottom GND rail
Pico GP15, physical pin 20 1 kΩ base resistor S8050 base B
passive buzzer − switched wire S8050 collector C
HC-SR04 GND, divider, and S8050 emitter E bottom GND rail Pico GND physical pin 13
Pico GP16, physical pin 21 green data jumper 8-RGB module IN S
Pico 3V3(OUT), physical pin 36 separate labelled 3.3 V route 8-RGB module IN V
8-RGB module IN G bottom common GND rail Pico GND physical pin 13