element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Op Amps in Flight Sim
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 303 subscribers
  • Views 2971 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Op Amps in Flight Sim

EAL727Capt
EAL727Capt over 3 years ago

Good day to all.

Long time lurker and first posting; I truly appreciate your patience.

I have been working on constructing a home cockpit representing a Boeing 727-200 using OEM parts/instruments/indicators/gauges I’ve obtained over the years.

Currently, I’m hard-at-work on interfacing these pieces with X-Plane 11.   I have many, many questions and as a relative newcomer to the world of electronics (which is like learning a new foreign language to me most times) I would appreciate some assistance.

I’m working on a Flight Director Indicator (FDI) and a Horizontal Situation Indicator (HSI) which both provide vertical and horizontal guidance to the pilots.  Luckily, I have the pin out assignments and operation manual for the FDI and am having fun hooking-up wires and seeing the dials slowly turn.  The pitch and roll functions are controlled by synchros and motor-generators via 26VAC/400Hz.  The warning flags are powered by 28VDC.

On the topic of op amps—-

There is a ‘needle’ indicator for the glide slope (which provides a ‘path’ to follow when approaching the runway to land).  This needle indicator is biased from view when the glide slope receiver does not detect a glide slope indication.  When approaching the runway and intercepting the glide slope at a specific altitude, the needle will move slowly move down from its hidden view.  When the needle reaches its centered position, you are on the glide slope and continuously descend to the runway, keeping this needle centered.  
This needle requires very little power, both positive and negative.  Full deflection in either direction (above glide path and below glide path)  is minimal; this indicator is extremely sensitive as it is designed to guide the pilot to the runway in very low visibility conditions—precision is paramount.

Given this, an op amp (based upon the reading and research I’ve done) seems the logical choice for operation.  I have been successful in getting the needle to move from full up to full down by switching the leads for positive and negative power, using extremely low amps from my 28VDC bench power supply.  

From the unit’s manual:

”Meter mechanism sensitivity is 150 +/-20 ua in each direction and is biased from view with 1.5 ma maximum and is in view with 500 ua applied.  Meter resistance is 1000 +/- 30 ohms.”

I will be using a Teensy board which provides power of 3.3VDC with PWM.  I’m not concerned with the coding/sketch to drive this instrument as that has already been established.  

How would I apply Ohm’s Law to drive this needle using various values of resistors/diodes or other components, given the tiny amount of amperage (positive and negative) required?  And then the question of which type of op amp to purchase?  I have done some research on the topic of op amps and am still a little unclear to their full capabilities and/or limitations.   I had seen an op amp board available from SparkFun which looked promising but I wanted to first ask as I see many, many friendly, patient and helpful suggestions and advice here.

I certainly appreciate your input.

Jay

Las Vegas, NV

  • Sign in to reply
  • Cancel

Top Replies

  • scottiebabe
    scottiebabe over 3 years ago in reply to EAL727Capt +4
    Hello, you're quite welcome :) The component values were just a rough guess, I choose 100 ohm resistors assuming you wanted to drive upto +- 1.5 mA through the meter movement. You can always use a larger…
  • scottiebabe
    scottiebabe over 3 years ago +2
    Here is a very simple implementation to get you started: Really neat project, btw!
  • shabaz
    shabaz over 3 years ago in reply to scottiebabe +2
    Just wondering, it may be possible to remove the RC filter, although it depends on the movement. On my limited test on a 100 uA movement ( see here: /products/roadtest/rv/roadtest_reviews/509/sensirion_gastemphum…
Parents
  • scottiebabe
    scottiebabe over 3 years ago

    Here is a very simple implementation to get you started:

    image

    Really neat project, btw!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • EAL727Capt
    EAL727Capt over 3 years ago in reply to scottiebabe

    Thank you so much for this!

    If I’m understanding this correctly, I only need a Teensy (PWM pin), a 10u capacitor, and 3-100 ohm resistors, with 3 grounds to the Teensy board?  The R1 goes to the 3.3V pin on the Teensy board.

    I’m unclear as to what’s inside the box you’ve entitled ‘meter movement.’

    Thank you for the explanation. 

    Jay

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • scottiebabe
    scottiebabe over 3 years ago in reply to EAL727Capt

    Hello, you're quite welcome :) The component values were just a rough guess, I choose 100 ohm resistors assuming you wanted to drive upto +- 1.5 mA through the meter movement. You can always use a larger value for C1, as shown below its role is to filter the PWM signal into a somewhat stable voltage. The meter movement will average out the variations in current too.

    The box meter movement is just a schematic equivalent to what I believe to be in the meter. A coil of wire with a resistance of 1kOhms. You would just attach your meter in place of the box, as M+, M-

    image

    For example here is what a 10 kHz, 40% duty cycle pwm value would result in:

    image

    image

    image

    With a 60% duty cycle the meter current is +287 uA

    image

    If it turns out you only need a 100uA of drive current the resistors could be scaled up so you can use a larger duty cycle range on your PWM output.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 3 years ago in reply to scottiebabe

    Just wondering, it may be possible to remove the RC filter, although it depends on the movement. On my limited test on a 100 uA movement ( see here: /products/roadtest/rv/roadtest_reviews/509/sensirion_gastemphum ) I didn't see any vibrations at 500 Hz PWM rate, so anything higher than that should naturally be filtered out.

    Another possibility could be to use two outputs, and just have the movement and a single resistor in series, connected across the two outputs. The benefit is that on power-up the movement won't swing in any direction, however the code is more complicated since then two PWMs are required (i.e. set one PWM to zero to move the movement in one direction, and set the other PWM to zero to get movement in the other direction). But the method you describe simplifies the software.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • EAL727Capt
    EAL727Capt over 3 years ago in reply to scottiebabe

    I cannot adequately thank you for your interest and replies.  I am grateful.

    Please forgive my complete ignorance on the subject of electronics; as a newcomer, I find it challenging, often overly so, to fully grasp and understand the terminology and nomenclature of components.  What is the ‘1V65’ reference and where is this connected?   The meter, thankfully, only has a positive (red) wire and a negative (black) wire.  I’ve assumed that the MCU is the Teensy board with ‘V1’ being the assigned PWM pin.  

    I'm confident that, in time, I will have a much clearer and better understanding of it all and as it stands presently, I’m a little disoriented in the forest without a flashlight!

    I thank you very kindly for the patience and knowledge.

    Always, 

    Jay

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • scottiebabe
    scottiebabe over 3 years ago in reply to EAL727Capt

    Hello, all questions are good questions. I think you are doing a great job! The 1V65 reference was to illustrate the nominal output of the voltage divider. In the circuit I suggested there are two building block circuits:

    image

    The voltage divider (https://en.wikipedia.org/wiki/Voltage_divider) creates a voltage reference of half the supply rail (3.3/2 = 1.65V).

    The PWM DAC creates a programmable 0 to 3.3V voltage reference based on duty cycle. Then depending on what duty cycle you output from your MCU, the meter movement can see a voltage of +- 1.65 V between M+ and M-. In this case the current through the meter is largely defined by the meters resistance (1kOhm). If it turns out you don't need the capability to drive 1.5 mA of current through the meter the resistors can be scaled up.

    Feel free to ask more questions Slight smile

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • scottiebabe
    scottiebabe over 3 years ago in reply to EAL727Capt

    Hello, all questions are good questions. I think you are doing a great job! The 1V65 reference was to illustrate the nominal output of the voltage divider. In the circuit I suggested there are two building block circuits:

    image

    The voltage divider (https://en.wikipedia.org/wiki/Voltage_divider) creates a voltage reference of half the supply rail (3.3/2 = 1.65V).

    The PWM DAC creates a programmable 0 to 3.3V voltage reference based on duty cycle. Then depending on what duty cycle you output from your MCU, the meter movement can see a voltage of +- 1.65 V between M+ and M-. In this case the current through the meter is largely defined by the meters resistance (1kOhm). If it turns out you don't need the capability to drive 1.5 mA of current through the meter the resistors can be scaled up.

    Feel free to ask more questions Slight smile

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube