Features
The Kode Dot integrates a complex and sophisticated power system, but at the same time robust, modular and easy to use. It can be powered in three ways: from the 500mAh battery, from the USB-C or through the external connectors. The system is formed by these components:- Power Management Integrated Circuit (PMIC)
- Fuel Gauge
- 3V3 regulator for internal components
- 3V3 regulator for peripherals
- 3V3 regulator for the internal RTC of the ESP32-S3
Power Management Integrated Circuit (PMIC)
The central part of the power system is a PMIC that is responsible for managing where the energy comes from, whether from the battery, the USB-C or the external connectors. In addition, the PMIC is responsible for the security and protection of the components, ensuring protection against overcurrents, short circuits or overcurrents. In addition, it allows to obtain data from the battery and the power supply. It also allows to generate a 5V bus and up to 2A of current that can be used to power external peripherals through the external connectors.Fuel Gauge
The fuel gauge is a component that is responsible for measuring several battery data and giving us an analysis of its state. So we can know the following data from the battery:- Remaining capacity
- Charge state
- Remaining usage time
- Battery voltage
- Battery temperature
- Health
- Output or input current
3V3 regulator for internal components
This is the main voltage regulator of the Kode Dot and supports up to 1A of current. It is responsible for stabilizing the voltage to 3V3 and powering these components:- ESP32-S3
- IO expander
- RTC
- Audio amplifier
- Microphone
- 6-axis IMU
- 3-axis magnetometer
3V3 regulator for peripherals
This regulator, which supports up to 2A of current, can be activated or deactivated to power the following peripherals of the Kode Dot:- Screen
- microSD
- 3V3 bus of the upper connector
3V3 regulator for the internal RTC of the ESP32-S3
This regulator is responsible for powering the internal RTC of the ESP32-S3.Connection diagram
Power Management Integrated Circuit (PMIC)
The PMIC is connected to the I2C bus using these connections:The interrupt pin is connected to the IO expander.
Fuel Gauge
The fuel gauge is connected to the I2C bus using these connections:The GPOUT pin is connected to the IO expander.
3V3 regulator for peripherals
This regulator can be activated or deactivated to power the peripherals of the Kode Dot. By default it is activated, to deactivate it set the following pin to LOW:The EN pin is connected to the IO expander.
Recommended libraries
Arduino
Power Management Integrated Circuit (PMIC)
Fuel Gauge
ESP-IDF
Power Management Integrated Circuit (PMIC)
Fuel Gauge
Example code
Power Management Integrated Circuit (PMIC)
With this code you can see the parameters that the PMIC returns from the battery and the power supply.pmic_test.ino
Fuel Gauge
With this code you can see the parameters that the fuel gauge returns from the battery.bq27220_test.ino

