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

Using a Servo Motor
The arm of a small servo motor turns to three positions in turn: all the way to the start, right to the middle and all the way to the end, waiting two seconds at each stop.

Servo Motor Operation with Potentiometer
As you turn the potentiometer knob, the servo motor's arm turns right along with it: one end of the knob means zero degrees, the other end means half a turn.

Raspberry Pi Pico Parking Barrier (SG90 Servo + 2 LEDs + Button + Buzzer)
A small model of the boom barrier at a car park entrance! Press the button and the Raspberry Pi Pico raises the arm smoothly with an SG90 servo as the green LED comes on. It stays open for 3 seconds, then lowers slowly with a flashing red LED and warning beeps from the buzzer. Press again while it is lowering and the arm rises at once for safety. Servo control, a state machine and non-blocking timing in one project.

Arduino Touchless Trash Can (HC-SR04 + SG90 Servo + LED)
Wave your hand and the lid opens by itself! When the HC-SR04 ultrasonic sensor sees your hand closer than 15 cm, an SG90 servo lifts the lid in half a second and an LED lights up. Once the hand is gone, the lid waits 3 s and closes slowly. If the sensor detects a hand while the lid is closing, it reopens; contact is still possible because of measurement delays or an undetected hand. A school project favourite that is genuinely useful at home.

Raspberry Pi Pico PIR Motion Alarm (PIR Sensor + Buzzer + LED)
Walk in once and you get a warning, walk in again and the siren goes off! We are building a two-stage motion alarm with a Raspberry Pi Pico and a PIR motion sensor. It arms itself after a countdown. The first motion plays a ding-dong warning on the buzzer; a second motion within 15 seconds sounds the siren and strobes the LED. Afterwards it re-arms on its own and logs every event with a timestamp.

Arduino Penalty Shootout Game (Servo Goalkeeper + TM1637 Display)
A 5-shot penalty shootout on your desk! After a 3-2-1 beep and a whistle you shoot with the left, middle or right button, and the SG90 servo keeper dives to a corner at the same moment. The keeper learns: keep shooting at the same corner and it starts diving there more often. The score is on the TM1637 display, the ball's corner on the LEDs, and the goal tune comes from a passive buzzer. Randomness, weighted odds and servo control in one game.

Raspberry Pi Pico Automatic Pet Feeder (SG90 Servo + TM1637 + Buzzer)
Going on holiday? Your fish, cat or bird won't go hungry! The Raspberry Pi Pico counts down to the next meal on a TM1637 display; when time is up, the buzzer plays a short tune and the SG90 servo opens and closes the hopper lid once per portion. Pick an interval of 4, 6, 8, 12 or 24 hours, and a double-feed guard stops accidental overfeeding. Settings are saved, so after a power cut the countdown carries on.

ESP32 Automatic Cat Toy (PIR + 2 Servos + LDR + Buzzer)
Keep your cat busy while it is home alone! When the PIR sensor spots the cat, the buzzer chirps like a bird and a feather wand on two SG90 servos moves like prey: mouse dash, hide and seek, zigzag, circle and bug jitter. A game lasts one minute, then the toy rests; when the LDR sees darkness it never plays at night. The moves come from the ESP32's hardware randomness, so the cat cannot learn them.

Raspberry Pi Pico Secret Knock Lock (SG90 Servo + 2 Buttons + 2 LEDs + Buzzer)
The password is a rhythm, not a number: knock the right pattern on the lid and the latch lifts! The Raspberry Pi Pico times every knock, scales each gap to the longest one and compares the result with the saved rhythm, so knocking fast or slow makes no difference. When it matches, an SG90 servo lifts the latch, a green LED lights up and a buzzer plays a "ta-da"; 3 wrong tries in a row make the lock wait 10 seconds. While it is open, hold RECORD to save your own rhythm.

Raspberry Pi Pico Reverse Corner Brain Game (6 LEDs + 4 Buttons + Servo + Buzzer)
Green means press the same way, red means the opposite way, and a "boom" means don't press at all! A 20-second focus and reflex game on the Raspberry Pi Pico: one of 4 yellow LEDs in a plus shape shows the direction, the green or red LED in the middle shows the rule, and you answer with 4 buttons. The answer time shrinks with every hit and traps test your finger. The score climbs on a servo needle dial, from TURTLE to LIGHTNING.

Raspberry Pi Pico W Red Light, Green Light: The Doll That Catches Whoever Moves (PIR + Servo + Buzzer)
The children's game made world famous by TV series, right on your desk: on green light the doll turns its back and plays our own tune while you creep forward. When the tune ends the servo head turns, the red light comes on and a PIR sensor catches anyone who moves: the alarm goes off and the doll shakes its head. The tune gets faster and changes length every round; freeze through 5 rounds with a Raspberry Pi Pico W or touch the doll on green to win.

ESP32 Robot Dog That Sees You: Wags Its Tail and Barks (HC-SR04 + 2 Servos + Buzzer)
A robot dog that sleeps and snores when nobody is around, then wakes up when you reach out and tilts its head to say hello. The HC-SR04 is its eyes: the closer you get, the faster the tail servo wags, and under 15 cm it barks "woof woof". Walk away and it waits, then sulks: the head servo turns away and the buzzer sighs. Come back and it can't contain its joy. All built on a state machine, a median filter and non-blocking timing.
