Pages: [1]   Go Down
Author Topic: Arduino music box flip-n-shake/tap  (Read 4756 times)
0 Members and 1 Guest are viewing this topic.
Central MN, USA
Online Online
Tesla Member
***
Karma: 65
Posts: 6899
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

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/
« Last Edit: January 26, 2011, 11:05:26 am by liudr » Logged


Central MN, USA
Online Online
Tesla Member
***
Karma: 65
Posts: 6899
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have added some LED effect.

Here is some more decent video.

Turn your volume all the way up!
Logged


Wigan, UK
Offline Offline
God Member
*****
Karma: 18
Posts: 814
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That's really good, well done!
Logged

Central MN, USA
Online Online
Tesla Member
***
Karma: 65
Posts: 6899
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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.
Logged


Central MN, USA
Online Online
Tesla Member
***
Karma: 65
Posts: 6899
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:


When the box's favorite tune is played, it will play the entire song (more or less)
« Last Edit: January 30, 2011, 02:59:12 am by liudr » Logged


Wigan, UK
Offline Offline
God Member
*****
Karma: 18
Posts: 814
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Central MN, USA
Online Online
Tesla Member
***
Karma: 65
Posts: 6899
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 96
There are two ways to write error-free programs; only the third one works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Very cool! Looks like I have yet another thing I want to try out  smiley-roll
Logged

"#define QUESTION ((bb) || !(bb))  - Shakespeare."

Central MN, USA
Online Online
Tesla Member
***
Karma: 65
Posts: 6899
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!!  smiley-lol

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  smiley-lol
Logged


Pages: [1]   Go Up
Jump to: