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
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?
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).
Do you mean this sensor:
http://www.hobbyking.com/hobbyking/store/__16671__FrSky_Battery_Vol...
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:
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.