I’m currently setting up a 1S build and have a reading coming into qGroundControl showing the current battery voltage.
PX4 and QGroundControl are set up to use a 1S battery (4.2V to 3.5V).
If I use a power supply through the self-built voltage divider at a higher voltage to get the voltage reading out to QGroundControl - I can get it to show the voltage. The scaling has also been amended to give the right result.
However - I cannot seem to get QGroundControl to register any voltage under about 5.5V.
With this being a 1S build we need to monitor voltages lower than that.
Anyone have any ideas on where I may have gone wrong here?
So I assume this is with PX4 v1.13? And you adjusted the params to BAT1_V_DIV, etc.?
I appreciate the response.
Yes BAT1_V_DIV is correct - and we’ve shown that it’s working correctly using the calculations at lower voltage.
And yes - it’s PX4 V1.13.
Seemingly just anything under 2S voltages it just doesn’t register - very strange.
I’ve gone down as many rabbit holes as I can and just can’t seem to get it to recognise the 1S battery correctly.
Any ideas on other params to look at would be appreciated!
Ok, that sounds like a bug then. I can recommend to create an issue on GitHub, or debug the code and find where it goes wrong.
I’m having a hunch this might actually be down to QGroundControl itself because it quite excitedly reports “Avionics power low” when the autopilot’s voltage is dipping somewhat below 5v so it might expect 5v min at all times and not even consider anything below.
Is the vehicle powering up and are the motors spinning?
What flight controller are you using.
Thanks @JulianOes @Christian-Born for your help.
Yes it’s powering up and the motors are spinning - I think there might be some more configuration issues there - but this applies even just with QGroundControl active and connected to the UAV.
I’m using a mRo Control Zero H7 FC.
Voltage divider has been tested a load of times and is reporting the correct voltages at the supplied multiplier, which we’ve tested multiple times.
If we use that same voltage divider and use double the value, we get double what the actual voltage is reported in QGroundControl - but as soon as that voltage drops below around 5.5V or so, QGroundControl stops reporting it.