Servo Movement via Music Input
Hi all,
has anyone ever tried to move a servo by music (line level)? I found a way with help of the group to do it with stamp but I figure there must be some easier, more direct way. The task is: how to convert Voltage (about 1V) into a shift of the high-time and low-time of a fixed Frequence (to control servo)? Must be some kind of A/D converter influencing the pulswidth.. Any ideas?
Thanx a lot in advance!
Uli
Post Edited By Moderator (Jon Williams) : 12/3/2004 4:15:17 PM GMT
has anyone ever tried to move a servo by music (line level)? I found a way with help of the group to do it with stamp but I figure there must be some easier, more direct way. The task is: how to convert Voltage (about 1V) into a shift of the high-time and low-time of a fixed Frequence (to control servo)? Must be some kind of A/D converter influencing the pulswidth.. Any ideas?
Thanx a lot in advance!
Uli
Post Edited By Moderator (Jon Williams) : 12/3/2004 4:15:17 PM GMT
Comments
What this means is there needs to be some 'driving' device generating the Servo signal. So, the question then becomes what kind of input signal, and input processing, should be done to the music (Fourier Transform? Volume? ) so the 'driving' device drives the Servo in a 'meaningful' way.
You can't 'wish' or 'magic' this level of processing away. By the way, finding frequencies from a set of digital readings of analog voltage IS what the Fourier Tranform does. This tends to be processor intensive.
That 'all I need is... something that tranforms the Voltage into the pulsewidth' statment is the problem. The BS2 is a good solution. Transforming a Voltage into a 1 to 2 mSec pulse-width repeated every 20 mSec is right up the BS2 alley.
·· I saw your earlier thread on this, and it occurs to me...If you're line-level signal will be average music, then the servo will never be able to track the volume changes with any speed anyway.· Picture a rock song playing, and everytime there is a bass beat, the volume is peaked out at 1V, and in between, silence.· The servo will never be able to move fast enough to respond to changes in volume like that.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·