Results 1 to 5 of 5
  1. #1
    300+ Forum Addict



    Join Date
    Feb 2007
    Location
    California, USA
    Posts
    406
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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.




  2. Thanks gattg, Padraig, dodiano thanked for this post
  3. #2
    1000+ Poster - Fantastic Contributor Bob Reed's Avatar
    Join Date
    Oct 2005
    Location
    Holley, New York U.S.A.
    Posts
    1,880
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Mike... Thank you for your tutorials! I am loving them!
    Bob Reed

  4. #3
    MyCockpit Support Staff dodiano's Avatar
    Join Date
    Oct 2005
    Location
    El Salvador
    Posts
    992
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Airbus

    Wow Mike inspiring!! What you use to connect the servoīs to FS?? I mean what software for the interface?

    REGARDS,

    Roberto

  5. #4
    300+ Forum Addict



    Join Date
    Feb 2007
    Location
    California, USA
    Posts
    406
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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.

  6. #5
    300+ Forum Addict jmig's Avatar
    Join Date
    Apr 2007
    Location
    Lafayette, LA USA
    Posts
    440
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by Mike.Powell View Post
    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.


    Or I die from old age.
    John

    System:
    ASUS P5Q SE/R
    Intel Q9550 O/C to 3.4 GHz
    4 GB 1066 DDR2 RAM
    300 GB WD 10,000 RPM Raptor SATA Drive
    GeForce 8800 GT 512 KB RAM
    Matrox TH2Go with three 19" Sumsung 940 BX
    IR Track 4

Similar Threads

  1. Pushbutton > USB > Simulated keystroke
    By Even92LN in forum I/O Interfacing and Hardware
    Replies: 8
    Last Post: 07-17-2010, 10:59 AM
  2. Air-Core Movements in Simulated Instruments
    By Mike.Powell in forum Cockpit Building Tutorials
    Replies: 14
    Last Post: 06-18-2008, 09:57 AM
  3. Stepping Motors In Simulated Instruments
    By Mike.Powell in forum Cockpit Building Tutorials
    Replies: 0
    Last Post: 05-03-2008, 03:19 PM
  4. Air-Core Movements in Simulated Instruments
    By Matt Olieman in forum MyCockpit News and Announcements
    Replies: 0
    Last Post: 04-29-2008, 06:31 PM
  5. Simulated EHAM flight with irl 737 captain
    By ekezz in forum MyCockpit Crew Rest (Off topic chat forum)
    Replies: 2
    Last Post: 06-16-2006, 05:57 PM