element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
NexGen Flight Simuator NexGen: Fuel Load Indicator: Aftermath!
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 22 Dec 2020 4:56 AM Date Created
  • Views 1577 views
  • Likes 8 likes
  • Comments 2 comments
  • interrupt
  • videos
  • mcp23017
  • nexgeen
  • priority encoder
  • schmitt trigger
  • parker 219-100-001
  • bit shift operator
  • recycleretrofitch
  • fuel load indicator
  • hdsp-2131txv
Related
Recommended

NexGen: Fuel Load Indicator: Aftermath!

phoenixcomm
phoenixcomm
22 Dec 2020
image
These three images are  from  "Embed With Elliot: Debounce Your Noisy Buttons"

Why do I say aftermath? Well to put it simply it might have been a bit of an overreach.  I spent more than a few days trying in vain to get the display board pins identified.  So here are some videos for the Fuel Load Indicator.  First up are the function switches.

image

  

    

    

    

    

     

     

                                                    

                                                                                   

image image
BEFORE RC Circuit

   

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

There is one more board and that is the Signal Conditioner. This is a small board that connects to the switches and the Interface board. The Signal Conditioner is a  simple RC network where, T = C * R, or .001 seconds,  to get rid of the jitter or ringing.

I am using interrupts from the switches provided by an SN74LS147 which is a 7-inputs to BCD outputs that triggers the interrupt. To get the 3-bit outputs (Arduino inputs) into one integer I used the bit shifting:

 

void ISR_swtiches ( ) {   // Get the output from SN74LS148
  vA = 0;
  vB = 0;
  vC = 0;
 
  vA = digitalRead ( A0 );
  vB = digitalRead ( A1 );
  vC = digitalRead ( A2 );
}

int getPEoutput() {       
  int value = 0;
  int retvar;
  // if vA = 1 vB = 0 vC = 1
  // Shift the MSB first
  value = vC << 1;    // 010
  value =+ vB;        // 010
  value <<1;          // 100
  value += vA;        // 101

 

 

The displays IC are a pair of DSP-2131TXV, which are smart devices that is intended to have both an Address-bus and Data-bus that the Arduino does not have. The problem is solved by using an I2C I/O 16-bit expander. The MCP 23017 can be used as two separate 8-bit registers, which become my two buses.

One of the problems that I have is that the Display Board is bolted into the housing. At which point the Interface board plugs into the Display board. The problem is getting them apart (it's a pain). You have to unmount the Display board from the housing. So that means I have to trim the Interface board so that I can get to the four screws in the bottom of the housing.

 

AFTERTHOUGHTS: Having problems with Arduino's CAN implementation. I have decided to sort of roll my own interface based loosely on  CANopen which is a superset of CAN and very closely related to CANaerospace itself. But for testing USB will work fine. I have a crude program on my PC which can send and receive frames.

CANopen-Slave on git

 

 

 


Now here is some WireWrap on the custom interface board.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Componentes on the Interface board.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 4 years ago +1
    Nice try Chirs. I would have gone for a simple LED implementation. It will do the job and look similar, though not exactly like the aircraft indicator. DAB
  • phoenixcomm
    phoenixcomm over 4 years ago in reply to DAB

    DAB

    I and other engineers have a Maxim "Do Not Fix What Isn't Broken!" or KISS,

    Using the MCP 23017 I have 16 bit of IO which can be used as 2x 8-bit banks, hence 8-Bit Data and 8-Bit of Addressing. makes life easy.  image It was the little Display Board that was the Pain in my rear end.

    ~~

    Cris

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Nice try Chirs.

     

    I would have gone for a simple LED implementation.

    It will do the job and look similar, though not exactly like the aircraft indicator.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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