I have a project where the USB port on the MCU wont be accessible from the outside.
The idea is to extend the port with a USB-C breakout module. But I don't manage to make a working connection.
This is my setup:
The USBC breakout is connected to a TP4056 LiPo charger via V, GND pins. The V+ and V- pins are connected to V+ and V- pins on a microUSB breakout on the D1 mini. The TP4056 is in turn hooked up to the D1 mini and the Lipo battery.
What seems to work: When plugging a USB charger to the USBC breakout, the TP4056 charges the battery properly and provides power to the D1mini. I also measure 5V voltage on V/GND on the USB-breakout.
When I disconnect the USB charger, the battery provides power to the D1mini.
BUT: When I instead connect my Macbook Air to the USBC breakout via a USBC2USBC cable, nothing happens at all. There is no voltage on the V/GND pins on the USBC breakout, the TP4056 is not charging - but the D1mini is still running when battery power is applied.
Where am I going wrong here? IS there something fundamental I don't understand about USB? Is it a Mac thing? A faulty component maybe?
Note: I have all the appropriate drivers installed and working on the mac. I can hook up the D1min directly to the mac via a USBC2microUSB cable to upload sketches.
Note2: I have tried witching the D+ and D- connections between the USB breakouts
The idea is to extend the port with a USB-C breakout module. But I don't manage to make a working connection.
This is my setup:
The USBC breakout is connected to a TP4056 LiPo charger via V, GND pins. The V+ and V- pins are connected to V+ and V- pins on a microUSB breakout on the D1 mini. The TP4056 is in turn hooked up to the D1 mini and the Lipo battery.
What seems to work: When plugging a USB charger to the USBC breakout, the TP4056 charges the battery properly and provides power to the D1mini. I also measure 5V voltage on V/GND on the USB-breakout.
When I disconnect the USB charger, the battery provides power to the D1mini.
BUT: When I instead connect my Macbook Air to the USBC breakout via a USBC2USBC cable, nothing happens at all. There is no voltage on the V/GND pins on the USBC breakout, the TP4056 is not charging - but the D1mini is still running when battery power is applied.
Where am I going wrong here? IS there something fundamental I don't understand about USB? Is it a Mac thing? A faulty component maybe?
Note: I have all the appropriate drivers installed and working on the mac. I can hook up the D1min directly to the mac via a USBC2microUSB cable to upload sketches.
Note2: I have tried witching the D+ and D- connections between the USB breakouts