Results 1 to 4 of 4
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Aug 2016
    Location
    Wales
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Arduino I/O problem

    I need some help.



    I am trying to set up an fsx radio using Jim's Link2fs Multi Radio Panel project and I'm stumped.
    The only changes I have made to Jim's code is to change the LCD to an I2C bus I am connecting the display as in Jim's diagram using Pins
    14-20 for com 1/2, Nav 1/2, ADF, DME and xponder. All pins are high at around 4.85v.


    I have connected a 12x1 rotary switch to pins 14-20 and everything works except xponder. Switching past DME gave nothing but a blank screen,
    however I eventually noticed (after changing the switch as suspected faulty, even though it was ok continuity wise) that xponder flashed
    briefly on switching back to DME. Long story short xponder only works when pin 20 goes high after you move the switch. with only the screen
    connected I can earth pin 20 and xponder shows only when disconnecting the earth. Thinking there was a problem with pin 20 I changed to pin 21
    with the same result. I am confused. Any ideas? It's probably blindingly obvious but not to me!


    Thanks in advance


    Dave
    Attached Files Attached Files

  2. #2
    150+ Forum Groupie


    BushPilotWannabe's Avatar
    Join Date
    Jan 2014
    Location
    Alberta, Canada
    Posts
    167
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino I/O problem

    Arduino MEGA uses pins 20 and 21 for I2C SDA and SCL. Move your dme and xponder to unassigned pins.

    Hugh
    ---CYXD ----- TWR --- GND ------ Closed
    ILS-- NDB -- 119.1 -- 121.9 ---- 11/2013

  3. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Aug 2016
    Location
    Wales
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino I/O problem

    Hi Hugh,

    Yeah, like I said...blindingly obvious.

    I did see that but assumed that it was ok as I was copying Jim's diagram for the Mega. I am away for a couple of days but will change them when I get back. Thanks for the input.

    Dave

  4. #4
    150+ Forum Groupie


    BushPilotWannabe's Avatar
    Join Date
    Jan 2014
    Location
    Alberta, Canada
    Posts
    167
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino I/O problem

    Coding if (a=b) ....... is blindingly obvious.
    Libraries can sneak up on you.
    A misplaced '}' can drive you crazy. Add code to correct the situation and sometime later it raises its ugly head when the line containing the errant '}' is deleted or commented out.

    Hugh
    ---CYXD ----- TWR --- GND ------ Closed
    ILS-- NDB -- 119.1 -- 121.9 ---- 11/2013