News for hackers. Stuff that matters.
Re:Raspberry Pi 4 as a USB-C peripheral by rkagerer on Saturday November 02, 2019 @08:15PM (#21431072)
You 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.

Re:Raspberry Pi 4 as a USB-C peripheral by IshKebab on Sunday November 03, 2019 @06:28AM (#21433268)
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).

Re:Raspberry Pi 4 as a USB-C peripheral by HeyLaughingBoy on Sunday November 03, 2019 @11:48AM (#21434949)
Tool Familiarity?

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 by 127 on Sunday November 03, 2019 @06:56AM (#21433366)
Full ATmega32U4 board is 2.50 and doesn't need any hacks to work.
Re:Raspberry Pi 4 as a USB-C peripheral by rkagerer on Sunday November 03, 2019 @08:15AM (#21433673)
Could you provide a link to that $2.50 price?
Re:Raspberry Pi 4 as a USB-C peripheral by HeyLaughingBoy on Sunday November 03, 2019 @11:46AM (#21434931)
Aliexpress. Amazon. eBay.
Re:Raspberry Pi 4 as a USB-C peripheral by rkagerer on Sunday November 03, 2019 @02:30PM (#21436004)
Hmm, quick Amazon search I'm seeing $5-6, more if you're outside USA. https://www.amazon.com/s?k=ATmega32U4
Re:Raspberry Pi 4 as a USB-C peripheral by HeyLaughingBoy on Monday November 04, 2019 @07:50AM (#21441116)
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&...

Re:Raspberry Pi 4 as a USB-C peripheral by rkagerer on Tuesday November 05, 2019 @06:21AM (#21451360)
Thanks!