Logotipo de Battery Charger Fuel Gauge Integration

Battery Charger Fuel Gauge Integration

Comunidad
easyzoom
battery-charger-fuel-gauge-integration

Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA faults, and SOC jumps

Descripción general

Editoreasyzoom
Repositorioaix-skills
Nombre de la habilidadbattery-charger-fuel-gauge-integration
Estrellas
39
Forks
5
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por easyzoom en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Battery Charger Fuel Gauge Integration en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/easyzoom/aix-skills/tree/main/skills/battery-charger-fuel-gauge-integration
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/easyzoom/aix-skills.git /tmp/aix-skills
mkdir -p .claude/skills
cp -r /tmp/aix-skills/skills/battery-charger-fuel-gauge-integration .claude/skills/battery-charger-fuel-gauge-integration
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Battery Charger Fuel Gauge Integration en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Battery Charger Fuel Gauge Integration automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Battery Charger Fuel Gauge Integration no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Battery Charger and Fuel Gauge Integration

Overview

Use this skill to bring up a Li-ion/LiPo charger IC (TI BQ24xxx/BQ25xxx) and a fuel gauge (TI BQ27xxx Impedance Track, or Maxim/Analog MAX1704x ModelGauge, e.g. MAX17048) over I2C. The hard parts are keeping the charger in host mode past its watchdog, and getting an accurate SOC before the gauge has a matching battery profile.

When To Use

Use this skill when:

  • Charging never starts or restarts in a loop: check input current limit (IINLIM, REG00[2:0]), EN_HIZ, the CE pin, and the I2C watchdog resetting registers to default.
  • The charger reports faults: REG09 latched faults, NTC_FAULT (REG09[2:0], with a real thermistor such as 103AT on the TS pin), safety timer expiration, or JEITA temperature de-rating.
  • SOC from BQ27441/MAX17048 is wrong or jumps at power-up: profile not loaded, no learning cycle, or bad OCV calibration.
  • I2C reads to the charger/gauge fail or the wrong 7-bit address is used.

Do not use this skill when the I2C bus itself is dead (no ACK on any address) or the board rails are wrong; debug the bus and power tree first with hardware-interface-debug.

First Questions

Ask for:

  • Exact charger and gauge part numbers, cell count/chemistry, pack capacity (mAh), and charge voltage (4.2 V vs 4.35 V — picks BQ27441-G1A vs -G1B).
  • 7-bit I2C addresses, bus speed, and pull-up values; whether INT/GPOUT is wired.
  • NTC/thermistor part and TS resistor network (RT1/RT2), plus target charge/discharge temperature window.
  • Whether a battery profile (TI golden image .gm.fs/.df.fs, or a Maxim RCOMP/custom-model INI) exists, or a golden image must be created.
  • Current symptom: register dump, fault code, measured VBAT/ICHG, or reported SOC vs true SOC.

Integration Checklist

  1. Confirm the device on the bus. ACK the charger and gauge 7-bit addresses; read a known register (charger REG0A Vendor/Part/Revision, or gauge Control() DEVICE_TYPE subcommand) before writing anything.

  2. Take and hold host mode on the charger. Set IINLIM in REG00[2:0], clear EN_HIZ (REG00[7]), enable charging via CE/CHG_CONFIG (REG01[4]), then feed the I2C watchdog (write REG01[6]) on a timer, or disable it (WATCHDOG = REG05[5:4] = 00), so registers do not reset to default and drop charging.

  3. Configure charge parameters and protection. Program fast-charge current (ICHG, REG02), pre-charge/termination current (REG03), charge voltage (VREG, REG04), and enable NTC/JEITA limits; confirm the thermistor scaling (e.g. 103AT) on the TS pin.

  4. Load the fuel gauge battery profile. For BQ27441: UNSEAL via Control(), enter CFGUPDATE, poll Flags() until bit 4 is set, write Design Capacity/Design Energy/Terminate Voltage/Taper Rate in the data-memory block, fix BlockDataChecksum (255 - x, where x is the byte-wise sum of the block), then SOFT_RESET. For MAX17048: load a custom model / set RCOMP0 (CONFIG default 0x97) or accept EZ defaults.

  5. Calibrate SOC at first power-up. Let the pack rest for a valid OCV read, then issue MAX17048 QuickStart (MODE = 0x4000) or check BQ27441 Flags() ITPOR cleared; do not QuickStart under load.

  6. Run temperature compensation and status polling. Update MAX17048 RCOMP from measured temperature at least once/minute; on BQ27441 feed Temperature() if host-reported. Poll charger CHRG_STAT (REG08[5:4]) and read REG09 twice to get fresh faults (it latches, clears on read).

Common Failures

  • Charging restarts every ~40 s: I2C watchdog expired (default 40 s), resetting the writable control registers to defaults; feed it or disable WATCHDOG.
  • No current with valid adapter: IINLIM too low, EN_HIZ set, ILIM pin resistor, or CE held high disabling charge.
  • Charge stuck in pre-charge or never terminating: BATLOWV threshold (REG04[1]), wrong termination current, or safety timer expiring (REG09 charge safety timer fault).
  • NTC_FAULT / no charge in a comfortable room: TS resistor network wrong, floating TS pin, or JEITA cold/hot fold-back.
  • SOC reads 0/100 % or jumps tens of percent: profile (Design Capacity) not written, BlockDataChecksum wrong so writes silently rejected, or ITPOR still set.
  • Gauge writes ignored: device still SEALED, or not in CFGUPDATE mode before writing the data-memory block.
  • I2C NAK: wrong 7-bit vs 8-bit address, missing pull-ups, or gauge in hibernate/shutdown.

Verification

Before claiming charging and gauging work:

  • Dump charger REG00–REG0A; confirm IINLIM, VREG, ICHG, watchdog state, and CHRG_STAT transitions Not Charging → Fast Charging → Termination Done.
  • Force a fault (unplug NTC or overheat pack) and confirm REG09/INT reports it and clears on re-read.
  • Compare gauge SOC against a coulomb-counted or bench-measured charge/discharge; verify it tracks within a few percent and survives a reset (ITPOR clear, profile persists).
  • Confirm charging continues across a full watchdog interval without host register rewrites (or with the feeding task running).

Example

User:

text
BQ24295 一充电就每隔几十秒重启,SOC 还老是乱跳,怎么查?

Agent:

  1. Asks for I2C address, adapter/IINLIM setting, whether the watchdog is fed, NTC network, and whether a BQ27441 profile was loaded.
  2. Reads REG00/REG08/REG09; if registers reverted to defaults, enables watchdog feeding (write REG01[6]) or disables WATCHDOG to hold host mode.
  3. Checks the gauge: UNSEAL, verifies Design Capacity and BlockDataChecksum, clears ITPOR, then QuickStart/rest-OCV calibrates SOC and re-tests across a charge cycle.

Preguntas frecuentes

¿Qué hace la habilidad de IA Battery Charger Fuel Gauge Integration?

Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA faults, and SOC jumps

¿Por qué usar Battery Charger Fuel Gauge Integration en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Battery Charger Fuel Gauge Integration está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Battery Charger Fuel Gauge Integration en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/easyzoom/aix-skills/tree/main/skills/battery-charger-fuel-gauge-integration. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Battery Charger Fuel Gauge Integration?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Battery Charger Fuel Gauge Integration?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Battery Charger Fuel Gauge Integration con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Battery Charger Fuel Gauge Integration?

Sí. easyzoom la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇