USB without USB, in 10 cents!

  Рет қаралды 20,598

CNLohr

CNLohr

Жыл бұрын

I believe I now have made the cheapest USB enabled microcontroller. Check out this project's github here: github.com/cnlohr/rv003usb
Patreon: / cnlohr

Пікірлер: 135
@vincei4252
@vincei4252 Жыл бұрын
That's a top quality cat right there.
@CNLohr
@CNLohr Жыл бұрын
Friday is the best!
@user-jp1qt8ut3s
@user-jp1qt8ut3s Жыл бұрын
Nice, that you use a cat instead of a mouse to work on your computer
@maxime22000b
@maxime22000b Жыл бұрын
UUOC !
@addrian27
@addrian27 4 ай бұрын
The mouse is in the cat
@ericbwertz
@ericbwertz Жыл бұрын
You didn't bit-bang that -- Friday signal-scratched it. Kitty power!
@CNLohr
@CNLohr Жыл бұрын
I might steal that.
@ericbwertz
@ericbwertz Жыл бұрын
@@CNLohr Good luck clawing it away from Friday!
@davidwillmore
@davidwillmore Жыл бұрын
Good boy, Friday!
@u2bear377
@u2bear377 5 ай бұрын
How does one know a cat named Friday is male? P.S. In Russian the word for Friday ("пятница", 'pyatnitsa') is feminine. But we all have read 'Robinson Crusoe', so Пятница as a given name is perceived as male.
@king_james_official
@king_james_official 26 күн бұрын
@@u2bear377one has to ask. words in english aren't gendered like in russian, french, german, etc.
@Markfps
@Markfps Жыл бұрын
Dude you're insane, thank you and your friends. Amazing work
@CNLohr
@CNLohr Жыл бұрын
It has been one ride!
@Xoferif
@Xoferif Жыл бұрын
Wow! Really amazing work! I've always been a bit "meh" about RISC-V,, but these $0.10 micros have really captured my imagination. There's so much you can do with them (as demonstrated in this video).
@xThirdOpsx
@xThirdOpsx Жыл бұрын
I mean the ESP family of mcu is pretty amazing
@not_just_burnt
@not_just_burnt Жыл бұрын
that passport on the floor
@HilaryCheng
@HilaryCheng Жыл бұрын
Amazing! Watch your live several time and finally, you've done it!
@CNLohr
@CNLohr Жыл бұрын
I was so worried along the way it wouldn't be possible. But yes, it indeed does work.
@mariobv947
@mariobv947 Жыл бұрын
@@CNLohr When I listened to a talk given by the guy that coded Grainuum for M0+, if i recall right, he said that it's ok for the device to miss a first USB query, so the MCU would have enought time to process the request so then it could reply to the second trial, and even he said that the code could dismiss the CRC checking because 99% of time, USB packets would remain error free. I think your Bit-banged USB implementation for RV is by far much more reliable.
@remy-u8t
@remy-u8t Жыл бұрын
Watched some of the streams. Nice job on fixing the bug 🎉.
@CNLohr
@CNLohr Жыл бұрын
I'm glad to have had you all!
@DiyintheGhetto
@DiyintheGhetto Жыл бұрын
Hey Charles awesome you got it finally working. Congrats.
@guest7329
@guest7329 Жыл бұрын
🎉glad to help, it would be cool to see more projects on stream
@CNLohr
@CNLohr Жыл бұрын
It's really stressful, and also reduces my subscribers :-/
@guest7329
@guest7329 Жыл бұрын
@CNLohr hm interesting, it was same with libsurvive?
@randallyoung6715
@randallyoung6715 Жыл бұрын
Congrats, so fun to watch this come together!
@CNLohr
@CNLohr Жыл бұрын
I'm glad to have had everyone here for it.
@gustinian
@gustinian Жыл бұрын
Congratulations, you did it. Sterling effort all round. 🎉
@CNLohr
@CNLohr Жыл бұрын
🎉
@MaxintRD
@MaxintRD Жыл бұрын
One word: Wow! Excellent job and amazing work indeed!
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@MH-GoL
@MH-GoL Жыл бұрын
Amazing work! Time to solder some tiny copper wires to the usb c connectors of my boards.
@happyhippo4664
@happyhippo4664 4 ай бұрын
Your skills are beyond my capabilities - or more correctly put, my patience. The programmer is cheap and easy to use. And this chip now has Arduino IDE support, which makes it even easier to use.
@CNLohr
@CNLohr 4 ай бұрын
Start playing with it. I highly recommend. The on-ramp to doing more advanced things is stead and the learning curve shallow. Start by playing around in Arduino, then read through the reference manual.
@NicolaGuerrera
@NicolaGuerrera Жыл бұрын
Astonishing as always! And cute cat :3
@CNLohr
@CNLohr Жыл бұрын
Friday is the best!
@luizcarlosf2
@luizcarlosf2 Жыл бұрын
Dude !! That's impressive to say at least.... curious to read how you capture the initiation... Thanks for posting the code!
@CNLohr
@CNLohr Жыл бұрын
What do you mean by "capture the initiation" I only do things that feel like they *have* to get done.
@ytfp
@ytfp Жыл бұрын
Was fun, great work!
@matthewpeterson5159
@matthewpeterson5159 Жыл бұрын
Great work!
@Chaminox
@Chaminox Жыл бұрын
absolute legend
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@stepannovotny4291
@stepannovotny4291 11 ай бұрын
Uh ...Okay! I really wasn't expecting this. Definite up-vote for this one!
@mgk878
@mgk878 Жыл бұрын
Very nice work bro
@CNLohr
@CNLohr Жыл бұрын
Thanks
@YusufBAYLAV
@YusufBAYLAV Жыл бұрын
That's cool Charles. Thanks
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@nikbivation
@nikbivation Жыл бұрын
thank you for this!
@RaOne-gk3ok
@RaOne-gk3ok 4 ай бұрын
THIS IS EPIC
@LogicEu
@LogicEu Жыл бұрын
Amazing, great stuff!
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@anispinner
@anispinner Жыл бұрын
Legend has it, legend has done it
@mariobv947
@mariobv947 Жыл бұрын
Congratulations!!!
@onjofilms
@onjofilms Жыл бұрын
wow, that's amazing!
@dominogolian7858
@dominogolian7858 Жыл бұрын
Nice job!
@CNLohr
@CNLohr Жыл бұрын
Thanks
@rumidom
@rumidom Жыл бұрын
would be nice if someone took this and started selling supercheap development boards, like arduino nanos but 50 cents
@CNLohr
@CNLohr Жыл бұрын
That is what I am hoping for!
@iamjimgroth
@iamjimgroth Жыл бұрын
​@@CNLohr Aren't you going to do it? I would totally buy a ton of them!
@flomojo2u
@flomojo2u Жыл бұрын
Really amazing accomplishment, there's always that worry when working on smaller devices that you'll get 90% of the way through to implementing it, only to run out of resources... You kind of need to be willing to accept that possibility when starting such a project, but it sure makes it all worth it when you succeed! One question: is the 2KB bootloader separate from the main 16KB of flash?
@moeezmalik13
@moeezmalik13 Жыл бұрын
I believe so yes, he mentioned that on the Amp Hour podcast recently.
@vkoskiv
@vkoskiv Жыл бұрын
What if they bump up the unit price now that they can advertise USB support 😅
@shrikedecil
@shrikedecil Жыл бұрын
The market for $0.10 chips is "Trying to sell them by the 10,000s to washing machine companies" and similar. Going to $1/chip to soak the home electronic maker community ... would make them far less competitive in far larger markets that already have plenty of tools to program without this.
@mariobv947
@mariobv947 Жыл бұрын
Taken into account that a CH32V203F8P6 as cheap as 0.50 has two USB interfaces, and one of them has Full speed USB host support, and the recent advent of the CH32V035, advertised as USB capable, then i guess the V003 hasn't got much margin for rising its price.
@TheBodgybrothers
@TheBodgybrothers Жыл бұрын
You are a treasure!
@CNLohr
@CNLohr Жыл бұрын
I'll let Friday know.
@atc1441
@atc1441 Жыл бұрын
Woah! Great
@landspide
@landspide Жыл бұрын
Epic!!!
@Afrotechmods
@Afrotechmods Жыл бұрын
Kitty!
@sundinmikael
@sundinmikael Жыл бұрын
Impressive CNLohr. Order 40pcs of SO8 with the programmer for 15 usd :) Good to have a small fast MCU with 3.3v to 5v capability.
@iuri.castro
@iuri.castro Жыл бұрын
It was a long journey, but the reward made it worth it!
@CNLohr
@CNLohr Жыл бұрын
(!!!) I did not even know if we could get here.
@juanestebanrodriguez9742
@juanestebanrodriguez9742 Жыл бұрын
TKS A LOHR!
@CNLohr
@CNLohr Жыл бұрын
welcome
@tenet-rotas
@tenet-rotas Жыл бұрын
Aaamazing :))
@167mm167
@167mm167 Жыл бұрын
awesome ..
@irukard
@irukard Жыл бұрын
Wow! 🎉
@davidpatry4195
@davidpatry4195 Жыл бұрын
!!!!! Congratulations!! Have they contacted you for a job offer yet ?
@marios2liquid
@marios2liquid Жыл бұрын
Why some dev boards for this device (ebay, aliexpress) have a USB connector on the PCB, if HW/SW USB didn't exist before? Was it just for power?
@CNLohr
@CNLohr Жыл бұрын
yes
@SplitScreamOFFICIAL
@SplitScreamOFFICIAL Жыл бұрын
He truly is a good Friday
@CNLohr
@CNLohr Жыл бұрын
Only the best.
@andreamitchell4758
@andreamitchell4758 Жыл бұрын
He looks so interested yet puzzled
@CNLohr
@CNLohr Жыл бұрын
He never *really* knows what's going on.
@hafo821
@hafo821 Жыл бұрын
@@CNLohr maybe you are wrong, and he will try himself when nobody´s at home
@silenthunter0019
@silenthunter0019 8 ай бұрын
I have some problem about PD1 .It ing but I can't program it any more
@TheRainHarvester
@TheRainHarvester Жыл бұрын
Great work! Could this be ported to esp12e/f? Those chips have lots of ram and wifi and cost $1.
@CNLohr
@CNLohr Жыл бұрын
espusb already exists for them. You could take that project and add a bootloader.
@Chriva
@Chriva Жыл бұрын
Hm. Why do I think your twitter post about bootloaders is related to this? ;) Do these have lockable partitions? :)
@nickst2797
@nickst2797 6 ай бұрын
I saw the recent Arduino IDE integration, and your comments on Hackaday. I have two questions to ask. 1) I see some ch32v chips with 8 pins and other with many more pins. Is the Arduino Integration for the 8 pin ones only? Which ones do you suggest? 2) If we dont use a USB, can we program it with something like SPI on the arduino? If yes, is there a schematic available? Because I only find USB schematics (your github). Thanks for all the work!
@CNLohr
@CNLohr 4 ай бұрын
Oh gosh, I can't answer any of these but folks in my Discord can (message me at `cnlohr` for a link). Or you can open a ticket on github
@nickst2797
@nickst2797 4 ай бұрын
@@CNLohr Thanks!
@mortenmoulder
@mortenmoulder Жыл бұрын
That's really awesome. Do you need to flash them beforehand, or can everything be done via USB?
@bearnaff9387
@bearnaff9387 Жыл бұрын
They would need to be programmed through the normal programming interface first.
@CNLohr
@CNLohr Жыл бұрын
That could happen at the factory, though.
@tarnaigy
@tarnaigy Жыл бұрын
You still got it... When is bitbang ethernet coming? :D
@CNLohr
@CNLohr Жыл бұрын
whoo knowwws
@roanbrand7358
@roanbrand7358 4 ай бұрын
How to flash initially though
@CNLohr
@CNLohr 4 ай бұрын
Via the programming header.
@TojiFushigoroWasTaken
@TojiFushigoroWasTaken Жыл бұрын
Cat 🥰
@ErbyArt
@ErbyArt 10 ай бұрын
do you happen to take commissions or gigs and do odd jobs in general for people who need something weird made? 😳
@amoose136
@amoose136 Жыл бұрын
This is neat but I assume you need an external tool to initially flash this into the boot sector?
@davidwillmore
@davidwillmore Жыл бұрын
Yes, but you can make a temporary one.
@CNLohr
@CNLohr Жыл бұрын
Or it could be done in the factory.
@a_pullin
@a_pullin Жыл бұрын
Does anyone sell those boards yet?
@CNLohr
@CNLohr Жыл бұрын
Not quite but sooon
@Dyas777
@Dyas777 Жыл бұрын
Is it hard to make real time C debug through USB? Does this approach even make sense? I know that you can do this with device programmer in some MCUs.
@CNLohr
@CNLohr Жыл бұрын
For gdb-style debugging this doesn't make sense, but it should be possible to "printf" back through the interface.
@Philip8888888
@Philip8888888 10 ай бұрын
I guess I don't need to buy the CH32V203F8P6 any more :P
@ermuhambetcalmenov8104
@ermuhambetcalmenov8104 4 ай бұрын
Артыңдағы мысық бақыт әкелді
@CNLohr
@CNLohr 4 ай бұрын
I'm glad! Friday is a good boy.
@king_james_official
@king_james_official 26 күн бұрын
how the hell did you fit a usb stack inside the boot sector lmao
@abdoun8214
@abdoun8214 Жыл бұрын
No bridging IC ?? Direct communication?? that's Crazy !
@CNLohr
@CNLohr Жыл бұрын
In software, there are no rules.
@l3p3
@l3p3 Жыл бұрын
Can the USB interface only be used for reset-flashing or also by the userspace program put on the payload area? Can I flash a program on it that accesses the usb bitbang interface, without having a second usb implementation in userspace area?
@CNLohr
@CNLohr Жыл бұрын
The idea is the userspace app would use its own copy of the USB stuff, then it could be a keyboard, joystick etc.
@loudthing87
@loudthing87 Жыл бұрын
what distro is that
@CNLohr
@CNLohr Жыл бұрын
Linux Mint Mate
@hafo821
@hafo821 Жыл бұрын
you need a CH32 and the cat
@CNLohr
@CNLohr Жыл бұрын
We can take on the world
@zyxwvutsrqponmlkh
@zyxwvutsrqponmlkh Жыл бұрын
Is this going to be as finicky as teensy?
@CNLohr
@CNLohr Жыл бұрын
Oohh, I am curious your take on this! What aspect was finicky? If I can understand that I can make it not finicky!
@zyxwvutsrqponmlkh
@zyxwvutsrqponmlkh Жыл бұрын
@@CNLohr Mostly the USB to serial drivers.
@LandonRaces
@LandonRaces 11 ай бұрын
Run Linux on it
@pacsmile
@pacsmile Жыл бұрын
these chips are going to shot up in price, aren't they?
@CNLohr
@CNLohr Жыл бұрын
That isn't how these chinese companies work. Why try to extract every last cent from a market, when you have the opportunity to grow it 10-fold? The western approach to this is awful.
@Vampirat3
@Vampirat3 Жыл бұрын
Im here from being a developer and youtube algorithms. But im staying for the lean mean coding , and nifty project demo! and friday 2. friday should have his own meme coin. there , I said it.
@CNLohr
@CNLohr Жыл бұрын
I'm glad I have you here! Did I get the sub?
@Vampirat3
@Vampirat3 Жыл бұрын
@@CNLohr Yessir , that was a sub well earned!
@classyjohn1923
@classyjohn1923 Жыл бұрын
can you teach me? I want to learn and be good at programming microcontrollers...
@CNLohr
@CNLohr Жыл бұрын
Watch my livestreams and videos! I try to teach everyone.
@Diamonddrake
@Diamonddrake Жыл бұрын
Putting the risc-v in vUSB? bit banging usb for the win!
@timmturner
@timmturner Жыл бұрын
I knew you could do it, congratulations to all involved.
@CNLohr
@CNLohr Жыл бұрын
🎉
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 64 МЛН
Trolling My Mom With an E-Paper Picture
11:05
CNLohr
Рет қаралды 751 М.
I tried finding Hidden Gems on AliExpress AGAIN! (SPECIAL Part 10)
15:11
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 943 М.
Game Made for VR on a $1 Processor?
16:48
CNLohr
Рет қаралды 21 М.
Arm vs RISC-V? Which One Is The Most Efficient?
17:12
Gary Explains
Рет қаралды 125 М.
Building a haptic input knob from scratch!
11:29
scottbez1
Рет қаралды 1,1 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Лазер против камеры смартфона
1:01
Newtonlabs
Рет қаралды 734 М.