Ideas for your own projects

Twelve ideas for your own Arduino and ESP32 projects to build at home: what each device does, the parts it needs, the lessons that help and how to start.

Arduino ESP32
A workbench with small finished projects: a wooden box with an LED matrix, a buzz-wire game, a cardboard safe with a servo motor and a keypad, a music box with a speaker and an RFID card, a ramp with a steel ball, an Arduino and an ESP32 on a breadboard, a phone showing a page with buttons and a notebook with a block diagram

In the lessons we guide you step by step. In a project of your own, you decide what to build, what it looks like and what it does. Here are twelve ideas for projects you can make at home: eight with an Arduino and four with an ESP32. Each idea says what the device does, which parts it needs, which lessons and pages help, how hard it is, what to start with and what to add once that works.

The ideas are not instructions: there is no finished program or schematic. You work out the circuit and the program yourself, and the lessons and the Info pages help you along the way. The ideas are for people who have done the Arduino lessons up to chapter 3 (12+), but anyone can try them.

Parts and help

You get the parts for your own project yourself. Participants in our workshops can ask the instructor which parts to buy and where to get them.

If you get stuck with the circuit or the program, ask on Discord: anyone can ask for help, not only workshop participants. Write what the device should do and what happened, and send the program and a photo of the circuit too.

How to start

  1. Choose an idea and write down in one sentence what the device does. If it doesn’t fit in one sentence, the idea is too big for a first project.
  2. Draw a block diagram: inputs on the left, the Arduino in the middle, outputs on the right. The Diagrams page shows how.
  3. List the parts and check how much current they need and where it will come from (Powering a project).
  4. Start with the smallest version that works. Each idea has a Start with this line. Only when that works, add the next part.
  5. Build and test one part at a time. Try each new part on its own first, with a small program and the Serial Monitor. If something doesn’t work, the Troubleshooting a circuit page helps.
  6. Plan the program before you write it: which states the device has and what moves it from one to another, like the state machine in the Reaction game lesson.
  7. Show your project on Discord. Let the photos and videos show the project, not faces.

Safety at home

The projects on this page run on USB, a power bank or AA batteries. Don't connect anything to the 230 V mains, and don't use LiPo batteries or 12 V coils without an adult who knows how to work with them.

A soldering iron is about 350 °C hot. Before you solder for the first time, read the Soldering page.

Arduino ideas

All the ideas work with an Arduino Uno and parts we have met in the workshops. We cover the LED matrix with the MAX7219 chip, the RC522 card reader, the servo motor and the DFPlayer in chapter 4 of the Arduino workshops. The examples that come with their libraries in the Arduino IDE are a good start too.

1. Electronic dice

You shake a small box, and a number from 1 to 6 appears on the LED matrix, with dots like on a real dice. While you shake it, the tilt switch keeps opening and closing, so the program counts those short openings like the tilt in the Detecting the ball lesson. When the shaking stops, the dice shows a number.

  • Parts: Arduino Uno, tilt switch, 8 × 8 LED matrix with a MAX7219 chip.
  • Read: Detecting the ball, Buttons and switches, Arrays and Binary, octal and hexadecimal numbers (each row of the matrix is one byte).
  • Level: easier.
  • Start with this: when the shaking stops, print a random number from 1 to 6 on the Serial Monitor.
  • Then add: dots on the matrix, a short animation while the dice rolls, two dice at once.
  • Watch out: after every start, random() gives the same numbers in the same order. So call randomSeed(analogRead(A0)) in setup(), with nothing connected to pin A0.

2. Buzz wire

A steady-hand game: you guide a wire loop on a handle along a bent bare wire from one end to the other without touching it. Every touch beeps and is counted, and the Arduino measures how long you took. The bent wire is connected to a pin with INPUT_PULLUP and the loop to GND, so a touch connects the pin to GND like a pressed button.

  • Parts: Arduino Uno, about 1 m of bare copper wire about 2 mm thick, a wooden board, a buzzer, wires.
  • Read: Buttons done right and Reaction game.
  • Level: easier.
  • Start with this: the buzzer beeps while the loop touches the wire.
  • Then add: counting the touches (one touch counts once, like a button press), start and finish pads made of bits of wire on two other pins, the time and the best score.

3. Night light

An LED slowly comes on when the room gets dark and goes off when it gets light. The photoresistor is in a voltage divider on pin A0, and the LED is on a PWM pin. With a potentiometer you set how dark it must be for the light to come on.

  • Parts: Arduino Uno, photoresistor, 10 kΩ resistor, potentiometer, LED with a 220 Ω resistor.
  • Read: Arduino - step by step and Voltage divider, Arduino and PWM.
  • Level: easier.
  • Start with this: watch on the Serial Monitor what analogRead() gives in daylight, with the light on and in the dark.
  • Then add: a light that comes on slowly, step by step with millis(), more LEDs through a transistor, switching off after ten minutes.
  • Watch out: if the LED’s light falls on the photoresistor, the light switches itself off, then on again, and flickers. Turn the photoresistor away from the LED, or let the light go off only when it is clearly brighter than when it came on.

4. Simon says

The Arduino lights up a sequence of colours, and you repeat it on four buttons. Each round the sequence gets one colour longer. When you make a mistake, the game is over, and the best score is remembered even when you switch the Arduino off. You keep the colours in an array and the best score in the EEPROM memory.

  • Parts: Arduino Uno, four buttons, four LEDs of different colours with 220 Ω resistors, a buzzer.
  • Read: Buttons done right, Reaction game, Buzzer and speaker.
  • Level: medium.
  • Start with this: a sequence of four random colours that the Arduino shows and you repeat.
  • Then add: a growing sequence, faster and faster showing, the best score in EEPROM. With a passive buzzer or a small speaker, each colour can have its own tone (tone()).
  • Watch out: the EEPROM takes about 100,000 writes. Write the score only when it is a new record, and with EEPROM.update(), which doesn’t write if the number hasn’t changed.

5. Ball speed meter

A ball rolls down a ramp and passes through two break-beams a known distance apart, for example 20 cm. The Arduino measures the time between them and works out the speed in centimetres per second. The ramp and the break-beams are the same as in the Detecting the ball lesson, except that there are two break-beams, one on A0 and the other on A1.

  • Parts: Arduino Uno, a ramp (cable duct), a steel ball, two 940 nm infrared LEDs and two receivers (photodiodes) with 220 Ω and 100 kΩ resistors, an LED matrix with a MAX7219 or just the Serial Monitor.
  • Read: Detecting the ball, Infrared sensors.
  • Level: medium.
  • Start with this: one sensor that counts the balls.
  • Then add: the second sensor and the speed, the highest speed measured, the speed on the matrix. Compare how much faster the ball is when it starts from higher up.
  • Watch out: measure the time with micros() and work it out as micros() - start. If the ball gets stuck between the sensors, cancel the measurement after a while.

6. Music box with cards

You hold a card to the box, and the song that belongs to that card plays. The RC522 reader reads the card’s number (UID), the program looks it up in a list of known cards, and the DFPlayer Mini plays the song from a microSD card on a small speaker.

  • Parts: Arduino Uno, RC522 reader with cards or key fobs, DFPlayer Mini, microSD card, a small 8 Ω speaker, 1 kΩ resistor.
  • Read: How devices talk: UART, I2C and SPI (the reader is on SPI and the DFPlayer on UART), Buzzer and speaker.
  • Level: medium.
  • Start with this: two separate programs: one prints the card’s UID on the Serial Monitor, the other plays the first song when you press a button.
  • Then add: a list of cards and their songs, the volume on a potentiometer, a card that stops the music.
  • Watch out:
    • Power the RC522 from the 3.3V pin, because 5 V damages it. Bring the signals from the Uno (5 V) down to the reader with voltage dividers.
    • Put a 1 kΩ resistor on the DFPlayer’s RX pin, as in the maker’s schematic. Without it the speaker often hisses.
    • If the Arduino resets when the sound plays loudly, the power supply is too weak: turn the volume down or give the DFPlayer its own supply.
    • Only read your own cards and key fobs, never school, bank or transport cards.

7. Safe with a card or code

A box made of cardboard or wood that a servo motor locks. It opens when you hold a known card to it or type a code on the keypad, and a green LED and a sound say it is unlocked. After three wrong codes, the safe won’t take new ones for half a minute.

  • Parts: Arduino Uno, SG90 servo motor, RC522 reader or 4 × 4 membrane keypad, a buzzer, a red and a green LED.
  • Read: Reaction game (state machine), Many switches on few pins (keypad), Servo motor.
  • Level: medium.
  • Start with this: a button that turns the servo from the locked position to unlocked and back.
  • Then add: a code or a card, the states locked, unlocked and blocked, locking again after a few seconds.
  • Watch out:
    • If the power goes off while the safe is locked, it stays locked. Make a hidden hole through which you can move the latch with a paper clip.
    • Power the servo from a separate 5 V, with a common GND.
    • This is not a real safe: don’t keep anything valuable in it.

8. Snake on the matrix

The well-known game on an 8 × 8 LED matrix: the snake keeps moving, and you turn it with four buttons. When it eats a dot, it grows by one part, and when it hits itself, the game is over. The positions of the snake’s parts are kept in two arrays, one for the columns (x) and one for the rows (y).

  • Parts: Arduino Uno, 8 × 8 LED matrix with a MAX7219, four buttons.
  • Read: Buttons done right, Arrays, Binary, octal and hexadecimal numbers.
  • Level: harder.
  • Start with this: one dot that you move with the buttons.
  • Then add: a snake of three parts that moves by itself, food in a random place, growing, the end of the game, a snake that gets faster and faster, and the score at the end.
  • Watch out: move the snake with millis(), not with delay(), like the traffic lights in the Two traffic lights at a crossroads lesson. Otherwise the program doesn’t read the buttons while it waits.

ESP32 ideas

The ESP32 has Wi-Fi and Bluetooth, and you program it in the Arduino IDE, like the Uno. How to set it up is on the ESP32 and ESP8266: microcontrollers with Wi-Fi page.

Rules for projects with Wi-Fi

  • All four ideas work without the internet: the ESP32 makes its own Wi-Fi network or talks directly to another ESP32.
  • Never type the password of your home or school Wi-Fi network into a program you show on Discord or publish on the internet.
  • Don't send data about yourself or others (names, places, photos) to internet services.
  • The ESP32 works with 3.3 V. Don't connect 5 V to its pins. An LED matrix with a MAX7219 doesn't work reliably on it, because it needs at least 3.5 V on its data input.

9. Control from a phone

The ESP32 makes its own Wi-Fi network. A phone connects to it, opens the address 192.168.4.1 in the browser and gets a page with buttons that switch LEDs on and off and a slider that turns a servo motor. You make up the network and its password yourself, in the program (WiFi.softAP()), and the WebServer library sends the page.

  • Parts: ESP32 DevKit, LEDs with 150 Ω resistors, an SG90 servo motor with its own 5 V supply.
  • Read: ESP32 and ESP8266: microcontrollers with Wi-Fi, Servo motor.
  • Level: medium.
  • Start with this: the network and a page that only says Hello!.
  • Then add: a button that switches an LED on and off, a slider for the servo, a page that shows the state of the LEDs.
  • Watch out: the phone reports that the network has no internet and may switch back to mobile data or another network by itself. Choose to stay connected.

10. Quiz buttons

Like on a TV quiz show: each player has their own ESP32 with a big button, and a central ESP32 beeps and lights the LED of the player who pressed first. Until the next question, the other buttons don’t count. The ESP32s talk directly, with the ESP-NOW protocol, without a Wi-Fi network, like the micro:bits in the Radio games lesson.

  • Parts: at least three ESP32s (two players and the central one), big buttons, LEDs with 150 Ω resistors, a buzzer.
  • Read: Buttons and switches, Radio games.
  • Level: medium.
  • Start with this: two ESP32s: pressing the button on one lights an LED on the other.
  • Then add: more players, a button for a new question on the central ESP32, points for each player.
  • Watch out: in the newer versions of the ESP32 support for the Arduino IDE (3.x), ESP-NOW is written differently than in older examples from the internet. Start from the ESP_NOW examples the Arduino IDE has for the ESP32 (File → Examples).

11. Door sensor

A small battery-powered device reports every time a door opens. The magnet is on the door and a reed switch on the door frame. The ESP32 spends most of its time in deep sleep and uses very little power; when the door opens, it wakes up, reports it with ESP-NOW to a second ESP32 next to the computer and goes back to sleep. The second ESP32 beeps and counts the openings.

  • Parts: two ESP32s, a reed switch and a magnet, a battery holder, a buzzer.
  • Read: ESP32 and ESP8266: microcontrollers with Wi-Fi (deep sleep and power), Buttons and switches (reed switch), Batteries.
  • Level: harder.
  • Start with this: an ESP32 on USB that reports on the Serial Monitor when the reed switch opens.
  • Then add: a message to the second ESP32, deep sleep and waking on a pin, power from batteries and measuring how long they last.
  • Watch out: the A3144 Hall sensor doesn’t suit this, because it needs at least 4.5 V and draws current all the time. A reed switch draws nothing.

12. Room weather station

The ESP32 measures the temperature, humidity and air pressure in the room and shows them on a page in the browser, as in the Control from a phone idea. It keeps the measurements from the last 24 hours in an array, so the page can draw a graph too.

  • Parts: ESP32 DevKit, a BME280 sensor (on I2C) or a DHT22.
  • Read: How devices talk: UART, I2C and SPI, Arrays.
  • Level: medium.
  • Start with this: the temperature and humidity on the Serial Monitor, every ten seconds.
  • Then add: a page with the measurements, a graph, the highest and lowest temperature of the day.
  • Watch out:
    • A BMP280 looks the same as a BME280, but doesn’t measure humidity. Check the label when you buy one.
    • The ESP32 warms up a little, so put the sensor on wires, a few centimetres away from it.

Have an idea of your own?

Great! The steps are the same: one sentence, a block diagram, the smallest version that works, then one part at a time. If you’re not sure whether the idea is too big or which parts it needs, ask on Discord before you buy anything.