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

Arduino Wanted Level: A Motion Alarm That Adds Stars While It Sees You (PIR + 5 LEDs + Passive Buzzer + Button)
The longer the motion sensor sees you, the higher your wanted level! When the PIR sensor catches movement, the first star lights at once and a new one joins every 1.5 seconds while you stay in view; at 5 stars the passive buzzer plays a rising and falling siren. Slip out of sight and the stars blink as they search for you; stay hidden and the level drops one star at a time. Press the button to surrender: three falling notes play and the level resets.

Arduino Clap Lamp: Clap Twice to Turn It On, Twice to Turn It Off (KY-038 Sound Sensor + Relay)
Clap twice and the lamp turns on; clap twice again and it turns off. The KY-038 sound sensor catches the claps and a relay switches the lamp. A single clap or three claps in a row do not count, so talking, a slammed door or music leave the lamp alone. After each switch the code stops listening for a moment so the relay's own click is not taken for a clap. The Serial Monitor prints every clap and the lamp state.

First Melody with mBot: Play Notes on the Buzzer
The buzzer on the mBot's board plays the first two lines of a well-known children's song (Twinkle Twinkle Little Star), waits 2 seconds and starts over. No extra parts are needed. Every note is a frequency (Hz) and a length; the melody lives in two lists, one with the notes and one with the beat counts. The tone command plays a note and waits until it is over.

mBot Melody Picker: Press the Button, Change the Tune
Every press of the button on the mBot's board makes the buzzer play the next melody. There are three short melodies; after the third it goes back to the first. No extra parts are needed. The melodies live in one table: one melody per row, eight beats each. Pressing the button while a melody plays changes nothing, because tone holds the code until the note is over.

ESP8266 Web Doorbell: Tap the Bell on Your Phone and the NodeMCU Plays Ding Dong
Tap the round bell button on a web page and the buzzer on your breadboard plays ding dong twice. The NodeMCU V3 joins your home Wi-Fi and serves a doorbell page; any phone on the same network can ring it. The melody is timed with millis, not delay, so the board keeps answering the page while it plays, and the page counts how many times the bell has rung. The buzzer must be a passive one: an active buzzer makes a single sound. The ESP8266 only joins 2.4 GHz networks.

Ticklish micro:bit: A Board That Giggles When You Touch the Logo
Touch the gold logo above the display: the micro:bit giggles and its face wiggles left and right, then calms down when you take your finger away. pin_logo.is_touched senses the touch and audio.play plays the sound. No extra parts are needed.

micro:bit Pocket Doorbell: Ding Dong
Press button A and the onboard speaker plays a two-note doorbell. Button B plays a built-in tune; a note shows while it plays and a house while it waits. music.play plays the notes. No extra parts are needed.

micro:bit Clap Lamp
Clap once and the whole LED display lights up like a lamp; one more clap turns it off. The onboard microphone hears the sound (was_event) and set_threshold sets the level. No extra parts are needed.
