-
05-01-2008 02:32 PM #1300+ Forum Addict
- Join Date
- Feb 2007
- Location
- California, USA
- Posts
- 303
- Thanks
- 15
- Thanked 88 Times in 57 Posts
RC Servos in Simulated Instruments
Steam-gauge style instruments used in hobby flight simulators are generally based on air-core movements, RC servos, or stepping motors. This tutorial is an overview of RC servos.
RC servos are rotary actuators used in the radio controlled car/airplane/boat/robot/etc. hobbies. They come in a variety of sizes, capabilities, and price ranges. A standard-size, standard-performance servo, like the Tower Hobbies TS-53 pictured below, retails for about $10US on line.

RC servos are appealing because they offer conveniently packaged, easily controlled torque. For your $10 you get a little plastic box with wires on one end and an output shaft on the other. Put 5 volts and a control pulse on the wires, and the output shaft will position itself somewhere between 0 and 180 degrees. The shaft turns with enough torque to rotate large flight instrument indicators. Look inside some of the Simkits instruments and you’ll find RC servos.
Look inside an RC servo and you’ll find something that looks like this.

A small electric motor turns an output shaft through a reduction gear train. The servo output shaft will turn slower than the motor, but will have greater torque. The dark gray cylinder on the back end of the output shaft is a position-sensing potentiometer. It’s wired to the invisible electronics on the green circuit board, as is the motor (using invisible wires, of course).
The electronics provides power to the motor depending upon the width of the control pulse and the orientation of the shaft. For example, a pulse width of 1.5 milliseconds commands the electronics to position the shaft near the 90 degree position. If the potentiometer “tells” the electronics the shaft is not at 90 degrees, the electronics spins the motor in the direction needed to properly orient the shaft. Pulse widths vary from 1 to 2 milliseconds to position the shaft position at 0 to 180 degrees, respectively. The servo expects to see a pulse every 50 milliseconds or it will automatically turn to its neutral position.
The neat thing is that you don’t have to worry about what’s going on inside. Remember, an RC servo is just a well behaved box of available torque that does what it’s told.
RC servos are very easy to control, very easy to interface to a PC. If you’re a do-it-yourselfer it’s a two chip exercise to interface one to the serial com port. One chip is a data transceiver, the other is a microcontroller. Actually, a single micro controller can interface a whole crowd of RC servos. It only takes a single output pin from the micro controller for each servo, and some micro controllers have lots of pins. If you prefer to use ready-made electronics, you have several options, Beta innovations (www.betainnovations.com), Open Cockpits (www.opencockpits.com), and Phidgets (www.phidgets.com) among them.
You can buy RC servos at your local hobby shop, but you’ll almost certainly pay less to on line vendor like Tower Hobbies (www.towerhobbies.com), ServoCity (www.servocity.com), and people selling on Ebay. RC servos are generally packaged with one or more removable control horns, the X-shaped piece in the upper most picture. There are a variety of control horns types. Generally one or more of them can be adapted to your project. Sometimes, however, you’ll find yourself contemplating a project that cries out for gearing. If so, you’ll be happy to know that ServoCity also sells gears specifically designed to mount on RC Servos.
RC servos have a designed-in “dead zone”. This reduces power use and wear on the servo by not supplying power to the motor until the input has changed by some minimum amount. The result is that the output shaft tends to move in small discrete steps. This is generally not noticeable, though if you used gears to provide a full 360 degree movement of a long instrument pointer, you probably would.
An RC servo can be used as a single pointer gauge simply by putting a pointer on its shaft. With a few plastic gears (Serv-O-Link www.servolink.com is a great source of gears) and some hobby brass tubing, you can easily make a dual pointer gauge. Of course, one of the great strengths of RC servos is, well, their strength. They produce a lot of torque, so you aren’t limited to pointer style instruments. You can make complex instruments like turn coordinators,


and artificial horizons.

-
-
05-01-2008 02:57 PM #22000+ Poster - Never Leaves the Sim
- Join Date
- Oct 2005
- Location
- Holley, New York U.S.A.
- Posts
- 1,980
- Thanks
- 5
- Thanked 33 Times in 25 Posts
Mike... Thank you for your tutorials! I am loving them!
Bob Reed
-
05-01-2008 06:08 PM #3MyCockpit Support Staff
- Join Date
- Oct 2005
- Location
- El Salvador
- Posts
- 764
- Thanks
- 18
- Thanked 92 Times in 39 Posts
Wow Mike inspiring!! What you use to connect the servo´s to FS?? I mean what software for the interface?
REGARDS,
Roberto
-
05-01-2008 06:57 PM #4300+ Forum Addict
- Join Date
- Feb 2007
- Location
- California, USA
- Posts
- 303
- Thanks
- 15
- Thanked 88 Times in 57 Posts
Roberto, Bob,
Thank you.
I believe the commercially available interface boards come with software.
If you roll your own interface you can write "fairly simple" code using the express editions of visual studio (Visual Basic, Visual C++, Visual C#) from Microsoft at http://www.microsoft.com/express/product/default.aspx. The express editions are free! The Microsoft article "Serial Communications in Win32" at http://msdn.microsoft.com/en-us/library/ms810467.aspx explains how to access the serial port. And on the FSX end you can use SimConnect. All the documentation is included in the SimConnect SDK on the FSX installation DVD.
I've written a few chunks of demo interface code which will be published in an upcoming book. Hopefully I'll get it in print before the whole concept of personal computers becomes obsolete.
-
05-02-2008 09:15 AM #5




