Remote status LEDs

Having status LED's on the board is nice, but they're next to useless when the board is mounted in the stack or under a cover. The next rev of the board IMO should be designed so that these LED's can be mounted remotely. A simple pin header could either be jumpered to use the on-board LEDs or used as a connector for remote LEDs. At a minimum, the user needs to see the arm/disarm LED and the GPS lock LED.

Thoughts?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • As a bulder of a HK HAL frame based quad with APM Mega 2.5, I have a problem of not easily being able to observe the GPS locked or ARM/DISARMED leds when flying.

    Having no clue how to do any adru code changes, it is way out of my capability to make code changes to enable Leds as R_Lefebvre suggested. 

    Is there no easy way to connect 2 or 3 LEDS to the 2.5 hardware? 

    Thanks for patience.  I have searched threads for hours and this is closest one to my issue/desire that I found. 

  • Here's what you need to know in the code.  Long story short, you can plug small external LED's into the board, set LED_Mode to 107.

    /////////////////////////////////////////////////////////////////////////////////////////////
    // Copter LEDS by Robert Lefebvre
    // Based on the work of U4eake, Bill Sanford, Max Levine, and Oliver
    // g.copter_leds_mode controls the copter leds function via bitmath
    // Zeroeth bit turns motor leds on and off: 00000001
    // First bit turns GPS function on and off: 00000010
    // Second bit turns Aux function on and off: 00000100
    // Third bit turns on Beeper (legacy Piezo) function: 00001000
    // Fourth bit toggles between Fast Flash or Oscillate on Low Battery: 00010000 (0) does Fast Flash, (1) does Oscillate
    // Fifth bit causes motor LEDs to Nav Blink: 00100000
    // Sixth bit causes GPS LEDs to Nav Blink: 01000000
    // This code is written in order to be backwards compatible with the old Motor_LEDS code
    // I hope to include at least some of the Show_LEDS code in the future
    // copter_leds_GPS_blink controls the blinking of the GPS LEDS
    // copter_leds_motor_blink controls the blinking of the motor LEDS
    // Piezo Code and beeps once on Startup to verify operation
    // Piezo Enables Tone on reaching low battery or current alert
    /////////////////////////////////////////////////////////////////////////////////////////////

    And:

    ////////////////////////////////////////////////////////////////////////////////
    // CopterLEDs
    //

    #ifndef COPTER_LEDS
    #define COPTER_LEDS ENABLED
    #endif

    #define COPTER_LED_ON HIGH
    #define COPTER_LED_OFF LOW

    #if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
    #define COPTER_LED_1 AN4 // Motor or Aux LED
    #define COPTER_LED_2 AN5 // Motor LED or Beeper
    #define COPTER_LED_3 AN6 // Motor or GPS LED
    #define COPTER_LED_4 AN7 // Motor LED
    #define COPTER_LED_5 AN8 // Motor LED
    #define COPTER_LED_6 AN9 // Motor LED
    #define COPTER_LED_7 AN10 // Motor LED
    #define COPTER_LED_8 AN11 // Motor LED
    #elif CONFIG_APM_HARDWARE == APM_HARDWARE_APM1
    #define COPTER_LED_1 AN8 // Motor or Aux LED
    #define COPTER_LED_2 AN9 // Motor LED
    #define COPTER_LED_3 AN10 // Motor or GPS LED
    #define COPTER_LED_4 AN11 // Motor LED
    #define COPTER_LED_5 AN12 // Motor LED
    #define COPTER_LED_6 AN13 // Motor LED
    #define COPTER_LED_7 AN14 // Motor LED
    #define COPTER_LED_8 AN15 // Motor LED
    #endif


    //////////////////////////////////////////////////////////////////////////////

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…