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

Arduino Quiz Buzzer: First Press Wins, Voice Referee (3 Buttons + DFPlayer Mini + Speaker)
A quiz night at home or in class: the host presses a button, the speaker says "Question!", the first of three players to press lights their LED and the DFPlayer Mini announces "Player one!"; the other buttons lock at that instant. A short host press means "Correct!" and a point, a long press means "Wrong!" and the round reopens for the rest. Pressing before the question gets a "Too early!" warning. Scores show in the Serial Monitor; 5 points win.

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.

LilyPad Bike Turn Signal Vest: Sweeping Arrows and Hazard Lights from Glove Buttons
Show where you are turning without taking your hands off the handlebars. Each arrow on the back of the vest has three LEDs: press the left glove button and the left arrow sweeps outward, press the right one and the right arrow lights up. Press again to stop; if you forget, the signal turns off by itself after 15 seconds. Press both buttons and all six LEDs blink as hazard lights. The LilyPad is sewn on and wired with conductive thread.

LilyPad Glow-in-the-Dark Bracelet: A Light Sensor Switches On Breathing, Spinning and Steady LED Effects
Put the bracelet on and let the dark do the rest. The LilyPad on it measures the ambient light with an LDR; when it gets dark six LEDs fade in, and when it gets bright again they slowly fade out. Two separate thresholds (hysteresis) keep the LEDs from flickering when the light hovers around the threshold. Every press of the button changes the effect: gentle breathing, a light spinning along the bracelet, or a steady glow. The LilyPad is sewn onto fabric and wired with conductive thread.

ESP8266 First Program with the Onboard LED: Slow Blink and Heartbeat on a NodeMCU
Upload your first code to an ESP8266. All you need is a NodeMCU V3 and a USB cable, no other parts. The blue LED on the board first blinks slowly three times, then beats four times like a heart with a double flash, and starts over. This LED is inverted: writing LOW to the pin turns it on, HIGH turns it off. The Serial Monitor also shows which part is running.

ESP8266 Web Page LED Control: Turn an LED On and Off from Your Phone with a NodeMCU
Switch an LED on and off from the browser of your phone. The NodeMCU V3 joins your home Wi-Fi and serves a small web page; open the board's IP address on a phone in the same network and you get one big button. Every tap turns the LED on the breadboard on or off, and the page shows the state of the LED. No app and no account needed; the IP address is printed to the Serial Monitor. The ESP8266 only joins 2.4 GHz networks.

ESP8266 Router-Free LED Control: the NodeMCU Opens Its Own Wi-Fi Network (Access Point)
Control an LED from your phone with no router and no internet. The NodeMCU V3 opens its own Wi-Fi network (BlueGrays-LED); join it with your phone and open 192.168.4.1 in the browser. The big button switches the LED on and off, three small buttons set the brightness to low, medium or full, and the bottom line shows how many devices are joined. This network has no internet: while the phone is on it, only the board's page opens.

ESP8266 Web Traffic Light: Red, Yellow, Green and an Automatic Cycle from Your Phone with a NodeMCU
Run a three-color traffic light from your phone's browser. The NodeMCU V3 joins your home Wi-Fi and its page shows three round lamps: tap one and the red, yellow or green LED turns on or off. The AUTO button starts the cycle of a real traffic light: red for 3 s, green for 3 s, yellow for 1.5 s. During the cycle the page reloads every second and the board keeps answering your taps. The ESP8266 only joins 2.4 GHz networks.

First Program with mBot: Light Up the Onboard RGB LEDs
Upload your first code to the mBot with the Arduino IDE. The two RGB LEDs on the robot's board (mCore) light up red, green and blue together, then the right one turns yellow, the left one purple, and both go off. No wires or extra parts are needed; just connect the mBot to the computer over USB. setColor picks the color and show sends it to the LEDs.

Color Fade with mBot: A Rainbow on the RGB LEDs
The two RGB LEDs on the mBot's board fade smoothly through the colors of the rainbow: from red to green, green to blue and blue back to red. The left LED runs a little ahead of the right one on the color wheel, so the two always show different shades. No extra parts. A single number (0-255) holds the place on the wheel, and the code turns it into red, green and blue values.

Change Colors with the mBot Button: A New Color on Every Press
Every press of the button on the mBot's board moves the two RGB LEDs to the next color: red, green, blue, yellow, purple, cyan, white and off. Holding the button does not change the color again; one press is one step. No extra parts are needed. The button is read as an analog value on pin A7: close to 0 while pressed, up at 1023 when released.

Arduino LED Heart: A Glowing Heart with 6 Animations You Switch On and Off with a Button (16 LEDs + Button)
You arrange 16 red LEDs into a heart and control the whole thing with a single button. A short press changes the animation and holding it for 1 second turns the heart on or off. There are six animations: steady, heartbeat, a light running around the heart, fill and empty, blink and random sparkle. Everything runs on non-blocking timing, so the button always responds.
