Servo Switch code

I'm looking at the Servo Switch in the DIY Drones store (https://store.diydrones.com/ServoSwitch_V10_p/br-0007-01.htm ) and I notice that "firmware" ZIP contains only one C file, Fail_Safe.c. The source seems to mention MUXs and controlling Megas and other stuff that is relevant to failsafes but confuses me in the context of a servo switch.    Can someone clarify?

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

Join diydrones

Email me when people reply –

Replies

  • Moderator

    I'm not very familure with the code, but I believe most of that is in there to support handling failure cases, to ensure the relay does not get left "on" during certain failure conditions. I suspect some of the code was borrowed from previous work, since this hardware is most useful for APM2 users. One of several differences between APM1 and APM2 is APM2 does not include this relay onboard. 

    You want some kind of watchdog and failure handling in case things go haywire. You don't want to keep the relay "on" if it is used for heavy draw components like an LED strip, or if it were used as part of a camera trigger w/ transistors or directly wired to a circuit when you lose RX signal. At least, I think that is the idea. Someone else can confirm when they see your message. 

This reply was deleted.

Activity

Liam left a comment on Agricultural UAVs
"Hi
I'm Liam from T-MOTOR. I would like to reach out to see if there is any possibility for us to work together.
We are a propulsion system manufacturer who offers motors, propellers and ESCs for all kinds of drone applications which vary from secur…"
Jun 30
Richard Cox left a comment on Australia
"Anyone in the DIYDRONES Australian subgroup based in Alice Springs, NT?
I am experimenting with Ardupilot (standard Arduplane), Pixhawk 4 FC in a 4-ch
RC "AXN Floater Jet" foamy plane..."
Jun 29
Omar Sykes left a comment on Australia
"Hi everyone, I am looking for someone who is good at drone building, repair and software in Adelaide. Please give me a call on 0477 319 219."
Jun 29
More…