Hi,
I am very new to Sparkfun components, but I am currently trying to use the power delivery board (DEV-15801) to distribute power to my sensor from a powerbank.
I am using a Raspberry Pi 4 with Rasbian Buster and a Qwiic HAT for the I2C interface between Raspberry Pi and the power delivery board. The power delivery board is configured with a Python driver from github, modified to work with Python version 3 (https://github.com/timkruse/stusb4500). I cannot seem to configure the device or get any power delivered on the output, a multimeter measures 0V over VSINK and GND.
As power supply I have tried both the powerbank with a USB-C PD and a USB-C cable from a wall socket. Neither seems to be working.
Does anyone have any experience with a Python driver for the specified device?
Thankful for any suggestions on how to get the board to work!
-Julie
Thanks for reaching out to us on this.
Can you please provide some photos of your set-up/wiring?
From a preliminary stance, it might be the power supply varying…be sure to go through our hookup guide here https://learn.sparkfun.com/tutorials/po … egotiation for step-by-step instruction on connecting this device.
Hope this helps!
I’m not seeing a python driver on sparkfuns website so I don’t think they have one.
You do need a power delivery compliant USB C source for the power delivery board to work correctly though, I don’t imagine there are many power banks out there that are compliant, you’re probably going to want to test with a known good power delivery wall adapter just to make sure that works before digging into code.
Thank you for your response.
I have attached a photo of the wiring. Note that not all connections are connected at the same time.
Firstly the board is connected with only the Qwiic cable to the Raspberry Pi’s I2C bus (1) and programmed with a Python driver.
Then, after programming the board, the Qwiic cable is disconnected and the power supply is connected (2). Either an Ansmann 10Ah 18W-PD Powerbank or a standard Apple wall socket with a USB-C charging cable.
The output on VSINK is then measured at the output (3). I get 0V on the output.
My theory is that the Python driver I used does not work properly. An alternative can be to program the board using an Arduino and the supplied code in the Hookup guide? Since I only need to configure the board once.
-Julie
Once you disconnect the Qwiic connector any settings you sent the STUSB4500 are lost. Everything needs to be connected from the start and stay connected the entire time you’re using it.
We recommend following our [hookup guide and using our Arduino library and a RedBoard Qwiic or Arduino Uno for testing since that’s a known good configuration. Once you verify things are working this way, then you can try getting the parts to work on a Pi.](Power Delivery Board - USB-C (Qwiic) Hookup Guide - SparkFun Learn)