Discover Arduino Projects
Hundreds of projects from beginner to advanced — schematics, code, and videos.

Raspberry Pi Pico Button Debounce: IRQ vs Software Polling
If one press of a button made your code count 3-4 times, the culprit is contact bounce: the button's metal contacts open and close many times within microseconds as they touch! In this project we count the same button in 2 different ways and compare them side by side in Serial: RAW polling (catches the bounce and miscounts) and IRQ + software debounce (counts correctly).

Raspberry Pi Pico PWM LED Fade (Breathing Effect)
The LED doesn't just blink anymore, it breathes! With the Raspberry Pi Pico's PWM (Pulse Width Modulation), the LED's brightness slowly rises and then slowly fades, a calm "breathing" effect like a sleeping laptop's light. You'll learn the machine.PWM class, the 16-bit brightness value from 0–65535 with duty_u16() and the PWM frequency.

Raspberry Pi Pico RGB LED Color Cycle (3-Channel PWM)
One LED, millions of colors! An RGB LED actually holds 3 separate LEDs: red, green and blue. Set the brightness of each one separately with the Pico's 3 PWM channels and the colors mix: red + green = yellow, green + blue = cyan, all three = white. In this project the LED cycles through 8 colors.

Raspberry Pi Pico LED Tug of War Game (NeoPixel Strip + 2 Buttons + Buzzer)
A two-player button duel! The Raspberry Pi Pico turns a 30-LED WS2812B NeoPixel strip into a rope: red player on the left, blue player on the right. Every press pushes your color one LED forward; fill the whole strip to win the round, and take 3 rounds to win the match. Press too early in the countdown and you lose ground, the passive buzzer gives each player a different click, and the match ends in a rainbow. neopixel, debouncing and non-blocking sound in MicroPython.

Raspberry Pi Pico LED Campfire (8x8 NeoPixel Matrix + Potentiometer + Buzzer)
A campfire that doesn't burn or warm anything, but still crackles! The Raspberry Pi Pico draws a realistic flame on an 8x8 NeoPixel matrix, recalculated every frame: sparks appear at the base, heat cools as it rises and glows from red to white. A potentiometer sets the flame height, a button switches between Fire, Gas, Magic and Amethyst themes, and a buzzer adds the crackle of burning wood. Procedural animation, ADC, PWM and MicroPython in one project.

Raspberry Pi Pico Memory Game (4 LEDs + 4 Buttons + Buzzer)
How many rounds can you last? The classic color and sound memory game comes to your desk with a Raspberry Pi Pico. The Pico plays a random color sequence, each color with its own LED and its own note. Repeat it in the same order on 4 buttons and one more color joins every round. Press a wrong one and the buzzer plays a game over tune while the right color blinks. Lists, random numbers and button reading in one game.

Raspberry Pi Pico Whack-a-Mole (4 LEDs + 4 Buttons + Buzzer)
Hit it when it lights up! The arcade classic Whack-a-Mole on your desk with a Raspberry Pi Pico. Four LEDs are four holes; a lit LED is a mole popping up, so press the button on the same row before the light goes out. Every 5 hits you level up and the moles stay up for less time. You get 3 misses, and a buzzer announces every hit, miss and new record.

Raspberry Pi Pico Binary Clock (6 LEDs + Button)
This clock has no digits! We are building a clock with a Raspberry Pi Pico that shows the time in binary. The 6 LEDs are the 32-16-8-4-2-1 places; add up the lit ones and you read the seconds, minutes or hours. A single button switches fields and sets the time, and a light sweep runs across the LEDs every full hour.

Raspberry Pi Pico W Phone-Controlled RGB Lamp (NeoPixel Ring + OLED + Button)
Pick a color on your phone and the lamp on your desk switches to it instantly! The Raspberry Pi Pico W joins Wi-Fi and listens for commands on a public MQTT broker, so any MQTT app on your phone can change the color, brightness and effect of a 24-LED NeoPixel ring. The OLED shows the connection and the last command. A local button works even without internet, and the last setting survives a power cut.

Raspberry Pi Pico Cross the Road: Frog Game (8x8 NeoPixel Matrix + Joystick + Buzzer)
The classic arcade frog game on 64 color LEDs! The Raspberry Pi Pico draws a road of red and yellow cars and a river of drifting logs on an 8x8 NeoPixel matrix; you move the frog one square at a time with a joystick and fill three homes. The traffic speeds up every level, and the buzzer plays hop, crash and home sounds. 3 lives, a score and a best score kept in flash; leave it alone and the game plays itself.

Raspberry Pi Pico Hot Potato Party Game (5 LEDs + Potentiometer + 2 Buttons + Buzzer)
A party game that goes from hand to hand: press START, a secret fuse begins and the device gets passed around to a ticking sound. The tick-tock keeps speeding up and a 5-LED heat bar fills from green to red; when time runs out the buzzer booms and whoever is holding it loses. A potentiometer picks a short, medium or long round, and the PASS button is pressed at every hand-off. Hold it longer than 6 seconds and you get a penalty: the fuse loses 2 seconds.

Raspberry Pi Pico Nim Game: Can You Beat the Pico? (10 LEDs + 4 Buttons + Buzzer)
Whoever takes the last stick loses: can you beat the Pico? The matchstick game Nim lights up with a Raspberry Pi Pico. 10 yellow LEDs are 10 sticks; you take turns removing 1, 2 or 3, 4 buttons pick your move and a buzzer voices every turn. The Pico uses a mod 4 trick to always leave you 1, 5 or 9 sticks: if you start, the right first move wins, but if the Pico starts it never loses.
