Micropython driver for TPS55289 I2C Controlled Buck-Boost Converter from Texas Instruments.
This driver includes methods to control various settings such as output voltage, current limit, slew rate etc.
Product Page: https://www.ti.com/product/TPS55289
| Parameter | Description | Rating |
|---|---|---|
| Input Voltage Range | Voltage range that can be applied to VIN pin. | 3V to 30V |
| Output Voltage Range | Voltage range that can be obtained at VOUT pin. | 0.8V to 22V |
| Output Current Limit | Maximum allowable output current. | Up to 6.35A |
| Slew Rate | Rate at which the output voltage changes. | Up to 10mV/μs |
| Feedback Mechanism | Method used for feedback (internal/external). | Internal (0) or External (1) |
| Operating Modes | Modes of operation (Boost, Buck, Buck-Boost). | Boost (00), Buck (01), Buck-Boost (10) |
| Hiccup Mode | Response to fault conditions (Enabled/Disabled). | Enabled (1), Disabled (0) |
Note: Ratings and options may vary based on the specific variant of the TPS55289 and the operating conditions.
- Intial Code Development
- Hardware Design
- Board Fabrication
- Testing
- Release 1.0
Please note that this project currently is just to keep track of development. The code hasn't been tested as of this point. I will keep this repository updated with regards to bugs. Let me know if anyone has had a chance to test this out using the Evaluation Kit(TPS55289EVM) and Raspberry Pico!
-
Import the necessary modules:
from machine import Pin from machine import I2C import TPS55289
-
Create an instance of the TPS55289 class:
I2C_BUS = I2C(0, scl=Pin(5), sda=Pin(4), freq=100_000) Converter = TPS55289(i2c=I2C_BUS, enablePin=0, outputVoltage=5, currentLimit=0.35, feedbackMode=0b0)
-
Use the methods to control the TPS55289:
Converter.setOutputVoltage(5.0) Converter.enableOutputCurrentLimit() Converter.setOutputCurrentLimit(6.0)
Sets the output voltage of the DC-DC Converter. Valid input range: 0.8V to 22V.
Enables the output current limit of the DC-DC Converter.
Disables the output current limit of the DC-DC Converter.
Sets the output current limit of the DC-DC Converter. Valid input range: 0.0A to 6.35A.
Sets the overcurrent protection (OCP) response time.
Sets the slew rate of the DC-DC Converter.
Sets the feedback mechanism of the DC-DC Converter.
Sets the internal step size for feedback.
Enables short-circuit indication.
Disables short-circuit indication.
Enables overcurrent indication.
Disables overcurrent indication.
Enables overvoltage indication.
Disables overvoltage indication.
Sets the CDC compensation mode.
Sets the CDC compensation value.
Enables the TPS55289 DC-DC Converter.
Disables the TPS55289 DC-DC Converter.