I extended on my original music playing program to play 2 songs now! It can play either The Lost Woods Song from Zelda or the Mario Theme Song. The board actually interfaces with a program that I wrote on my laptop in java. The java program communicates with the arduino board using the serial port. It does this using the code from the RXTX project (http://rxtx.qbang.org/wiki/index.php/Main_Page). That java program then sets up a server that allows another java client program to connect to it across the network (or even across the internet). The client program gives the user three options (1. Lost Woods, 2. Mario, 3. Exit). Once the user makes their selection the client sends the information to the server, which then forwards it to the arduino board. The arduino board sends a 'lock' command to the server and then starts playing the song. The server forwards the 'lock' command to the client, which then locks out the user input. Once the song is done playing the arduino sends an 'unlock' command to the server, which is then forwarded to the client. When the client receives this command it 'unlocks' the user input in order to ask the user what he wants to do next.
While it probably isn't very impressive to make an arduino play songs across a network, it demonstrates some core concepts that you can use to develop some really cool applications/projects. I didn't intend to put the code up anywhere, but if you're interested in seeing it just ask me and I'll provide you with a copy.
which arduino board is that?, also check out instructables, they have a few arduino tutorials/projects for some crazy stuff
wertyuiop408 2 years ago
It's a Duemilanove with an atmega 168 chip. I've seen some of the projects at Instructables. They're pretty cool. I like the 3D controller that they have there.
aoi22290 2 years ago