Skip to content
master
Go to file
Code

Latest commit

Signed-off-by: Joseph Honold <mozzwald@gmail.com>
e07cacc

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

HDQ Battery Status Example for Arduino

This example sketch prints battery status information from Texas Instruments HDQ capable fuel gauge ic's (used in iPhone batteries). It attempts to detect if an iPhone battery is connected by matching the device type, firmware and hardware versions. This is a work in progress. Tested with Arduino Nano v3.0 board and Arduino IDE v1.6.5.

Usage:

First, install the HDQLib into your Arduino IDE Libraries directory.

Connect battery ground to Arduino ground. Connect the gas gauge pin from the battery to pin 7 of the Arduino. Use a 4.7k-10k pull-up resistor from pin 7 to Arduino 5V.

Now compile this sketch for your target board and upload it. It will print battery status information to the serial port every 5 seconds.

Datasheets

See these datasheets for more information on the fuel gauge ic's:

About

Arduino HDQ Battery Status Example

Resources

License

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%
You can’t perform that action at this time.