Skip to main content

Troubleshooting

Start with the symptom you can observe. Apply one change at a time, then retry the smallest Quick Start example.

SymptomCheckFix
The example prints Not attached every secondIs a USB-C charger plugged into the board, and is the slide switch on? The HUSB238 takes its power from USB-C, not from the I2C header. Both libraries read a failed I2C transfer as 0, which shows up as Not attached.Plug in the charger and switch the slide switch on. Check SDA, SCL and GND against the Quick Start table.
Still Not attached with the charger plugged in and the switch onDoes the bus have pull-up resistors on SDA and SCL? The board has none.Use a controller board with I2C pull-ups, or add pull-up resistors on SDA and SCL.
The output voltage is lower than the one you setDoes the charger offer that voltage? If it does not, the HUSB238 takes the next lower one the charger offers.Use a charger that offers the voltage you need.
Invalid voltage value, use 5/9/12/15/18/20The voltage in the request example is not one of the six the board can ask for.Set REQUEST_VOLTAGE to 5, 9, 12, 15, 18 or 20.
Charger does not support this voltageThe charger does not advertise the voltage you requested.Request a voltage the charger offers, or use a charger that offers it.
Charger rejected the requestThe charger did not confirm the request within the 300 ms the library waits.Reset the controller to send the request again, or try another voltage.
The output turns offDid the input rise above 1.2 times the requested voltage? The HUSB238 turns the output off then.
The output drops to 5 VThe HUSB238 falls back to 5 V when its junction reaches 150 °C.Let the board cool down.
The purple LED stays off while VOUT is onIs JP1 cut? Cutting it disables the LED.
MicroPython raises Board not recognized, enter I2C pins manuallyThe module was created without an I2C object on a board it does not recognise.Create the I2C bus yourself and pass it in, as the examples do: HUSB238(i2c).

Still blocked?​

Ask on the community forum. Include the following so someone can reproduce it:

  • product name and SKU: Soldered HUSB238 USB-C Power Delivery Breakout, 333376
  • controller board and software environment
  • library or module revision
  • complete error text or unexpected output
  • connection method and power source, including the charger you use
  • the position of both DIP switch banks
  • a clear photo of the wiring