Hi All,
I am having an issue with the voltage sensor – I just can
not seem to get it to read a voltage. It always displays 17.8 volts. I have installed
an AttoPilot Current Sensor Board. I am using the monitoring number 4 (current
and voltage). I can get a current reading which is working fine (could be 15%
out). The voltage on AN0 is connected directly to the battery so I am not using
the AttoPilot for voltage sensing.
I have a 3.9K resistor installed and if I use a multimeter
to check the resistance between ground and the AN0 pin I get 13.9K which I believe
is correct. Because there is a 10K resister on the AN0-3 pins.
It doesn’t matter what voltage I put in to the system it doesn’t
change the read out in the current test in the CLI. I have tried 2s and 3s LiPo
packs. I have also tried mode 3 which is just total battery voltage on AN0 but
I get the same results.
I am not sure who to troubleshoot this.
Regards
Simon
Tags:

Thanks for the Reply John,
I will double check that tonight. I am pretty sure it shows the same thing.
The HK GCS also displays the same thing. Current works but voltage doesnt.
Regards
Simon
Permalink Reply by Bob Anderson on May 25, 2011 at 11:52am It works, I have not changed the code, in monitor mode 4 and APM 2.12 the mah graph decreases in proportion to the current used
Permalink Reply by Bob Anderson on May 25, 2011 at 6:02pm OK ... but I don't think it should be working. I have hooked up current sensing and APM Terminal reports battery voltage, current, and mAh correctly. But when I switch to telemetry, HK_GCS reports amps = 0 and the mAh is constant.
I have communicated with HappyKillmore, and he confirms that that feature does not work yet because MAVlink does not report battery_current and HK does not parse the MAVlink packet that reports mAh.
So, another mystery. I'm scratching my head.
Have you measured (with a DVM) the voltages that are appearing on AN0 and AN1 ?
The fact that test] battery reports about 18 volts on AN0, AN1, AN2, and AN3 says that it not wired the way you think it is.
Permalink Reply by Bob Anderson on May 25, 2011 at 9:51pm Yup. You're correct. It is working. I had a constant that was a little off, so my current sensor was reporting only a few ma --- not enough to see the mAh change.
With the constant corrected and with a more substantial current drain, the mAh widget shows the drain nicely. I tested with both 1.2.96 and 1.2.98
I was suggesting that you use a DVM to measure the actual voltages present at AN0, AN1, etc.
I might be suspicious of a open circuit somewhere --- floating ground --- and so on.
I believe that you were reporting slow voltage buildup. I find it takes about 10 seconds to stabilize. There is a filter of the form: rdg = 0.9 * old_rdg + 0.1 * new_rdg that slows the response. If you see much longer than that, then suspect a wiring problem.
Hi John,
I have the APM in battery monitor mode 3 and this is what I get:
test] battery
Volts: 1:18.21, 2:18.00, 3:17.79, 4:17.61
test]
If I have it in monitor mode 4 (current and voltage) This is what I get:
ArduPilotMega] test
Test Mode
test] current
Hit Enter to exit.
V: 10.8929, A: 0.0000, mAh: 0.0000
V: 11.6246, A: 0.0000, mAh: 0.0000
V: 12.2831, A: 0.0000, mAh: 0.0000
V: 12.8757, A: 0.0000, mAh: 0.0000
V: 13.4091, A: 0.0000, mAh: 0.0000
V: 13.8891, A: 0.0000, mAh: 0.0000
V: 14.3211, A: 0.0000, mAh: 0.0000
V: 14.7100, A: 0.0000, mAh: 0.0000
V: 15.0599, A: 0.0000, mAh: 0.0000
V: 15.3749, A: 0.0000, mAh: 0.0000
V: 15.6583, A: 0.0000, mAh: 0.0000
V: 15.9134, A: 0.0000, mAh: 0.0000
V: 16.1430, A: 0.0000, mAh: 0.0000
V: 16.3479, A: 0.0000, mAh: 0.0000
V: 16.5340, A: 0.0000, mAh: 0.0000
V: 16.7016, A: 0.0000, mAh: 0.0000
V: 16.8523, A: 0.0000, mAh: 0.0000
V: 16.9880, A: 0.0000, mAh: 0.0000
V: 17.1102, A: 0.0000, mAh: 0.0000
V: 17.2201, A: 0.0000, mAh: 0.0000
V: 17.3190, A: 0.0000, mAh: 0.0000
V: 17.4081, A: 0.0000, mAh: 0.0000
V: 17.4882, A: 0.0000, mAh: 0.0000
V: 17.5603, A: 0.0000, mAh: 0.0000
V: 17.6252, A: 0.0000, mAh: 0.0000
V: 17.6836, A: 0.0000, mAh: 0.0000
V: 17.7362, A: 0.0000, mAh: 0.0000
test]
test]
The current works ok, its just not drawing much when I am testing.
One thing I notice is the voltage is getting larger until ut reaches 18v.
Thanks
Simon
Thanks Doug, That makes sence.
However I can not get it to read the voltage, it always goes to 18v no matter what voltage I connect.
Permalink Reply by Bob Anderson on May 25, 2011 at 11:59am
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.1280 members
115 members
183 members
87 members
673 members
© 2013 Created by Chris Anderson.
Powered by
