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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
NexGen Flight Simuator NexGen: Fuel Indicator: Wire & Power-up: 1
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 16 Nov 2020 2:25 AM Date Created
  • Views 1092 views
  • Likes 4 likes
  • Comments 3 comments
  • flight simulator
  • nexgen
  • mcp23017
  • i2c
  • arduino mega 2560
  • recycleretrofitch
  • fuel load indicator
Related
Recommended

NexGen: Fuel Indicator: Wire & Power-up: 1

phoenixcomm
phoenixcomm
16 Nov 2020

imageWell, I am working to get the Indicator done today or tomorrow, the slight tremors in my hands make Wire-Wrap a real pain. I will not get to a point where this will be buttoned up, as there will be a lot of jumpers! I also have to trim down the interface board with my Dremel sander as it's not square to the mounted display board and the interconnect mounted on my interface vector board, which I thought was square, to begin with as the Vector board has .1 by .1 hole spacing. Duh? Also when the display board is mounted in place and the interface is plugged together you have to pry them apart, with a small screwdriver.

My wiring plan is per my blog NexGenFuel Indicator Redux v2.  The TI PCF8575 can not be broken into two distinct ports. That is for instance to use port-A for switches(input) and then use port-B for LEDs (output). So my choice was to use the MCP23017 it is a 5-volt device, that allows me to use the I/O expanders ports as two 8-bit ports or one 16-bit port. port-A bits 0 to 4 for the devices' address bus, yellow wires, and port-B bits 0 to 7 for the device data bus, orange wires. The picture on the left does not show either the I2C's SDA, yellow jumper, or SDC, orange jumper, and the MCP23017's I2C address lines, black wires, which I will have grounded which will give my base address of hex.40image

I will also use a separate power supply for the displays as each display will use 300ma or a little more. So that means I need 600ma + the Arduino Mega  Source-Sink is about 800ma. So I will have to power the displays from an outside source. Even though there will be two power supplies I will have ground on the display board connected to the interface board, and to the Arduino Megas ground. The Arduino will also power the display interface board, along with the switches, and their logic.

I have hooked the interface board to the Arduino power and SDA/SDC pins and proceeded to run the  I2C discovery program. FAIL! Let's put it this way everybody who knows me, knows how much I love image the Arduino IDE. I wish it would just DIE! Most of today I had problems getting to the tty ports! This took most of this Sunday the 15th. I had to add myself to the /etc/sudoers file which is only readable, so I ran chmod +w sudoers. Added myself to the file with the same permissions a ROOT, save the file rebooted my PC  the only way I got it to work was to use this command sudo /home/harrison/Arduino-1.8.5/arduino. That worked so I ran the I2C scanner which said: No I2C available.

So I am stoved in. Time for bed. And the world will turn and bring a new day!

~~Cris H

  • Sign in to reply

Top Comments

  • ajcc
    ajcc over 5 years ago in reply to phoenixcomm +2
    Thank you! I'll have to read that blog carefully. I found the blog index and the first of three blogs NexGen: Software Development: arduino sketch & eclipse on Linux. Part 1 , didn't realize it was a long…
  • ajcc
    ajcc over 5 years ago +1
    I don't like the Arduino IDE either. For future projects: The bootloader that's responsible for loading the program into flash lives at the end of memory, so you can use a real compiler ( avr-gcc with…
  • phoenixcomm
    phoenixcomm over 5 years ago +1
    ajcc yes I personaly hate the IDE I wrote a blog about using Eclipse and C workks very nice
  • ajcc
    ajcc over 5 years ago in reply to phoenixcomm

    Thank you! I'll have to read that blog carefully. I found the blog index and the first of three blogs NexGen: Software Development: arduino sketch & eclipse on Linux. Part 1, didn't realize it was a long term project at first glance image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 5 years ago

    ajcc  yes I personaly hate the IDE I wrote a blog about using Eclipse and C workks very nice

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ajcc
    ajcc over 5 years ago

    I don't like the Arduino IDE either. For future projects: The bootloader that's responsible for loading the program into flash lives at the end of memory, so you can use a real compiler (avr-gcc with avr-libc) or assembler (AVRA) with those boards too. avrdude has an arduino programmer type that's used for programming the boards by the Arduino IDE.

     

    If you add yourself to the dialout group you should be able to run the Arduino IDE as a normal user. You can double check if that's the right group with ls -l /dev/ttyACM*

    • 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 © 2026 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