Site is getting a bit slow - mirror here: http://archive.is/3bp5L
Raspberry Pi 4 as a USB-C peripheral
41–50 of 51 posts
Re: Raspberry Pi 4 as a USB-C peripheral
#42Site is getting a bit slow - mirror here: http://archive.is/3bp5L
cloudflare (1.1.1.1) is resolving archive.is to 127.0.0.5 ??
Re: Raspberry Pi 4 as a USB-C peripheral
#43Fyi: USB-c in the rpi 4 is not standards compliant. A new revision is underway, a fix is just using dumb cables.
That is, the workaround is both "use only dumb cables (which use only one of the CC pins)" and "never connect to a USB-C device which might source power while the rpi is being powered by something other than the USB-C".
Re: Raspberry Pi 4 as a USB-C peripheral
#44Earlier quoted context omitted.
That's awesome. Do you recall the name?
https://play.google.com/store/apps/details?id=com.softwareba...
https://play.google.com/store/apps/details?id=com.icecoldapp...
Re: Raspberry Pi 4 as a USB-C peripheral
#45Re: Raspberry Pi 4 as a USB-C peripheral
#46You can also do a USB client on a $1.50 AVR chip: https://www.obdev.at/products/vusb/index.html Source: Compiled and connected a mouse/keyboard firmware running on an ATtiny861a using internal RC oscillator.
Why would you do that though when there are a gazillion Cortex-M chips available that support hardware USB? Fast USB and you don't have to use AVR. Hell, Atmel even sells Cortex-M chips with High Speed USB-2 support (reasonably hard to find; most are only Full Speed).
I've been doing embedded systems large and small for decades but before this year, never put anything with an ARM into production.
AVRs are still my go to for most things because I know them well and have all the tooling ready to go.
Re: Raspberry Pi 4 as a USB-C peripheral
#47Earlier quoted context omitted.
Could you provide a link to that $2.50 price?
Aliexpress. Amazon. eBay.
Re: Raspberry Pi 4 as a USB-C peripheral
#48Fyi: USB-c in the rpi 4 is not standards compliant. A new revision is underway, a fix is just using dumb cables.
Using dumb cables avoids one of the issues (configuration channel pins shorted together), but not the other one (sourcing power even when the configuration channel says it shouldn't source power). That is, the workaround is both "use only dumb cables (which use only one of the CC pins)" and "never connect to a USB-C device which might source power while the rpi is being powered by something other than the USB-C".
Wouldn't this actually apply to a lot of use-cases of the project in the linked blog?
The whole point is connecting the RPi as a peripheral of a laptop, i.e. a power-sourcing host. if you do that, you'll also likely be tempted to use an external power supply for the Pi as the USB's supply is limited. It's important to note that this will lead to problems.
Re: Raspberry Pi 4 as a USB-C peripheral
#49Earlier quoted context omitted.
Aliexpress. Amazon. eBay.
Hmm, quick Amazon search I'm seeing $5-6, more if you're outside USA. https://www.amazon.com/s?k=ATmega32U4
My bad: forgot we were talking 32U4. Here's a link for $2.70: https://www.aliexpress.com/item/32846843498.html?src=google&...
Re: Raspberry Pi 4 as a USB-C peripheral
#50Earlier quoted context omitted.
Hmm, quick Amazon search I'm seeing $5-6, more if you're outside USA. https://www.amazon.com/s?k=ATmega32U4
It varies and you can't always find the same price. The last price I paid for Nanos on Amazon was 5 for $17. Aliexpress is cheaper than that (that's where they're usually under $3), but I can't always wait that long. My bad: forgot we were talking 32U4. Here's a link for $2.70: https://www.aliexpress.com/item/32846843498.html?src=google&...