🛠 M5Stamp Timer Power 2: Wiring and First Boot

M5Stamp Timer Power 2 (PY32L020) · avance · Guide avancé pour l'intégration, le câblage et la vérification initiale du module de gestion d'alimentation PY32L020.

Objectives

This tutorial aims to integrate the M5Stamp Timer Power 2 into an advanced prototype. Unlike simple modules, this component requires a fine understanding of multi-stage energy management via the I2C bus. The goal is to confirm communication with the PY32L020 microcontroller, validate output voltages, and test ultra-low power consumption modes (6.72uA in shutdown).

Required Hardware

Steps

  1. Physical Preparation: Solder the castellated pins or use an adapter. Ensure no short circuits on traces. The format is compact (18x14mm), handle with care.
  1. Power Connection: Connect the EXT_5V_INOUT pin to your 5V source. If using a LiPo battery, connect it to dedicated terminals. Note that the LGS4056HDA circuit handles charging at 650mA or 180mA depending on configuration.
  1. I2C Wiring: Connect the module's SDA and SCL pins to your microcontroller. The default I2C address is 0x6E. Add pull-up resistors (4.7kΩ) if necessary to ensure bus stability at 400 kHz.
  1. Software Initialization: On the host, initialize the I2C bus. Send a read command to verify device presence. A valid response confirms the PY32L020 is active.
  1. Output Verification: Using a multimeter, measure voltages on 3V3_DCDC_OUT and 3V3_LDO_OUT. They must be stable at 3.3V. Also check PY_3V3.
  1. Consumption Test: Configure the module to shutdown mode via I2C. Measure the current draw. It should drop towards 6.72uA. Wake it up via an external interrupt to validate IRQ functionality.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials