The Adafruit HUSB238 USB-C PD Breakout is a versatile and powerful component designed to simplify the integration of USB-C Power Delivery (PD) into your electronic projects. This breakout board allows devices to negotiate and draw different power levels from USB-C power sources, making it ideal for a wide range of applications, from powering microcontrollers to charging batteries.
Parameter | Value |
---|---|
Input Voltage | 5V to 20V (via USB-C) |
Output Voltage | Configurable (5V, 9V, 12V, 15V, 20V) |
Maximum Current | Up to 5A (depending on the power source) |
Communication | I2C |
Dimensions | 25mm x 20mm x 3mm |
Pin Name | Description |
---|---|
VIN | Input voltage from USB-C source |
GND | Ground |
SCL | I2C clock line |
SDA | I2C data line |
VOUT | Output voltage (negotiated via USB-C PD) |
INT | Interrupt pin (indicates power negotiation status) |
EN | Enable pin (active high, enables the output voltage) |
Power Connection:
I2C Communication:
Output Voltage:
Interrupt Handling:
Below is an example code to interface the Adafruit HUSB238 USB-C PD Breakout with an Arduino UNO using the I2C protocol.
#include <Wire.h>
#define HUSB238_I2C_ADDRESS 0x08 // Default I2C address for HUSB238
void setup() {
Serial.begin(9600);
Wire.begin(); // Initialize I2C communication
// Request 9V from the USB-C PD source
Wire.beginTransmission(HUSB238_I2C_ADDRESS);
Wire.write(0x01); // Command to request voltage
Wire.write(0x02); // 0x02 corresponds to 9V
Wire.endTransmission();
// Enable the output voltage
pinMode(7, OUTPUT); // Assuming EN pin is connected to digital pin 7
digitalWrite(7, HIGH);
}
void loop() {
// Monitor the interrupt pin for power negotiation status
int intPin = digitalRead(2); // Assuming INT pin is connected to digital pin 2
if (intPin == HIGH) {
Serial.println("Power negotiation successful.");
} else {
Serial.println("Power negotiation failed.");
}
delay(1000); // Wait for 1 second before checking again
}
No Output Voltage:
I2C Communication Failure:
Overheating:
By following this documentation, users can effectively integrate the Adafruit HUSB238 USB-C PD Breakout into their projects, leveraging the power and flexibility of USB-C Power Delivery.