No description
Find a file
Limor Fried b521dd370d Add register control functions for charge/input limits and system voltage
- Add setChargeCurrentLimitA() and getChargeCurrentLimitA() functions
  * Range: 0.04A-2.0A in 0.04A steps (register 0x02, bits 10:5)
- Add setChargeVoltageLimitV() and getChargeVoltageLimitV() functions
  * Range: 3.5V-4.8V in 0.01V steps (register 0x04, bits 11:3)
- Add setInputCurrentLimitA() and getInputCurrentLimitA() functions
  * Range: 0.1A-3.2A in 0.02A steps (register 0x06, 8 bits shifted by 4)
- Add setInputVoltageLimitV() and getInputVoltageLimitV() functions
  * Range: 3.8V-16.8V in 0.04V steps (register 0x08, 9 bits shifted by 5)
- Add setMinimalSystemVoltageV() and getMinimalSystemVoltageV() functions
  * Range: 2.56V-3.84V in 0.08V steps (register 0x0E, 6 bits shifted by 6)
- Update test example with all register functions and F() strings for SRAM optimization
- All functions verified working with hardware showing correct default values

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 16:30:19 -04:00
.github/workflows Initial Arduino library for BQ25628E I2C Battery Charger 2025-08-04 11:03:42 -04:00
examples/test_BQ25628E Add register control functions for charge/input limits and system voltage 2025-08-04 16:30:19 -04:00
.clang-format Initial Arduino library for BQ25628E I2C Battery Charger 2025-08-04 11:03:42 -04:00
.gitignore Initial Arduino library for BQ25628E I2C Battery Charger 2025-08-04 11:03:42 -04:00
Adafruit_BQ25628E.cpp Add register control functions for charge/input limits and system voltage 2025-08-04 16:30:19 -04:00
Adafruit_BQ25628E.h Add register control functions for charge/input limits and system voltage 2025-08-04 16:30:19 -04:00
README.md Initial Arduino library for BQ25628E I2C Battery Charger 2025-08-04 11:03:42 -04:00

Adafruit BQ25628E Library Build StatusDocumentation

Arduino library for the BQ25628E I2C Battery Charger with Power Path Management

About the BQ25628E

The BQ25628E is a 1-cell Li-Ion battery charger with power path management:

  • 2A charging current capability
  • I2C interface for control and monitoring
  • Power path management for seamless operation
  • Integrated ADC for voltage and current monitoring
  • Configurable charging parameters
  • Safety features including thermal regulation

Installation

Download and install the library using the Arduino Library Manager or by downloading the latest release from GitHub.

Dependencies

This library requires:

Hardware

Connect the BQ25628E to your microcontroller via I2C. The default I2C address is 0x6A.

License

MIT License. See LICENSE file for details.

Contributing

Contributions are welcome! Please read the contributing guidelines and submit pull requests to the main repository.