How to configure a USB-C Port as charging input

Hey y'all, I have this controller that has a Micro USB port for charging, and as a challenge for myself, i want to change that port to a USB C port! The problem is, USB C is kind of confusing to me, and I have no idea how to configure it to make it receive power

From what I understand from:

I have to configure the port as a sink device, which means i need to use a pull down resistor (I heard is 5.1k somewhere) to pull both CC1 and CC2 down. This will make VBus, when connected to a power source, output 5V. In theory, all I need to do is to remove the Micro USB port, hookup VBus to 5V input and GND to GND the I should be good to go?

Am I wrong about any of this or everything is fine and dandy here?

Why not use a USB C to USB micro converter ?

I think most/all USB-C power sources will default to 5V output if you only draw power from GND and VBUS. The one's I've tried do this, at least.

For more advanced control, build/buy something involving a CH224 PD controller; this will let you decide what voltage you want to pull from the bus.

I'm also curious about these little dudes, they are just 4-pin female sockets, do these even work? they have no pull down/pull down resistors no nothing!

I think it's just a matter of the look and feel of my whole controller, I kinda don't want a weird converter dongle sticking out of my controller at all times, or fiddle around for one when I want to charge. It is also a matter of curiosity, I would really want to integrate USB C into my projects in the future one day and i thought this would be a cool starting point to learn about them

As you can see, that little PCB only breaks out GND, VBUS and both data lines. This means there's no CC connection and the basic principle is apparently as I indicated in #3: it assumes that if CC etc. are left to float, the power source will decide to stick with 5V (and probably limit current).

Look into the CH224.

Huh, is that so? Thanks for the answer!

Ah HA!

I was reminded that I have an adapter lying around, and suspiciously it only works with USB A to USB C power cables and not my USB C to USB C ones, i went to search around google and found this comment on Reddit: Reddit - Dive into anything that kind of solves my whole problem!

The VBUS to GND connection in the screenshot above is obviously an error.

Good catch! Thanks

No problem.
Coincidentally, I was going through a CH32V00x eval board manual yesterday and came across this arrangement:
image
Interesting, since they spec 5k1 on both CC pins, but it's also indicated as "NC" (not connected), so probably not present on the actually manufactured boards. Apparently the kind people at WCH consider the pull-downs optional. Since they do a lot with USB, I figure they might be on to something.

1 Like