Wednesday 1 February 2017

H501S - FAILSAFES



There are multiple failsafe mechanisms built into the H501S, and there is much misunderstanding of how they work and when they are invoked.
In this article I'll have a look at each failsafe and attempt to describe the mechanism that triggers them and what actually happens once invoked.
Failsafes are obviously there to protect your craft against loss or damage and also to reduce the risks to people and property in the vicinity. Whilst no failsafe is perfect, and at times it may be better not to be there, the majority of times it mitigates what could turn out to be potentially dangerous or expensive situation. 


1. Loss of control signal (LOS) (2.4Ghz).

This is the obvious one at the top of the list. What happens if you lose control signal?
When control signal drops below a useable level, the Quad automatically failsafes to RTH. 
This will be noticeable when flying on the edge of your control range. The quad stops, orientates itself heading away from you, and starts to return backwards. If the quad is lower than 10m it will first rise quickly to that height.
On recovery of the control signal, as it gets closer, it drops back into whichever flying mode it was previously in and is commanded once again from the controller (you!). This can have the impression that it is having a mind of it's own and not really responding to your commands (which it is for some of the time).
RTH is an autonomous mode. Once it is invoked you have no control over the quad until the autopilot relinquishes control.

Loss of control signal will also occur due to 2.4 GHz interference and loss of controller power. Loss of controller power is easy to test and should be checked form time to time during preflight checks. Just turn the controller off. The quad will enter RTH mode and perform a full RTH procedure.

Once the motors are armed loss of signal (for whatever reason) will NORMALLY invoke RTH. This is regardless (except in a couple of special scenarios - see later) of flight mode which can be GPS, ALT HOLD or MAN.
A word of CAUTION.
If you arm the motors, leaving the quad sitting on the ground, and then kill the Controller power, the quad will enter RTH. The first part of RTH is always to rise to 10m if it is lower. The quad will therefore immediately take off. If it had a good GPS lock it will just fly overhead and then slowly descend. If it didn't have good position lock it will just fly off in a random direction to wherever it thinks home might be!
Always treat an armed quad with the respect it deserves.
Here's a sample of what can happen with an armed quad.

2. Low Voltage (LVF) (Quad Flight Battery)

When the flight battery voltage falls to 7V the Controller displays a red "battery bar" and the rear lights on the quad begin to flash Red in unison.
This is an indication that it's time to consider getting home and landing. The red bar is a little  inaccurate because it uses a smoothing algorithm and therefore suffers from latency. It has a hard job coping with the voltage sag of the 10C battery and so will initially flash on and off in unison with the quad power requirements and the sagging terminal voltage.
At 6.8v the LEDs will stay permanently on. This is the final warning that you are approaching LV cutoff (LVC)
At this point the quad will quickly start to lose power and subsequently altitude. More throttle will be required to keep it aloft. You need to land quickly.
If the quad has not landed by LVC, [6.4v] the quad disarms the motors and landing is rapid 😱
Flying to LVC is not recommended! If you're a long way from home you'll have to go and search for the quad, and it ultimately leads to a reduction in battery capacity, longevity, along with potentially dangerous cell heating.

3. Manual Mode Failsafe (MMFS)

This is an undocumented feature, that took sometime to understand and get a response from Hubsan as to its intended purpose.
This occurs when the quad continues to gain altitude (or the atmospheric pressure drops) whilst the operator is commanding it to descend and applying full down throttle. MMFS places the Flight Controller into manual mode as indicated on the controller display.



This normally also causes the quad to momentarily pitch or yaw wildly at the instant the failsafe is invoked.
This failsafe is not the same as manual mode that you would select from the controller. In MMFS, even with a centred throttle stick, the quad will descend quite rapidly. You will need to apply full throttle to keep the quad in the air and even then it will probably not be enough (as I've found from bitter experience). It is NOT equivalent of flying in Manual Mode.
MMFS overrides LOS FS. Killing the controller power will NOT invoke RTH. It is more akin to the final stages of LVF.
The only way to recover form MMFS is to reboot the quad. There is no mechanism to re-enter GPS or barometric assisted modes.
This failsafe can take people by surprise, so it's critical that you should be aware of its existence and plan for how you will respond should it occur.
You can also try to mitigate against it ever happening in a couple of ways.
It will most often occur if you fly aggressively in Alt Hold or Manual mode and like sporty flying.
For instance flying fast with a lot of pitch and entering a sharp turn or letting go of the elevator, will cause a rapid rise in altitude. The natural reaction is to pull back sharply on the throttle to to kill the ascent. This is the exact scenario which invokes MMFS.




This can be countered by either resisting the pull back instinct, or by simply adding a physical interlock to the throttle stick to prevent minimum throttle. This can be achieved with a simple rubber band or a piece of sleeving, (see video below)
The second most common occurrence is when the quad gets caught in rapidly rising air, or a pressure drop occurs within the quad due to the venturi effect created by the airflow over the barometer.
The indications of this are a rapidly ascending quad which does not appear to respond to throttle reduction. The safest option to prevent MMFS is to just leave the quad alone and engage RTH.
If you do try to fight it down and it enters MM, you'll need to maintain high levels of throttle as the descent can be quite rapid and it you'll also have to claw it back against any wind. You will also be without any GPS assistance, a good reason to practice flying in Manual mode to ensure you can handle these unexpected scenarios.
Whilst this is not a common failsafe, it does occur with some regularity and is a common subject for discussion on online forums.
At least if you are aware of it you can be prepared to take action as soon as it triggers πŸ˜„



4. Loss of GPS Lock

This Failsafe only occurs in conjunction with LOS FS.
Really the entry in the manual says all that is required!
If whilst in RTH, GPS lock is lost for more than 20 seconds, the quad automatically descends in a similar fashion to LVC.

This is an extraordinarily difficult failsafe to test (unlike the others above), so I have no first hand knowledge of it. At some time in the future I will modify the onboard GPS so that it can be switched off remotely to check the full functionality. Until then we only have the manual and a small number of reports of this happening. It's unlikely to occur in normal everyday use, unless you fly in areas prone to poor GPS reception (among high rise buildings, deep gorges, amongst trees) or there are active GPS jammers (eg government, security or military establishments).

5. Motor Disarm

The motors automatically disarm if the angle of pitch or roll exceeds 90ΒΊ for greater than 5secs.
This was introduced in FC1.1.22 and remains a feature in all subsequent revisions.
This failsafe is to prevent motor/ESC burn out should the quad crash and land upside down on its props. The 5 sec delay also allows the execution of loops and extreme angles of P&R during normal flight without disarming ( a feature that happened in the earlier FC1.1.21).
The disarm feature is particularly useful when hand recovering your quad. You can just tilt the quad 90ΒΊ and the motors disarm without any other action. More recent firmware incorporated the disarm by holding the throttle low, but the disarm by tilting, is still probably the most useful additional feature in the last 2 years.

6. Controller Low Voltage

This is a controller low voltage failsafe.
This is invoked when the controller reaches its failsafe voltage.
This is to enable the pilot time to complete their flight and land safely.
Failure to do so, within the failsafe period, will cause the controller to lose all power.
The quad will then enter LOS FS (as above)
Each controller has different failsafe voltages, and they are also dependant on the battery chemistry in use!  [See Controller Batteries.]
The purpose of the failsafe is to remove the heavy current usage devices within the controller, namely the FPV display and VRX. The normal current requirement of the controller (H901A) is ~550mA.
By switching off the monitor and VRX this reduces to ~90mA. This allows plenty of time to complete your flight with full control with the remaining battery capacity. Obviusly there is no access to FPV or telemetry dat so you must fly LOS.
The failsafe is indicated by the power LED flashing RED alongside the shutdown of the display.



The controller remains in full operation until the battery can no longer operate it. You can fly as normal (I've flown for over 10 minutes and then given up through boredom) until the controller dies.
This is important to know. Just because you have no display does not mean you have lost control. The quad will happily respond to any command given and will respond to an operator invoked RTH from the controller.
Obviously when the controller dies completely (RED flashing LED goes out) the quad will RTH under normal control loss FS.



Monday 2 January 2017

RTH Switch modification for H901A

By default, the RTH switch on the H901A controller does not work as one would expect.
Normally a switch to invoke an emergency function (RTH) should not be dependant on other switch settings. On the rare occasions that I want to use RTH,, i normally need it straight away, not after fumbling around ensuring I'm in GPS mode.
I rarely fly in GPS mode, so flipping one switch is much easier in my opinion, than flicking two!

I know it's a simple enough thing to do, but I hate seeing things that make no sense, so I've modified my RTH switch to work the way "I think it should" 😜

Hopefully the pictures and video are self explanatory, Sorry about the video but I couldn't be assed to script it and it's just bumbling nonsense 

Obviously do this at your own risk.
It works OK on mine but no liability accepted if anything goes wrong.

E&OE

Schematic


View of controller

RTH Switch wiring

"MODE" Switch Wiring




Sunday 1 January 2017

Controller Batteries (H901A)

The standard controller (H901A) is designed to run off EITHER 4xAA cells (NiMH or Alkaline) OR 2s LiPo.
Approximate voltage readings
The controller firmware is specifically set to recognise which battery pack you have installed. (more in a minute)
Secondly, ALL the controller electronics runs off 3.3v. The voltage regulation is done by the ubiquitous ACT4060A DC/DC converter.
 As long as you can provide above 4v at about 550mA it matters not a hoot what the battery voltage is. It makes no difference to the control, telemetry , or FPV reception, all which run on 3.3v

Operation

When you install a battery pack and power on, the controller decides which type of battery you have installed.

  • If it's between 8.4v and 6.5v it assumes it's a 2S LiPo
  • If it's between 6v and 4v it assumes it's 4xAA. 
Why?
Well because it calibrates the battery bar meter accordingly and,more importantly, sets the Controller failsafe voltage.

For a LiPo battery the bar indicates as follows: (all approx)

Segments   Voltage
     5              7.9
     4              7.8
     3              7.4
     2              7.1
     1              6.7
Failsafe is at 6.3v


For a 4xAA battery configuration, the bar indicates: (all approx)

Segments   Voltage
Battery Voltage
     5              6.0
     4              5.3
     3              4.8
     2              4.6
     1              4.2
Failsafe is at 4.0v

As part of your pre-flight checks, you can quickly read the actual battery voltage by simply powering on the controller whilst depressing the throttle stick.


Failsafe 

Controller failsafe occurs to protect both the battery and allow you time to safely land your quad. Failsafe is indicated by a flashing red power lamp and the switching off of the VRX and the FPV monitor. The Vrx itself draws over 250mA and that with the display account for the majority of the controller power consumption. In failsafe the current drops to ~ 90mA.
The controller is still perfectly functionable, and with the low demand on the battery pack, a full 20 to 30 minutes of flight time is normally easily achieved after failsafe.




WARNING - Putting in or powering up with a depleted LiPo can make the controller think that it is a 4xAA pack. This can cause:

  • irreversible cell damage (FS is now 4v) 
  • probable loss of all control function at FS (because battery is really dead!) 

Other cell Chemistries 

A few people have tried 2S LiFe batteries. These unfortunately, when fully charged, fall in a no man's land between 4XAA and 2S Lipo being approx 6.6v. This means they normally immediately failsafe. If they are slightly depleted, they can appear as 4xAA but the absolute minimum voltage for 2S LiFe is 5v so well above the failsafe cutout. They are not recommended for those reasons.

Battery Types and Capacities 

For comparison, below is the power density (W/h) and approx runtime [0:00] for different battery setups from low to high, that people commonly use.


  • 2s x 500mAh (Lipo) =3.7Wh  [1:15]
  • 2s x 1000mAh (Lipo) = 7.4 Wh  [2:25]
  • 4s x 1300mAh (Alkaline) = 7.8Wh (Duracell or similar) [2:35]
  • 2s x 1500mAh (Lipo) = 11.1Wh [3:40]
  • 4s x 2500mAh (NiMH) = 12Wh (common AA NiMH set up) [4:00]
  • 2s x 2000mAh (Lipo) = 14.8Wh [4:55]
  • 2s x 2500mAh (Lipo) = 18.5Wh [6:10]
  • 2s x 2700mAh (Lipo) = 20Wh (Stock H501S Flight battery) [6:40]


I tested a set of 4x2150mAh batteries from full charge to the point of failsafe, then to the point of failure at which point the 501 would auto RTH because of loss of signal.
The cells I normally use are only 2150mAh low discharge. I do have other 2900mAh, but I don't have the patience to test them in the same way :-)
Anyway here's the figures:


  • From full charge to flashing warning icon = 3hrs 8mins 37secs
  • from flashing warning to LV failsafe = 8mins 22secs (3h16m59s)
  • from LV failsafe until loss of control = 36min 6 secs (3h53m05s)


So total run time of 3 hours 53mins and 6 secs.
That gives me 10 flights with capacity to spare.
The 2900s would increase that longer than I'm prepared to test.


As 4x2150mAh cells are approx 10Wh capacity, this equates to 1Wh giving about 20 minutes of run time. The table above indicates in minutes [0:00]  the approx run time using this calculation.

Handy Hint

To make replacing  AA cells super simple, just place a piece of tape around the two visible batteries.



Summary 

There is no disadvantage in using good NiMh cells. Low discharge NiMh (like Eneloop) are excellent and will easily give a couple of hours flying. To gain any extra flight time you really need to go for a 2000 mAh Lipo or better.