Go Down

Topic: Arduino music box flip-n-shake/tap (Read 5 times) previous topic - next topic

liudr

Jan 26, 2011, 04:59 pm Last Edit: Jan 26, 2011, 05:05 pm by liudr Reason: 1
This is a project for a music box. It is not an ordinary music box as it doesn't play songs but rather plays different musical tones when different sides of it faces up and gets a gentle tap.

Flip-n-shake/tap music box

You are given a well-decorated box (after I finish it), cube, with one musical note on each side,  flip it so that a desirable musical note faces up, shake or knock on the box, that note will play. When playing, the top side of box will glow with a certain color. Since there are 6 sides to a box, 6 notes can be associated with each side. I've built the prototype last weekend and managed to play a few simple songs by flipping and knocking on it. I am adding some video later this week. This box needs a lot of artistic touches in order to attract attentions. That is where I need some help. I hope to find some help at the Art Department. I imagine that when finished, two such boxes can be made so a person can pick them up with two hands and shake them to play as many as 12 notes. Many simple songs can be played with these two boxes.

This picture tells the inner working of the box prototype, an Arduino and an accelerometer:


The following is a video of the prototype. As you can see, the entire box is very ugly and needs a lot of artistic touch. I will post updates when I get more progress on it.
http://www.youtube.com/watch?v=hJjaIgh4nUc
You have to crank your volume all the way up. I need a louder speaker and a lot of holes on the box!

I will update my blog as I progress.
Here it is: http://liudr.wordpress.com/2011/01/24/music-box/

liudr

I have added some LED effect.

Here is some more decent video.

Turn your volume all the way up!
http://www.youtube.com/watch?v=_r1iiP6wwWw

CowJam


liudr

Thanks CowJam. Just wait for a month or two I will come back with a more artistic box and more lights.  :)

Will be posting codes when I clean them up. Right now they're like SerialDebug() and SerialDebug1() etc. I hacked my POV code so I need to trim the fat and rename some variables and functions.

liudr

#4
Jan 30, 2011, 07:16 am Last Edit: Jan 30, 2011, 08:59 am by liudr Reason: 1
More details are on my blog:
http://liudr.wordpress.com/

One giant step forward! Now the box is intelligent. If it recognizes its favorite tune is tapped in by the performer, it will play the tune!

Just quick demo:
http://www.youtube.com/watch?v=haKk_UpJyIo

When the box's favorite tune is played, it will play the entire song (more or less)
http://www.youtube.com/watch?v=IGH55tlUVdw

CowJam

You could include a Simon style game, where it plays a few notes and you have to repeat it (and increases in complexity).

Though if you do add that it'd be helpful to have the LED illuminated all the time to show the note's colour code rather than just when it's tapped.

liudr

Thanks CowJam! I will try to make a Simon's game later.

alexhb

Very cool! Looks like I have yet another thing I want to try out  :smiley-roll:
"#define QUESTION ((bb) || !(bb))  - Shakespeare."

liudr

Yeah! Another good excuse to eat a whole box of chocolate. What?! I need this very box for a project. I therefore, must empty this box!!  XD

I had that box of chocolate for a while. Ate it, filled it with pop corns for some time. Left it empty on the counter for a while. Eventually managed to fill it with electronics, which is pretty much what happens to any box when it ends up in my apartment  XD

Go Up