Why Pixhawk reports a Battery 1 unhealthy error
Pixhawk won't ARM and the screen says PreArm Battery 1 unhealthy. The message comes from two separate code paths, and the voltage field tells you which one.
The battery is plugged in, the wires are in place, and the voltage looks right on the Mission Planner screen. You flip the transmitter switch and the drone won't ARM. There is a red line at the top of the screen, and every time it says the battery is unhealthy.
Most people read this line wrong. Because the word battery is in it, they charge the pack first, then try another pack, then measure the cell voltages one by one. None of it helps, because the message has nothing to do with how full the battery is.
What the autopilot is saying here is this: I can't read the battery monitor. How many volts the pack has is a separate question, and we haven't even gotten to it yet.
One message, two different causes
There isn't a single check that prints this message. There are two. Both print exactly the same string, and you can't tell from the screen which one is speaking.
The first runs in the driver layer. When the autopilot boots, it decides which type of battery monitor to use and sets up that driver. If the driver was never set up, or the driver that was set up differs from the currently configured type, the check stops before it looks at any measurement.
The second runs in the measurement layer. The driver is set up and running, but no valid reading comes back. The wire is broken, the pin is wrong, or the address doesn't match.
Which path the voltage field points to
The practical way to tell the two paths apart is to read the voltage field, not the message.
If the voltage shows 0.00 V, no data is arriving on the line at all. That is the measurement side, and the fix is in the wiring and the parameters. If the voltage looks right but the message persists, you are on the configuration side. In that case, the last setting you changed usually hasn't taken effect yet.
Look at the dark boxes in the figure: the number in the voltage field tells you which path is behind the same red line.
The same message, three different paths depending on the voltage field
The step people skip most often
The setting that determines the battery monitor type doesn't take effect immediately when you change it. The autopilot sets up that driver only at boot. When you change the setting, the parameter updates instantly, but the running driver is still the old one.
The check keeps failing until this gap closes, and the only thing that closes it is rebooting the autopilot. Refreshing the parameters after changing the setting isn't enough. Refreshing only updates the ground control station's screen, while the driver inside the autopilot keeps running with the old type.
If the autopilot booted with battery monitor type 4, and you change it to type 3 and try to ARM without rebooting, you get the following even if the pack shows 12.60 V:
BATT_MONITOR (at startup) = 4.0
BATT_MONITOR (runtime set) = 3.0
PreArm: Battery 1 unhealthy
PreArm: Battery 1 unhealthy
Arm: Battery 1 unhealthyThe battery is perfectly fine and the message still appears. The prefix difference on the last line has an explanation too: the same check is written with a different prefix the moment you press the ARM button.
To tell which side you're on, read the BATT_MONITOR value on the parameter screen. Then reboot the autopilot and read the same value again. If the value is the same but the error disappears, the problem was in the configuration. In the parameter list, this setting has "Reboot required after change" next to it.
Example: Half an hour before your flight slot, you swapped the power module for a spare in the pit area and entered the battery monitor type for the new module. The voltage field shows 12.60 V, and when you flip the switch, the red line is still there. Before you start swapping packs, take the middle path in the figure: read the BATT_MONITOR value, reboot the autopilot, and read the same value once more. If the message disappears, the problem was on the configuration side and the packs never came into it.
The most common mistake: changing the battery monitor type and trying to ARM without rebooting. Because the value on the screen looks right, people assume the setting has taken effect.
Checking order on the measurement side
If the driver is running, the measurement layer runs the following checks from top to bottom and stops at the first one that matches. Each one has different text on the screen:
- The reading is invalid: unhealthy
- The pack is below the minimum voltage set for ARM: below minimum arming voltage
- The pack is below the minimum capacity set for ARM: below minimum arming capacity
- The critical voltage failsafe has triggered: critical voltage failsafe
- The low voltage failsafe has triggered: low voltage failsafe
The message you see on screen is the problem that matches highest in the list. When you fix it, the one below it may show up. The order is as written in AP_BattMonitor_Backend.cpp on the ArduPilot master branch.
Where the thresholds live
Once you get past this message, the voltage thresholds come next. Some of the thresholds are off in a default setup, and it's easy not to notice that they're off.
If the voltage stays below the BATT_LOW_VOLT value for 10 seconds, the action selected in BATT_FS_LOW_ACT runs. Also check the BATT_CRT_VOLT and BATT_ARM_VOLT values on the parameter screen. If they show 0, those two checks never run.
Every threshold set to zero is disabled. If you leave the low voltage limit at zero, the autopilot won't stop you at low voltage. If the ARM voltage is zero, you can ARM with a half-empty pack.
Error Messages and Their Meanings
The strings below are written exactly this way in the ArduPilot source. Reading the on-screen text in full, without shortening it, is the shortest way to the right parameter.
PreArm: Battery 1 unhealthy
The battery monitor can't be read. Either the driver couldn't be set up, the configured type differs from the running type, or the driver isn't returning a valid reading. If the voltage field is 0.00 V, look at the measurement line; if it looks right, look at rebooting.
PreArm: Battery 1 below minimum arming voltage
The measurement comes in healthy, but the pack is below the minimum voltage set for ARM. Replace the pack or adjust the threshold for your pack.
PreArm: Battery 1 low voltage failsafe
The low voltage failsafe threshold has been crossed. This message tells you the pack really is low. Don't confuse it with the previous one; the two look at different thresholds.
PreArm: Battery 1 voltage failsafe critical >= low
The thresholds are set up backwards. The critical voltage is written greater than or equal to the low voltage. The autopilot doesn't accept this order, because the critical level must always be lower.
What changes in the field
On your own board, the most common cause of this message is the measurement side.
The analog channel numbers that the voltage and current lines connect to vary from board to board, and when the autopilot reads the wrong channel, the voltage shows zero. With digital power modules, a wrong address produces the same result. Different voltage versions of the same model need different addresses.
So the wire may be connected correctly and the message can still persist. Before you unplug the cable over and over, check whether the channel numbers your board expects match what's written in the settings.
If you want to learn this topic from start to finish
Instead of reading PreArm messages one by one, building the chain from sensors to flight in order gets you there much faster. The Basic Drone Course: From Sensors to Flight covers autopilot setup, calibration steps, and diagnosing ARM problems from the ground up. The lesson that continues the topic of this article has also been added to the troubleshooting section of that course.
You can browse the other courses in the Softivation course list.
Was this article helpful?
Learn this topic from start to finish
Season plan: all six courses for 9 months, ₺790 a month. ₺390 a month for high school and university students, ₺351 the first month with your member code. You can stop in any month you like. Start the Season plan · I'm a student