Teroka Projek Arduino
Ratusan projek dari pemula hingga mahir: gambar rajah litar, kod dan video. Mulakan di tahap mana pun kamu berada.

Raspberry Pi Pico Traffic Light with 4-Mode Button Selector (State Machine)
4 traffic light modes with 1 button! Each press switches the mode: Normal cycle (red → yellow → green), Red Only (stop), Flashing Yellow (caution/night mode) and Off (maintenance). You'll learn the state machine (the mode variable decides which behavior runs) and cycling through the modes with (mode + 1) % 4.

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 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 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 W Internet-Synced New Year Countdown (MAX7219 8x32 + LED Ring + Buzzer)
A glowing sign that counts down to New Year second by second! The Raspberry Pi Pico W takes the time from the internet, so nobody has to set it; the MAX7219 8x32 LED sign shows the days left, then hours:minutes:seconds on the last day. In the last 10 seconds giant digits and beeps arrive while the 24-LED ring goes out slice by slice. At midnight the year blinks, a greeting scrolls, fireworks burst on the ring and the buzzer plays a fanfare.

Raspberry Pi Pico W Remote-Unlock Gift Box (SG90 Servo + LED Ring + MQTT + Buzzer)
Lock the present in a box and keep the key on your phone! The Raspberry Pi Pico W holds the lid shut with an SG90 servo latch; when the right code arrives from any MQTT app on your phone, the box opens with a tune and fireworks burst across the 24-LED ring. Add a time lock if you like: the box gets the time from the internet, stays shut until midnight on New Year's Eve and counts down on the ring. Three wrong codes mean a 60-second lockout.

Pico Colour Wheel Teacher: Complementary Colours (24-LED WS2812B Ring + Pot)
A 24-LED RGB ring becomes a colour wheel: every pixel is one hue. Turn the potentiometer to pick a colour; the MODE button shows its complement, its triadic scheme and its neighbouring colours on the ring. The QUIZ button starts a game: half of the ring shows a colour, and you turn the pot until the other half shows its complement, then confirm. The ring lights green if you are right, red if you are wrong, then shows the answer on the wheel. The buzzer ticks at every colour step.

Pico Reaction Timer: A Millisecond Reflex Game (Pin.irq + TM1637)
Press START, the LED lights up at a random moment with a beep; how fast you hit the REACT button shows on the TM1637 display in milliseconds. The press is caught by a Pin.irq interrupt and its timestamp is taken right then, so the measurement stays exact even when the loop is busy. Press before the LED and you get "Err". The average of 5 rounds and your record are shown: 313 ms average and a 257 ms record in the video.
