Project ideas by part

Projects with a speaker

9 Mokxi projects use an 8 ohm speaker (1 beginner, 6 intermediate and 2 advanced). They run on Arduino Uno, Arduino Nano and ESP32 boards. Here are all of them, from “Sleigh-bell doorbell” to “Christmas light show”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.

First project

How to pick your first one

  • Start with “Sleigh-bell doorbell”, a beginner project that needs a push button, a resistor, a speaker and 1 more part.
  • Arduino Uno runs 7 of them, Arduino Nano 1 and ESP32 1. Start on the board you have, or on an Arduino Uno if you are buying one.
  • The parts used most here are the DFPlayer Mini MP3 module (5 projects), the servo motor (4) and the LED (3). With those on hand, most of this list is open to you.
  • Before you build one on a real bench, open the 8 ohm speaker part page for its pins and what each one does.
Projects

9 projects ready to run

  • Sleigh-bell doorbell, drawn in the Mokxi editor

    Sleigh-bell doorbell

    Press the doorbell and a servo shakes a strap of real sleigh bells in time while a speaker plays the chorus of Jingle Bells.

    Board
    Arduino Uno R3
    Parts
    Push button, resistor, 8 ohm speaker, servo motor
    Level
    Beginner
    Open in the simulator
  • ESP32 I2S sine player, drawn in the Mokxi editor

    ESP32 I2S sine player

    A MAX98357A I2S amplifier on an ESP32 playing a 440 Hz sine into a speaker, the samples computed in the sketch with ESP_I2S.h.

    Board
    ESP32 DevKit V1
    Parts
    I2S amplifier, 8 ohm speaker
    Level
    Intermediate
    Open in the simulator
  • LM386 speaker amp, drawn in the Mokxi editor

    LM386 speaker amp

    An Uno plays a tune with tone() on pin 8, and an LM386 with a gain of 20 drives an 8 ohm speaker from a 9 V battery.

    Board
    Arduino Uno R3
    Parts
    Battery: AA, LM386 audio amplifier, resistor, capacitor, 8 ohm speaker
    Level
    Intermediate
    Open in the simulator
  • Jump-scare box, drawn in the Mokxi editor

    Jump-scare box

    A radar inside a box sees someone walk up: a servo throws the lid open, a DFPlayer screams and two red eyes flicker, then it shuts and rearms.

    Board
    Arduino Uno R3
    Parts
    DFPlayer Mini MP3 module, resistor, LED, microwave motion sensor, servo motor, +1 more
    Level
    Intermediate
    Open in the simulator
  • Animated diorama: DFPlayer sound + stepper, drawn in the Mokxi editor

    Animated diorama: DFPlayer sound + stepper

    A button plays a C-3PO line on a DFPlayer Mini while a 28BYJ-48 turns R2-D2’s dome.

    Board
    Arduino Nano
    Parts
    DFPlayer Mini MP3 module, resistor, push button, 8 ohm speaker, 28BYJ-48 stepper and ULN2003
    Level
    Intermediate
    Open in the simulator
  • Talking skull, drawn in the Mokxi editor

    Talking skull

    A PIR wakes a skull: its eyes light and a servo jaw follows a hand-timed cue list in step with a DFPlayer track, until BUSY says the line is over.

    Board
    Arduino Uno R3
    Parts
    DFPlayer Mini MP3 module, resistor, LED, PIR motion sensor, servo motor, +1 more
    Level
    Intermediate
    Open in the simulator
  • Music box, drawn in the Mokxi editor

    Music box

    A tune on an 8 ohm speaker through 100 ohms, a continuous-rotation servo turning the drum.

    Board
    Arduino Uno R3
    Parts
    Transistor, resistor, diode, vibration motor, 8 ohm speaker, +1 more
    Level
    Intermediate
    Open in the simulator
  • Laser sword, drawn in the Mokxi editor

    Laser sword

    A light saber style sword on an Uno: a WS2812 blade that ignites and retracts, swing and clash from an MPU6050.

    Board
    Arduino Uno R3
    Parts
    WS2812 NeoPixel LEDs, MPU6050 accelerometer and gyro, resistor, LED, push button, +3 more
    Level
    Advanced
    Open in the simulator
  • Christmas light show, drawn in the Mokxi editor

    Christmas light show

    A DFPlayer starts the song and three WS2812B strips, roofline, tree and arch, follow a cue list timed in beats from that moment until the song ends.

    Board
    Arduino Uno R3
    Parts
    DFPlayer Mini MP3 module, resistor, WS2812 NeoPixel LEDs, 8 ohm speaker
    Level
    Advanced
    Open in the simulator