Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

More Arduino Music with Server/Client Control

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,182
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 30, 2010

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.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (aoi22290)

  • which arduino board is that?, also check out instructables, they have a few arduino tutorials/projects for some crazy stuff

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

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • @wertyuiop408 i think its the arduino UNO

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more