Battery voltage percentage question

Hi guys,

I've got a quick question about the battery voltage percentage shown on the HUD of the APM mission planner. My setup is to measure the total pack voltage (option 3) via the onboard ADCs (not using the Attopilot sensors) and the voltage readout is correct. The percentage reading, however, seems to read 100% constantly, even as the battery voltage reduces. Does anyone know how to get this display to function correctly? I assume that I need to set a maximum and minimum pack voltage to let enable it to figure out the percentage but I can't see an option for this anywhere?

Cheers,

Owen

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

Join diydrones

Email me when people reply –

Replies

  • You need to use BATTERY_MONITOR mode 4 if you want to track battery usage. Definition of the values for BATTERY_MONITOR are as follows: 

    0 to disable battery monitoring,

    1 to measure cell voltages for a 3 cell lipo,

    2 to measure cell voltages for a 4 cell lipo,

    3 to measure the total battery voltage (only) on input 1

    4 to measure total battery voltage on input 1 and current on input 2.

     

    BATT_CAPACITY should be set to your battery capacity in mAh. I set mine to a lower value so that even if I hit 0% I am not in danger of damaging the battery, but this is up to you.

     

    Once setup it counts down based on the signal from the current sensor. 

  • My guess is that the battery percentage readout is decremented when you have a current sensor connected. Then it can count down based on the battery capacity that you've configured.

    All the attopilot sensor does is apply a voltage to the analogue input proportional to the current it senses.

  • The % is for xbee/mavlink connection strength.  The farther my copters go from my laptop, which has xbee to mission planner, that number drops.

  • 100KM

    I have noticed the same problem.  Also using total pack voltage (option 3) and onboard adc's

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @_JonMyer: 🚨Attention DeepRacer's including #UndergroundDeepRacer🚨 Check our our LIVE stream that including @IAM_dbro Take a few moments…
Aug 5
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Aug 3
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars @donkey_car virtual AI car race is starting in 15 minutes! Watch it live on Twitch https://www.twitch.tv/mossmann3333 htt…
Aug 1
DIY Robocars via Twitter
RT @chr1sa: Don't miss our monthly @DIYRobocars @donkey_car virtual AI car race tomorrow at 10:00am PT live on Twitch. Head-to-head racing…
Jul 31
DIY Robocars via Twitter
RT @sparkfun: Our completed tutorial on building an @NVIDIA Jetson Nano-powered @Sphero RVR gets your bot up and running via teleoperation…
Jul 30
DIY Robocars via Twitter
RT @SmallpixelCar: Freeway test https://t.co/4V5tV9lhIP
Jul 29
DIY Robocars via Twitter
Very small autonomous cars racing, thanks to an overhead camera: https://control.ee.ethz.ch/research/team-projects/autonomous-rc-car-racing.html
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
RT @chr1sa: Don't miss our virtual AI car race this Saturday! Real developers + virtual cars =🏎️🏎️🏎️ Head-to-head battles with thrills, sp…
Jul 28
DIY Robocars via Twitter
Jul 27
DIY Robocars via Twitter
RT @usashirou1: Jetson nano by Isaac Kaya #jetson https://t.co/Mu1N0CyQkN
Jul 23
DIY Robocars via Twitter
RT @GPUsolution: JetRacer mady by Iflytek company #JetsonNANO #Nvidia https://t.co/MimTymIwge
Jul 23
DIY Robocars via Twitter
RT @openmvcam: I love this: Mega or Mini? Image Classification on the 1MB OpenMV Cam H7 by Ish Ot Jr. in OpenMV, Edge Impulse, Internet of…
Jul 23
More…