Projects · Arduino / ESP32 / Pico

Discover Arduino Projects

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

ESP8266 Web Traffic Light: Red, Yellow, Green and an Automatic Cycle from Your Phone with a NodeMCU
E8-5Beginner

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
MB-1Beginner

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
MB-2Beginner

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.

First Melody with mBot: Play Notes on the Buzzer
MB-3Beginner

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.

Change Colors with the mBot Button: A New Color on Every Press
MB-4Beginner

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.

mBot Melody Picker: Press the Button, Change the Tune
MB-5Beginner

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 LED Brightness with a Web Slider: PWM Dimming from Your Phone with a NodeMCU
E8-6Beginner

ESP8266 LED Brightness with a Web Slider: PWM Dimming from Your Phone with a NodeMCU

Move a slider in your phone's browser and let the LED follow your finger. The NodeMCU V3 joins your home Wi-Fi and serves a page with a single slider: 0% is off, 100% is full brightness. The board sets the brightness with PWM: it switches the pin on and off very fast, and the longer the on share, the brighter the LED looks. Every move sends the board a small request and the page never reloads. The ESP8266 only joins 2.4 GHz networks.

ESP8266 RGB LED Color Picker on the Web: Pick a Color on Your Phone and a NodeMCU Shows It at Once
E8-7Beginner

ESP8266 RGB LED Color Picker on the Web: Pick a Color on Your Phone and a NodeMCU Shows It at Once

Pick a color in your phone's browser and the RGB LED shows it. The NodeMCU V3 joins your home Wi-Fi and serves a page with a color picker. Every color is a mix of red, green and blue; the board sets the brightness of three pins with PWM. Every new color sends the board a small request and the page never reloads. The code is written for a common cathode LED; a common anode one needs a single line changed. The ESP8266 only joins 2.4 GHz networks.

ESP8266 Wi-Fi Signal Strength Bar: Find the Best Wi-Fi Spot at Home with a NodeMCU and 5 LEDs
E8-8Beginner

ESP8266 Wi-Fi Signal Strength Bar: Find the Best Wi-Fi Spot at Home with a NodeMCU and 5 LEDs

See the signal strength of your router on a bar of five LEDs, like the Wi-Fi icon of a phone. The NodeMCU V3 joins your home Wi-Fi, measures the signal twice a second and lights one LED for every level reached: -90, -80, -70, -60 and -50 dBm. Run the board from a power bank and walk around the house: the more LEDs light up, the better the spot. The first LED blinks while the board is looking for the network. There is no web page. The ESP8266 only joins 2.4 GHz networks.

ESP8266 Button State on a Web Page: Press the Button on the NodeMCU and Your Phone Shows It at Once
E8-9Beginner

ESP8266 Button State on a Web Page: Press the Button on the NodeMCU and Your Phone Shows It at Once

Press the button on the breadboard and the web page on your phone says PRESSED and counts the presses. The NodeMCU V3 joins your home Wi-Fi and serves a status page. A small script on the page asks the board for the state three times a second, so the page updates itself without reloading. The button needs no resistor: the code uses the internal pull-up of the board (INPUT_PULLUP) and filters contact bounce with a 30 ms debounce. The ESP8266 only joins 2.4 GHz networks.

ESP8266 Web Doorbell: Tap the Bell on Your Phone and the NodeMCU Plays Ding Dong
E8-10Beginner

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.

mBot Drive Forward and Stop: First Move with the Motors
MB-6Beginner

mBot Drive Forward and Stop: First Move with the Motors

Press the button on the mBot's board: the robot waits one second, drives straight forward for two seconds and stops. Every press repeats the move. No extra parts are needed. The two motors are plugged into M1 and M2; to go straight the left motor gets a negative speed and the right motor a positive one.