Project showcase
Customizable Micro Music Box with Arduino

Customizable Micro Music Box with Arduino © CC BY-ND

A simple and small music box with customizable tunes. Parts involved? Arduino Micro, buzzer and a switch.

  • 1,247 views
  • 0 comments
  • 2 respects

Components and supplies

Apps and online services

About this project


Let's say you are a hacker and you have to make a present. All you have is a shared song and some parts... that's all you need for this micro music box.

Circuits are easy: you have to connect the Buzzer to a Digital Pin and Ground and a Switch to another Digital Pin and Ground.

If you want to make the box portable, a small 3.3v lithium battery will do the trick.

For the case, you can just print two parts in your 3D printer or make a real box with a hidden switch.

Micro music box

What about the tunes?

This box comes with Brahms Lullaby song tune but you can change it for any other tune by just editing notes and duration.

In fact you can find ready to be used arrays on the web for popular series and rock songs as well.

Several octaves frequencies are defined inside the code

#define NOTE_B0  31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
#define NOTE_GS1 52
#define NOTE_A1 55
#define NOTE_AS1 58
#define NOTE_B1 62
#define NOTE_C2 65
#define NOTE_CS2 69

Notes and duration are stored inside the following array

int melody[] = {NOTE_G4, 4, NOTE_G4, 4,...}

Comments

Similar projects you might like

Knock Knock Music Box

Project tutorial by Johan van Vugt

  • 2,427 views
  • 1 comment
  • 11 respects

Electron Music Box Buzzer App

Project tutorial by Iain

  • 2,724 views
  • 0 comments
  • 5 respects

Interactive Toddler Music Box Toy

Project tutorial by Christopher Monreal and Nick Udell

  • 1,447 views
  • 0 comments
  • 2 respects

Newbie Music Player

Project in progress by Michael Marinis

  • 5,358 views
  • 2 comments
  • 16 respects

Out of My League - Music on Arduino

Project tutorial by MrZmann

  • 1,890 views
  • 0 comments
  • 4 respects
Add projectSign up / Login