Sound-To-Servo Driver

This page describes a project that takes an audio signal and uses it to drive a RC servo. The louder the sound, the more the servo moves. The most obvious application of this is to make your own mouth animation for talking and singing creatures.

----------
----------
 

History

Ray Martin is a friend of ours who designs toys for a living, sometimes electronic, sometimes mechanical. We were having lunch after the TRW Amateur Radio Club swap meet, and I mentioned that some of the best
hackable products with animated mouths were discontinued, and Halloween lovers were constructing singing and talking props out of alternative things like servos. Ray said, "I have a circuit that does exactly what you need on my desk right now!"

Ray went further than that. He customized the design for specific servo limits and pulse frequency, built a prototype and tested it, and sent me the details.

Since then, David has entered the circuit into our CAD package, laid out two different prototype printed circuit boards, and experimented with them.

 

General Servo Theory

A
RC servo takes a series of pulses and uses them to direct the position of an output shaft.

General servo limits (they vary between manufacturers and models) are:
pulse width angle comment
0.6m Sec -45 degrees minimum pulse length
1.5m Sec 0 degrees center position
2.4 mSec -45 degrees maximum pulse length

Notes:

The driving pulse is usually specified as 3-5 Volt Peak to Peak, but I suspect that in many cases you can get by with whatever power the motor is getting. I would avoid using a drive pulse greater than the motor power.

Most servos require a power supply between 4.8V and 6.0V.

 

Circuit Theory

The single LM324 integrated circuit contains 4 op-amps, which perform three functions in the circuit:

 

Circuit Modifications

The gain of the filter buffer (Pin 7 output) is +3 and the resistor network reduces the amplitude by a factor of ten and scales the offset voltage to make it compatible with the triangle wave generator to generate the 3% to 12% duty ratio as required by your servo motor. Therefore, those three resistors are the only variables one needs to modify to obtain the full gamut of duty ratios.

The pulse rate is selectable by changing only the capacitor that connects from pin 13 to pin 14 of the LM324. Some sources say, do not exceed 50 Hz for proper servo function.

 

Schematic

Here is Ray's original schematic:

Click for full size schematic.

David's Etch1 prototype was exactly as Ray drew it. During testing, he decided on some changes:

Here is David's schematic the Etch2 revision:

Click for full size schematic.

This is one of the Etch2 boards.

David is a perfectionist and wants to fiddle around with it some more, but the current results are good enough to share.

 

Related Pages

Please visit our related pages:

----------

Thank you for visiting. Your comments are welcome.
[back] . . . [paper and pen] . . . [tip jar]

©Copyright 2004 by The Wolfstone Group. All rights reserved. You must read and abide by our terms of service.