Gathiyo / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

Voltage and current sensors / events #277

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
at sensors.pde it reads : 

if(g.battery_monitoring == 3 || g.battery_monitoring == 4)
battery_voltage = battery_voltage1;

however, if you're monitoring a lipo with the balance cable you will 
be getting 4.2V (fully charged lipo) at the battery_voltage1, but
if you're using the current sensor from sparkfun, you'll be getting max
3.3V, so shouldn't you scale the reading to the 4.2V multiplying the
current sensor value by a 1.2727273 factor ? 

Original issue reported on code.google.com by ruicravo...@gmail.com on 3 Nov 2011 at 12:21

GoogleCodeExporter commented 8 years ago
Hey, the AttoPilot sensor sold at Sparcfun uses a passive resistor net for 
voltage division. There is no 3.3 limit there! Its linear.
(And I do believe that the APM ADC handles inputs up to Vcc)
Or is this issue addressing current measurement (then I misunderstood...)?

Original comment by tomas.so...@gmail.com on 24 Jan 2012 at 1:40

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, the scaling for current measurement, I'm sorry, I didn't explained it well 
:)

Original comment by ruicravo...@gmail.com on 24 Jan 2012 at 2:13

GoogleCodeExporter commented 8 years ago
In APM SW 2.9 there is a AMP_PER_VOLT and VOLT_DIVIDER parameters so it is 
possible to scale now

Original comment by Benny.Si...@gmail.com on 20 Jan 2013 at 12:43

GoogleCodeExporter commented 8 years ago
Issue closed. 
If you find this is an error please report it in the new issues list
https://github.com/diydrones/ardupilot/issues?labels=ArduCopter&page=1&state=ope
n

Original comment by Benny.Si...@gmail.com on 20 Jan 2013 at 12:44