Summary
Highlights
For portability, a battery pack is constructed using two 50mAh 3.7V LiPo cells. These are wired in series to achieve a voltage higher than Arduino's minimum input and connected to a 4-pin header. A wiring diagram is provided for clarity.
This video guides viewers through creating an electronic music box playing the 'Happy Birthday' melody using Arduino, perfect for a DIY gift. The project, which gained attention on Instagram, is presented as a step-by-step tutorial.
The assembly starts with placing an Arduino Nano and three passive Piezo buzzers, which create different tones for a dynamic sound, onto a tiny breadboard. LEDs are then added, with their pins trimmed and resistors connected, either by soldering or twisting.
The video moves to programming the Arduino Nano with the 'Happy Birthday' melody code. It covers setting up the Arduino IDE, ensuring the correct board and bootloader are selected, installing the 'Tone' library, and verifying that the pin assignments in the code match the physical connections for LEDs and buzzers.
A charger for the battery pack is built using a popsicle stick base, a female pin header, and two TP4056 single-cell charging boards. The charging boards' 5V inputs are connected in parallel, and their output current is adjusted by replacing resistors to suit the small batteries.
The assembled device is tested, demonstrating the charging process and the playability of the music box. The finished product features three buzzers contributing to the melody: one for rhythm, one for solo, and one for bass, creating a polyphonic arrangement. The battery pack provides 9 minutes of runtime, or approximately 36 song replays.
The video concludes by encouraging viewers to personalize their creations, suggesting options like converting it to PCB form or adding a decorative box. It also gives a shout-out to the original creator of the project on Arduino Hub and invites viewers to support the channel.