News for hackers. Stuff that matters.
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by the__alchemist on Tuesday May 10, 2022 @07:50PM (#31334123)
Related: When designing small electronics devices, my go to for plug-in power and simple data transmission (including serial-over-USB) is USB-C. It's small, reversible, and common due to phone chargers... and you can still wire it up and use it easily by just using the D+/- lines, power, and ground. (With appropriate CC resistors etc)
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Tuesday May 10, 2022 @08:07PM (#31334245)
And the best part is that you don't even need a connector, you can just build it right into your PCB! USB-A also lets you do a PCB-only connector, but if you're doing anything that requires a cable instead of just plugging directly into a port, it's a lot more annoying to require a USB-A extension cable than any USB-C cable.
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by anyfoo on Tuesday May 10, 2022 @08:26PM (#31334403)
Do you have an example for such a "USB-C edge connector"? Intuitively I would have said that common PCB thickness is too large, or do I misunderstand what you mean?
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Tuesday May 10, 2022 @08:34PM (#31334472)
Yeah, you need a 0.8mm thick PCB, but everyone can do that now (JLCPCB and oshpark both do it for the same price as a regular 1.6mm board). Here's a footprint: https://github.com/jmgao/PCB-USB-C
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by LeifCarrotson on Wednesday May 11, 2022 @08:47AM (#31339163)
You can also do this with thicker PCBs (2.4 or 2mm, nominal 2.235mm, 1.6mm works with a good USB cable or a shim) to form a USB-A male connector, eg:

https://eleccelerator.com/usb-business-card/

http://goodfet.sourceforge.net/hardware/goodfet31/

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by Eduard on Tuesday May 10, 2022 @09:13PM (#31334738)
I need photos to understand this, including one where a cable is connected to it
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Tuesday May 10, 2022 @09:30PM (#31334834)
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by shepherdjerred on Tuesday May 10, 2022 @11:47PM (#31335639)
Wow that’s crazy
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by spookthesunset on Wednesday May 11, 2022 @12:53PM (#31342612)
Very cool!
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by h-w on Wednesday May 11, 2022 @12:27AM (#31335850)
Awesome
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by anyfoo on Tuesday May 10, 2022 @08:40PM (#31334499)
Sweet, I will consider that next time I need something USB-like, thanks!
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by nimish on Wednesday May 11, 2022 @12:45AM (#31335937)
Oh my god this is incredible! And it has the full pinout so you can use debug accessory mode!

Game changing!

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by the__alchemist on Tuesday May 10, 2022 @08:35PM (#31334474)
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by anyfoo on Tuesday May 10, 2022 @08:39PM (#31334496)
That seems to be opposite of what jmgao means, which was forming a USB-C edge connector out of the PCB itself.
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by the__alchemist on Tuesday May 10, 2022 @08:43PM (#31334504)
Oh wow, I misinterpreted. That's awesome!
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by grrrrrbox on Tuesday May 10, 2022 @08:23PM (#31334376)
What PCB thickness? Got a footprint?
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Tuesday May 10, 2022 @08:34PM (#31334467)
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by prutschman on Tuesday May 10, 2022 @09:04PM (#31334668)
The Eagle one yours is based on says it needs 0.6 mm PCB to work. Is it just close enough not to matter?
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Tuesday May 10, 2022 @09:29PM (#31334829)
Annoyingly, the USB-C midplate is specified at 0.7mm. In my experience, 0.6mm boards are too thin to make a reliable connection. Going thicker has worked perfectly with all of the cables I've tried. I suppose there might be some risk of damaging your cables, but it doesn't seem too likely to me (the spec is 0.7 +/- 0.05), and I haven't had any problems.
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by grrrrrbox on Wednesday May 11, 2022 @10:54AM (#31340854)
Thank you!
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by Vladimof on Tuesday May 10, 2022 @09:17PM (#31334766)
> my go to for plug-in power and simple data transmission (including serial-over-USB) is USB-C

Can you push for USB-O, the round USB connector? /s

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by asciimov on Tuesday May 10, 2022 @08:25PM (#31334393)
> common due to phone chargers

Thanks to Apple keeping iPhones on lightning connectors the only things with USB-C I have in my house is a Nintendo Switch and a Soldering Iron.

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by ace2358 on Tuesday May 10, 2022 @08:27PM (#31334418)
I don’t understand, my new iPhone 13 came with a usb-c to lightning cable. My new iPad is usb-c too as well as my new kindle and new Sony camera. Even my vape has usb-c!

Edit: and my soldering iron!

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by photojosh on Tuesday May 10, 2022 @08:44PM (#31334518)
Older devices! And some new ones that still have USB-micro.

It's quite difficult to buy a USB-C cable that is not USB-C or Lightning on the other end. While USB-A on the charger's side with USB-C on device side is quite common and comes with a lot of devices that don't include a charger.

I couldn't find USB-C to USB-micro device cables at any retail store near me.

Ended up getting them off Amazon.

My transition to all USB-C is also much slower than it could be, since you can't get 6- or 10-port chargers that are all USB-C. iirc best I've seen is 2x USB-C and then 4 USB-A.

Use cases:

- my embedded dev boards are all USB-micro (sometimes 2x of) and worse, USB-mini or USB-B. setup for dev on the go from my MBP now is a foot-long USB-C to USB-micro.

- charging older Kindles, bike lights, etc

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by rektide on Tuesday May 10, 2022 @10:04PM (#31335052)
There are super cheap usb-a to usb-c-female adapters, tiny little cable-less adapters. I heartily recommend buying in quantity, so your existing charging gear can all expose usb-c.

Then I buy usb-c to usb-c cables. And a usbc-to-usb-micro adapter, which comes with a little chain that clips on to the cable. I use less and less micro (the majority of my recent dev boards have been usbc for example) but having a cable good for both is super convenient & easy.

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Tuesday May 10, 2022 @11:52PM (#31335669)
I'd be careful with these: USB-A male to USB-C female adapters are illegal in the specification because they let you connect two power sources together, which can lead to explosions.
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by Liquid_Fire on Wednesday May 11, 2022 @05:21AM (#31337574)
I'm pretty sure you can easily do that with a presumably legal USB-A male to USB-C male cable.

Plug one end into a charger with a USB-A port (very common among phone chargers) and the other end into a charger with a USB-C port (Apple's chargers seem to be like this?).

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by lmm on Wednesday May 11, 2022 @07:54AM (#31338561)
> Plug one end into a charger with a USB-A port (very common among phone chargers) and the other end into a charger with a USB-C port (Apple's chargers seem to be like this?).

It's forbidden to make a charger like that unless it has a chip that actually speaks the protocol and does power negotiation properly. Same for anything that has a female USB-C port.

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by jmgao on Wednesday May 11, 2022 @02:06PM (#31343655)
The trick is that USB-C has a pair of pins that identify what type of cable is connected. Different value resistors on the pins identify different types of cables, so the USB-C charger will know that the cable plugged into it is a legacy A to C cable, and not actually connect its VBUS.
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by aidenn0 on Tuesday May 10, 2022 @10:03PM (#31335038)
I got a device in the past 2 years that uses mini USB
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by asciimov on Tuesday May 10, 2022 @08:43PM (#31334512)
Ok, so the iPhone 13 does come with a usb-c to lightning, but that cable is completely useless to me as it didn't come with a charger. All my previous iPhones and iPads came with a usb-a chargers.

Other than that Switch Charger I've got no other USB-c chargers.

Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by amelius on Wednesday May 11, 2022 @03:54AM (#31337031)
Can you recommend an IC and development tools?
Re:Why do USB-C hubs still have USB 2.0 ports? (2021) by the__alchemist on Wednesday May 11, 2022 @07:33AM (#31338388)
I've been using STM32 and nRF-52. For development tools, I've been using Probe-Run to flash, and Defmt to debug.