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)
Replies
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.
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