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
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
yesterday
DIY Robocars via Twitter
yesterday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
More…