Monitoring a second battery with the APM

Hi all,

I'm currently setting up the Ardupilot on a Skywalker, and as always I will use a separate battery for camera/OSD/VTx. I am flying with a 4S LiPo and am trying to avoid step down converters and filters.

Are there any plans to add monitoring of a second battery to the APM code? I have seen people mention that it will be implemented, but those posts are over 6 months old. I have also looked at the MinimOSD Extra source code and there are lines with "osd_vbat_B" commented out.

It shouldn't be that hard to implement, but if someone else has already started coding it it would be nice to know.

The obvious way to connect a second battery is through a voltage divider to a free analog input port on the APM.

Thanks,

Jonas

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

Join diydrones

Email me when people reply –

Replies

  • Have the Pixhawk @ Plane 3.4.0. How to set it to monitor the second battery and current via MP. It seemed that it works only for one battery. I tried to play with BATT_VOLT_PIN, put the 14 and 15 values and it reads from ADC 6.6 and ADC 3.3, it works, but if to configure the same way the BATT2 parameters - zero in MP. Does the second battery monitoring is implemented at the moment or no?

  • Guys, I'm having the following situation:

    I have separate FPV 2S battery and I want it to be monitored. 

    I made voltage divider (1:10 with 1.2kOhm resistor as minor) which gives me in result 0.88V divided voltage.

    I connect it to A1 pin (A0 is used for RSSI) of analog input pins (tried also pins 2,3 and 7), set BATT_VOLT2_PIN to 1 (also tried playing around with values). 

    Set BATT_VOLT2_MULTIPLIER (something like it) to 10. 

    MP shows me Bat2: 0

    NOTICE: I _DO_ have APM Power Module connected and in use.

    What should I do to get things moving?

    Board: APM 2.6

    Firmware: 3.2

    Type: Copter

  • Is anyone able to display the second battery voltage in an OSD? I see the BATT_VOLT2_PIN and BATT_VOL2_MULT in mission planner (and configured it), but I failed to display it in my minimosd-extra.

    Any ideas?

    • Yes sir
    • Well, I'm back.
      Ive been sick a few times and distracted by my new 3d printer.
      Last time i looked at this i had my first attempt at displaying the 2nd battery voltage compiled. I had problems with character sets following that and got discouraged and distracted.
      I will attempt another go at it this weekend.
      of course if the more knowledgable minimosd coders want to take a stab then im more than happy to bow out.
      Incidently i did need to remove some functionality (rose) in order to provide more code space.
      i did decide on the cheap frsky voltage divider board to make things simple. I connected it to two pins on the pixhawk. (Ill have to check which ones when i get home).
    • Noone has modified minimOSD yet to display it.

      I asked one of the developers a week ago, with no response yet.

       

      I may just do it myself next week since the feature is mandatory for my FPV conquests.

       

      I'm still trying to find where to find the latest ardupilot:plane beta.

      • Dirk,

           If you do this change to the minimOSD could you please post the code changes?

        Also are there code changes that need to be done to the APM firmware to read the second voltage?

        • What hardware would we need to add a second voltage readout to a Pixhawk, I guess a voltage devider?

          Can someone post a shematic if you know how to?

          As I understand correctly the minimOSD does not support a second battery readout at the moment.

          Mabe we can ask the minimOSD-Extra developer to add this feature.

          https://code.google.com/p/minimosd-extra/

          Edit:

          If you want this feature in minimOSD-EXTRA

          Please go to: https://code.google.com/p/minimosd-extra/issues/detail?id=84#makech...

          Here you login and click on the star!

          If each person here who want this feature please login and click that star, only this way they see the many interests for requesting this feature.

          Keep in mind:

          Each comment triggers notification emails. So, please do not post "+1 Me too!".
          Instead, click the star icon.

      • In the mission planner under updates there is a check for beta versions button. 

        Like you I am hoping that the code to display the second voltage is added to the MinimOSD.

This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…