> Hi List,
>
> I'm trying to understand the reply while querying the bat3 but there
> are a few parts I don't understand. Looking at
> ftp://ftp.embeddedarm.com/bat3/GettingStarted.txt I see the definition
> of the struct bat3Info but there are a few field which I don't
> understand.
>
> float supplyV; // supply voltage
> float regV; // regulated supply voltage
>
> These return values like 39812(supplyV) and 26623 (regV) when running
> from a powersource (24V). On batteries these values return 1023.
These inputs are coming directly from an ADC. To get the ADC output the
supply voltage is multiplied by ~0.07, then divided by 3.3V, then multiplied
by 65536. This corresponds to approximately 700mV per unit, so 39812 *
700mV is around 28V. The regulated value is approximately 190mV per unit,
so 26623 * 190mV is right around 5V. The values are only approximate due to
part tolerances and lack of ADC calibration.
When you are running on batteries these values aren't valid; use the
"onbatt" bit to condition these values.
>
> dword pwm1en:1, // set if PWM1 is enabled
> pwm2en:1, // set if PWM2 is enabled
> offset:1, // reserved
> opamp:1, // must be enabled to read battery current
> buck:1, // reserved
> led:1, // set if the LED on the board is on
> jp3:1, // set if JP3 on the board is on
> onbatt:1, // set if running on batteries
> softJP3:1,// set automatically if battery voltage drops too low
> locked:1; // set if bat3 has locked onto the target charge current
>
> What is PWM1 and PWM2 for? I suppose it's UPS related but that's the
> only thing I know.
The PWMs control charging; there are two of them in parallel, so turning one
or both on charges the batteries if power is available (more current if both
are turned on). Normally you don't have to worry about this because the
charging algorithm takes of this.
> softJP3 is supposed to be set when the power drops but it wasn't in my
> testcase. The docs say there's more info while running 'bat3 --help'
> but that isn't very clear either.
softJP3 is for battery protection, and normally isn't s activated until the
battery voltage drops below a certain value. This is to prevent
over-discharge. When softJP3 is active it has the same effect as if JP3 was
on; i.e. the batteries will no longer provide power. softJP3 is
automatically cleared at the appropriate time, and it can also be reset
manually with a jumper on the appropriate pins of the 'ISP' header.
Which options are you looking for more information on?
>
> Can someone give me any help?
>
> Tnx,
>
> wim.
>
>
Regards,
Michael
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|