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

ESP8266 Wi-Fi Network Scanner: List Nearby Networks by Signal Strength with a NodeMCU
Turn a NodeMCU into a Wi-Fi scanner. The board finds the networks around it, sorts them by signal strength and lists them in the Serial Monitor: a bar chart, percent, dBm, channel, network name and whether it is secured or open. The blue onboard LED blinks fast or slow to match the strongest network, and the scan repeats every 10 seconds. No extra parts and no Wi-Fi password needed. The ESP8266 only sees 2.4 GHz networks.

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.

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
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
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
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
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
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.
