Author Topic: mp3 music and servos sychronised  (Read 2098 times)

0 Members and 1 Guest are viewing this topic.

Offline andysellTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
mp3 music and servos sychronised
« on: February 03, 2008, 02:10:44 PM »
Hi all,
I wanted to synch up an mp3 track with servos and such. I figured the best way to do is to rig an mp3 player to a mc and constantly check the file position of the music track to launch the event (say a servo moving). Now i've been looking around and out of the two I can find (http://www.roguerobotics.com/) and http://www.rev-ed.co.uk/picaxe/ , is seems Rogue is the only one able to return the current file position.

So two question,
1)  is this the best way to this or should I use the mc internal clock.

2), I can envisage the program being rather lengthy as a songs playing for say 15min whilst moving some servo e.c.t would take up a fair few lines of code....so much memory do you suggest I look for on a mc.

All suggestions are appreciated. I am a programmer but know very little about electronics so bear with me and thank you for your help.

Andy

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,659
  • Helpful? 169
    • Society of Robots
Re: mp3 music and servos sychronised
« Reply #1 on: February 16, 2008, 05:49:39 PM »
Quote
I wanted to synch up an mp3 track with servos and such.
what you do you mean?

You won't be able to play or store mp3's from a microcontroller. Not enough memory (on the order of 100kb) or processing speed (on the order of 20MHz).

Your best bet is have a microcontroller control an MP3 player (hack the on/off switch, etc).

Offline TrickyNekro

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,207
  • Helpful? 15
  • 1.6L Peugeot 307 tuner
Re: mp3 music and servos sychronised
« Reply #2 on: February 16, 2008, 06:45:14 PM »
Your best bet is have a microcontroller control an MP3 player (hack the on/off switch, etc).

Ha, this maybe tough... but you can also build your MP3 player...
Anyways,  have I mind something that can be useful
There is an IC from National Semi that can light up three different leds in sync of a music input... I can't remember the name sorry...
I imagine it can be well suited in your application...
For whom the interrupts toll...


P.S. I've been inactive for almost a year... Don't give promises but I'll try to complete my tutorials. I'll let you know when..

Cheers!

Offline Dscrimager

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
Re: mp3 music and servos sychronised
« Reply #3 on: December 10, 2008, 10:49:25 PM »
Seems like an old dead topic but I can give you a lead:
1) play files from your MP3 like a rogue robotics unit, which I use in my Halloween shows (
) and will soon use on my robot.
encode on the tracks a signal that you run through a high pass filter to catch the signal, it would have to be a click track or different tones in order to do different things.
run through a low pass filter to play the audio portion
See this link(http://www.scary-terry.com/more_stuff/tonedet/tonedet.htm)

lot's of Halloween folks are doing this kind of thing. We're all becoming animatronic nuts with talking skulls and the like...

Doug

Offline Asellith

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 648
  • Helpful? 9
  • "I'm a leaf on the wind. Watch how I soar"
Re: mp3 music and servos sychronised
« Reply #4 on: December 11, 2008, 12:41:54 PM »
Just to add some not so custom solutions check out these

http://www.bpesolutions.com/PuppetEquip.html#anchor48397
http://www.bpesolutions.com/PuppetEquip.html#anchor45428

Plus their other stuff. They have some neat stuff for doing the kind of things you want. Including a talking skull kit.
Jonathan Bowen
CorSec Engineering
www.corseceng.com

Offline Dscrimager

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
Re: mp3 music and servos sychronised
« Reply #5 on: December 11, 2008, 06:41:41 PM »
I used something similar from EFX-tek.com and cowlacious.
For the original purpose of playing MP3s they dont work, but for playing sound effects they are great...
Doug

 


Get Your Ad Here

data_list