This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9728 - Battery current measuring on the Video iPod
Attached to Project:
Rockbox
Opened by Boris Gjenero (dreamlayers) - Tuesday, 30 December 2008, 19:51 GMT+2
Last edited by Torne Wuff (torne) - Tuesday, 03 November 2009, 21:35 GMT+2
Opened by Boris Gjenero (dreamlayers) - Tuesday, 30 December 2008, 19:51 GMT+2
Last edited by Torne Wuff (torne) - Tuesday, 03 November 2009, 21:35 GMT+2
|
DetailsThis patch allows battery current to be viewed at the debug screen. It adds another channel in firmware/target/arm/ipod/adc-ipod-pcf.c. In "View I/O ports", the raw value is displayed as 4066_ISTAT. In the "Power status" screen of "View battery" the value scaled to milliamps and power in milliwatts is displayed. The current is flowing into the battery when charging and out of the battery when discharging. When external power is supplied and the battery is charged, current is zero.
Note that current is dependent on battery voltage, because at lower voltages the DC-DC converters need more input current for the same output power. That's why I chose to also display power (based on Vbat * Ibat). That may still be slightly wrong if Vbat changed between readings, and DC-DC converter efficiency may change as voltage changes. It's probably best to compare current on the same device at the same Vbat. These values are also displayed in the iPod diagnostic, in Power -> A2DTests -> ChargingADC. I did not verify the accuracy of the scale factor; I just use the same one. The name 4066_ISTAT implies that this reading comes from the ISTAT pin of the LTC4066 chip. |
This task depends upon
Closed by Torne Wuff (torne)
Tuesday, 03 November 2009, 21:35 GMT+2
Reason for closing: Fixed
Additional comments about closing: Committed in r23500
Tuesday, 03 November 2009, 21:35 GMT+2
Reason for closing: Fixed
Additional comments about closing: Committed in r23500
Semi-related things:
* Pitch of edge connectors on ISA cards is close enough to firewire 6 pin connector pitch.
* My iPod cannot charge via USB, probably because that part of the LTC4066 is damaged
* I used PDF because I can export graphs from Excel that way, and the data is hosted here, not at Google
* These graphs also illustrate current savings from clearing the LCD, putting the LCD to sleep and shutting down the BCM.
Also removed some tabs.