APM 2.7 Rover Output Relay

Recently I have bought a HKPilot Mega 2.7 Master set found here http://www.hobbyking.com/hobbyking/stor/__58284__HKPilot_Mega_2_7_Master_Set_With_OSD_LEA_6H_GPS_Power_module_Telemetry_Radio_433Mhz_XT_60_.html

also I bought a Tunigy TGYiA6

http://www.hobbyking.com/hobbyking/store/__62710__Turnigy_TGY_i6_AFHDS_Transmitter_and_6CH_Receiver_Mode_2_.html

I have a use case that I need a way to send ch 7 from the transmitter to turn on and off  one relay on a songle 8ch relay board. Unfortunately according to this link common relays only work with ardupilot copter 

http://ardupilot.org/copter/docs/common-relay.html

I have been able to use the camera trigger pin CAM_TRIGG_TYPE  and RELAY_PIN using APM analog pin 9.

the problem with that is I need the relay to stay on all the time, not just toggle for a few seconds.

I have used RC7_FUNCTION set to 1 to change the PWM of output 7 on the APM and I saw the changes on the status tab of the  Flight Data module in Mission Planner.

I have tried to use DO_SET_RELAY in the flight plan but I do not know if I have set it up correctly. I have tried to use relay 1. the relay did not turn on.

Does anyone have any ideas how I could turn a relay output on and keep it on until I turn it off by ch7 on the RC transmitter?  

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

Join diydrones

Email me when people reply –

Activity