Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    150+ Forum Groupie


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

    Re: Has anyone accomplished this?

    How much voltage drop are you looking at? An alternator failure or switch turned off going cross country or just no voltage?

    You would have to write a complete extraction for question U and choose a drop out point for electrical radio failure.

    Rewriting question K or, combining system_busVoltage and the position of the avionics master switch would give you the latter.

    if (system_busVoltage == false) blah blab blank your display;
    Two possibilities.

    1. This line was added for all 'light' switches on the default C172 row of 7 switches which would only move if the 'hard' switch was moved from 'off' to the 'on' position (toggle). eg.
    else if (system_busVoltage == false) {Serial.println(F("C441"));}
    2. If system_busVoltage is false, the gear leds are turned off.
    Set a refresh time for Main board card to reactivate the pause switch and landing gear lights after resetting the Deputy board.

    You are using 7-segment displays. Have you looked at controlling the light output using a separate power supply driven by your voltage extractions into a PWM input switcher?

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

  2. #12
    75+ Posting Member
    Join Date
    Nov 2011
    Location
    UK
    Posts
    77
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Has anyone accomplished this?

    Thanks Hugh,
    I'm not looking for anything too fancy just if the avionics bus voltage reads is equal to 0.

    on an earlier script you helped me with a vertical speed read out. Where if the aircraft is neither climbing or descending the displays are blanked.

    Code:
       case 'c':    //  AP vertical speed set      Count = 0;
          while (Count < 4)
          {
            Digit = "";
            Digit += getChar();
            if (Count == 0)
            {
              if (Digit == "-")
              {
                AP_vs_minus = '-';
              }
              else
              {
                AP_vs_minus = ' ';
              }
              Digit = "";
              Digit += getChar();
            }
            AP_vs_set[Count] = Digit.toInt();
            Count++;
          }
          if ( AP_vs_set[0] == 0 && AP_vs_set[1] == 0 )
          {
            led_Display_1.setChar(0,4, ' ',false);
            led_Display_1.setChar(0,3, ' ',false);
            led_Display_1.setChar(0,2, ' ',false);
            led_Display_1.setChar(0,1, ' ',false);
            led_Display_1.setChar(0,0, ' ',false);
          }
          else
          {
            led_Display_1.setChar(0,4, AP_vs_minus,false);
            led_Display_1.setDigit(0,3, AP_vs_set[0],false);
            led_Display_1.setDigit(0,2, AP_vs_set[1],false);
            led_Display_1.setDigit(0,1, AP_vs_set[2],false);
            led_Display_1.setDigit(0,0, AP_vs_set[3],false);
          }
      }// end of switch
    }// end of OTHER void
    Could this be done in a similar manner?

  3. #13
    150+ Forum Groupie


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

    Re: Has anyone accomplished this?

    That weren't me. And now I know where the
    Digit = "";
    in the middle of the extraction came from. That would work, but you have to include something in all LED display affected extractions. You would have to wait for all extractions to download something before the complete panel goes blank of turns back on. A frequent Link2FS refresh to your cards will do that but will increase the Serial bus traffic.

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

Page 2 of 2 FirstFirst 12