Skip to main content
Read this section carefully to avoid damaging the Kode Dot.

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
In addition, it warns us about possible problems such as overcurrents, short circuits, overcurrents, etc.

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
So, when the Kode Dot enters suspend mode, this regulator is responsible for maintaining the voltage on the ESP32-S3 and the internal components.

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
When the Kode Dot is in suspend mode, this regulator is deactivated and disconnects the power to the peripherals.

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 PMIC has the address 0x6B on the I2C bus.
The interrupt pin is connected to the IO expander.
The 5V and 2A bus that the PMIC generates is connected to the upper connector and the back of the Kode Dot. If the USB-C is connected, the power of the 5V bus comes from this. If not, the power of the 5V bus comes from the battery. In addition, a external 5V power supply can be connected through one of the external connectors to charge the Kode Dot.
Do not connect an external 5V power supply while the USB-C is connected.

Fuel Gauge

The fuel gauge is connected to the I2C bus using these connections:
The fuel gauge has the address 0x55 on the I2C bus.
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.

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

Download examples

You can test the example codes through the Arduino IDE or the ESP-IDF IDE or download the codes in our drive: Power codes