BBC:microbit projects
SORTING OUT THE DESIGN AESTHETICS AND COMPLETING THE PROJECT
Part Two of making a music box
We skipped an issue of the magazine with this project but here is the second and final instalment on how to make a music box. Part one was in Issue No. 86 of The Shed.
The design of the Arduino MP3 player in part one was the first step to confirm the feasibility of this project.
To complete the build, I temporarily stopped working on the electronic part to concentrate on the aesthetics of the box. Following the style of this series of Micro Bit projects, I decided to use recycled cardboard to create the container. The box was metal painted with a brownish finish to simulate rugged metal.
It required a considerable amount of design and 3D printing to make the visible parts of the music box and the spring-charger simulator. The 3D-printed parts are used to control the music box and provide several effects simulating the behaviour of an old spring-charged music box.
Charge-level simulator
A metal-painted arrow simulating the
charge level of the spring moves at precise angle positions between zero and 90 degrees (from horizontal to vertical position). I have programmed nine positions, corresponding to the Arduino MP3 player’s nine sound tracks. When a track ends, the charger moves down one position until it reaches zero. You have to recharge the ratchet simulator to restart playing.
Charger simulator
The charge simulator is built in two parts. The internal part simulates a spring charger — the old music boxes are fully mechanical, of course — with a 3D-printed ratchet and a notch.
Rotating the ratchet, a small brushed DC motor driven by a couple of pulleys and an elastic belt produces a sufficient voltage pulse to be detected by the Micro Bit.
The external part is a big yellow charging key that is rotated to activate the music box.
Music-changer button
The Arduino stops when the track ends, and when the red button on top of the box is pressed the music box starts playing the next track. The Arduino will also skip to the next track when the button is pressed.
The output of the Arduino MP3 player is sent to a smartphone-sized speaker and the sound is amplified by a 3D-printed blue cone, which is visible on one side of the music box.
Lamp
I installed a 220V lamp simulating a yellow burning flame on one side of the box. The lamp is powered when the musical box is fully charged and the charger indicator is in the top position (90 degrees). The lamp remains powered until the charge level reaches zero. The lamp power is digitally controlled by the Micro Bit through a relay because of the power difference.
I assembled all the parts inside the box with hot glue, including the 9V power supply. Then I powered up the music box and enjoyed playing it.
It required a considerable amount of design and 3D printing