← Writing

Post

RP2040 Pico W Lab

A playground for the Raspberry Pi Pico W: Wi-Fi, GPIO, I2C, SPI, UART, ADC and PWM experiments on the RP2040.

24 June 2025 Anatolii Maltsev 2 min read Embedded Rust & firmware rust rp2040 embedded project

This repository contains my projects, experiments, and notes using the Raspberry Pi Pico W, built on the RP2040 microcontroller with integrated Wi-Fi. It serves as a playground for testing ideas, learning embedded concepts, and building small prototypes.

Goals:

  • Explore RP2040 features with rp2040_hal
  • Build Wi-Fi-enabled IoT devices
  • Interface with peripherals (GPIO, I2C, SPI, UART, ADC, PWM)
  • Experiment with power management, timers, interrupts
  • Integrate with sensors and modules (temperature, motion, light, etc.)

Hardware used

  • Raspberry Pi Pico W
  • Breadboard & jumper wires
  • Sensors: DHT11, MPU6050, BH1750, HW-416A, HC-SR04, HW-504, etc
  • Modules: OLED, WS2812 (Neopixels), relay, MOSFET driver
  • Power: USB / battery / external supply

Projects and experiments

Project NameDescriptionStatus
blinky_led_by_buttonExternal LED blink controlled by buttonDone
led_barMake LED flow on 10 LED bar graphDone
led_lampLED ON and LED OFF with buttonDone
led_analogBreathing LED with PWMDone
led_bar_pwmMake LED flow on 10 LED bar graph with PWMDone
led_rgbExperiments with RGB LEDDone
led_circleMake LED circle with freenoveDone
doorbellTouch active buzzerPlanned

Tools and tech stack

  • Languages: Rust
  • IDEs: VSCode
  • Libraries: embedded_hal, rp2040_hal, panic_halt, hal
  • Protocols: GPIO, MQTT, UDP, TCP
  • Flash storage & OTA update experiments (planned)

Repo structure

/bin/
  └── blinky_external_led/
  └── blinky_led_by_button/
  └── led_analog/
  └── led_bar/
  └── led_lamp/
  └── ...
/docs/
  └── wiring_schematics/
  └── setup_notes/
README.md

Notes

This is an open lab space, not a polished library or framework. Things may be messy, experimental, or half-finished. If you’re tinkering with the Pico W too, feel free to fork, comment, or share ideas.

Demos

Source led_lamp

Source led_bar

Source led_analog

Source led_bar_pwm

Source led_rgb

Source led_circle

Neighbors in time

when name

Related: the posts that share this one's subject, and where the thread goes next.