Relay or making one pin 5v on 2.5 Ardupilot

Hi,

I need to switch led On/OF form autopilot, in every 5 min (without radio).

If i managed to change code(arduplane 2,65)  to make: relay_on() relay_off() every 5 min , then what PIN dose that correspond to?


Or how can i make costum PIN output? (for relay, or optron)

 

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    One way would be to use jD-IOBoard that already supports MAVLink to driver relays and other things. I think I will make driving relays optional on next firmware for it. IOBoard have full support for ArduCopter and MAVLink protocol. 

    jD-IOBoard v1.0, MCU controlled IO Board for driving LEDs, Relays, Servos
    R/C UAV and ArduCopter manufacturer and one stop shop. We make your FPV come true.
  • You can easily change that 3 functions to alter the pin of your choice. Then just upload your custom firmware to APM.
  • Hello Mell,

    I found this in the system.pde:

    #if CONFIG_RELAY == ENABLED
        DDRL |= B00000100;     // Set Port L, pin 2 to output for the relay
    #endif

    This is Digital pin 47

    In the Eagle files I could find any connection to this pin !

    I'm afraid this connection is cancelled on the APM2 and APM2.5 boards !

    I think it's easier and more safe to use a Arduino Nano board or similar.

    Nano V3.0 board

This reply was deleted.

Activity