USB without USB, in 10 cents!

  Рет қаралды 21,312

CNLohr

CNLohr

Күн бұрын

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

Пікірлер: 140
@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 5 ай бұрын
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 6 ай бұрын
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 2 ай бұрын
@@u2bear377one has to ask. words in english aren't gendered like in russian, french, german, etc.
@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
@Markfps
@Markfps Жыл бұрын
Dude you're insane, thank you and your friends. Amazing work
@CNLohr
@CNLohr Жыл бұрын
It has been one ride!
@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!
@MH-GoL
@MH-GoL Жыл бұрын
Amazing work! Time to solder some tiny copper wires to the usb c connectors of my boards.
@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?
@gustinian
@gustinian Жыл бұрын
Congratulations, you did it. Sterling effort all round. 🎉
@CNLohr
@CNLohr Жыл бұрын
🎉
@happyhippo4664
@happyhippo4664 5 ай бұрын
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 5 ай бұрын
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.
@DiyintheGhetto
@DiyintheGhetto Жыл бұрын
Hey Charles awesome you got it finally working. Congrats.
@Chaminox
@Chaminox Жыл бұрын
absolute legend
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@MaxintRD
@MaxintRD Жыл бұрын
One word: Wow! Excellent job and amazing work indeed!
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@randallyoung6715
@randallyoung6715 Жыл бұрын
Congrats, so fun to watch this come together!
@CNLohr
@CNLohr Жыл бұрын
I'm glad to have had everyone here for it.
@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.
@stepannovotny4291
@stepannovotny4291 Жыл бұрын
Uh ...Okay! I really wasn't expecting this. Definite up-vote for this one!
@RaOne-gk3ok
@RaOne-gk3ok 6 ай бұрын
THIS IS EPIC
@NicolaGuerrera
@NicolaGuerrera Жыл бұрын
Astonishing as always! And cute cat :3
@CNLohr
@CNLohr Жыл бұрын
Friday is the best!
@ytfp
@ytfp Жыл бұрын
Was fun, great work!
@Afrotechmods
@Afrotechmods Жыл бұрын
Kitty!
@matthewpeterson5159
@matthewpeterson5159 Жыл бұрын
Great work!
@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.
@YusufBAYLAV
@YusufBAYLAV Жыл бұрын
That's cool Charles. Thanks
@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!
@anispinner
@anispinner Жыл бұрын
Legend has it, legend has done it
@timmturner
@timmturner Жыл бұрын
I knew you could do it, congratulations to all involved.
@CNLohr
@CNLohr Жыл бұрын
🎉
@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.
@nikbivation
@nikbivation Жыл бұрын
thank you for this!
@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
@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.
@davidpatry4195
@davidpatry4195 Жыл бұрын
!!!!! Congratulations!! Have they contacted you for a job offer yet ?
@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
@atc1441
@atc1441 Жыл бұрын
Woah! Great
@nickst2797
@nickst2797 7 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@CNLohr Thanks!
@mgk878
@mgk878 Жыл бұрын
Very nice work bro
@CNLohr
@CNLohr Жыл бұрын
Thanks
@landspide
@landspide Жыл бұрын
Epic!!!
@tenet-rotas
@tenet-rotas Жыл бұрын
Aaamazing :))
@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
@Chriva
@Chriva Жыл бұрын
Hm. Why do I think your twitter post about bootloaders is related to this? ;) Do these have lockable partitions? :)
@mariobv947
@mariobv947 Жыл бұрын
Congratulations!!!
@LogicEu
@LogicEu Жыл бұрын
Amazing, great stuff!
@CNLohr
@CNLohr Жыл бұрын
Thanks!
@silenthunter0019
@silenthunter0019 9 ай бұрын
I have some problem about PD1 .It ing but I can't program it any more
@roanbrand7358
@roanbrand7358 6 ай бұрын
How to flash initially though
@CNLohr
@CNLohr 5 ай бұрын
Via the programming header.
@SplitScreamOFFICIAL
@SplitScreamOFFICIAL Жыл бұрын
He truly is a good Friday
@CNLohr
@CNLohr Жыл бұрын
Only the best.
@TheBodgybrothers
@TheBodgybrothers Жыл бұрын
You are a treasure!
@CNLohr
@CNLohr Жыл бұрын
I'll let Friday know.
@tarnaigy
@tarnaigy Жыл бұрын
You still got it... When is bitbang ethernet coming? :D
@CNLohr
@CNLohr Жыл бұрын
whoo knowwws
@bennguyen1313
@bennguyen1313 26 күн бұрын
Any thoughts on Grainuum USB (sean xobs), or V-USB/tinyUSB? Or the Cynthion hardware for usb debugging?
@CNLohr
@CNLohr 17 күн бұрын
I really don't like tinyUSB because it is ANYTHING BUT TINY. But, V-USB is great, and I've played with grainuum.
@irukard
@irukard Жыл бұрын
Wow! 🎉
@onjofilms
@onjofilms Жыл бұрын
wow, that's amazing!
@dominogolian7858
@dominogolian7858 Жыл бұрын
Nice job!
@CNLohr
@CNLohr Жыл бұрын
Thanks
@167mm167
@167mm167 Жыл бұрын
awesome ..
@ErbyArt
@ErbyArt Жыл бұрын
do you happen to take commissions or gigs and do odd jobs in general for people who need something weird made? 😳
@Philip8888888
@Philip8888888 Жыл бұрын
I guess I don't need to buy the CH32V203F8P6 any more :P
@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.
@TojiFushigoroWasTaken
@TojiFushigoroWasTaken Жыл бұрын
Cat 🥰
@abdoun8214
@abdoun8214 Жыл бұрын
No bridging IC ?? Direct communication?? that's Crazy !
@CNLohr
@CNLohr Жыл бұрын
In software, there are no rules.
@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.
@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.
@ermuhambetcalmenov8104
@ermuhambetcalmenov8104 5 ай бұрын
Артыңдағы мысық бақыт әкелді
@CNLohr
@CNLohr 5 ай бұрын
I'm glad! Friday is a good boy.
@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.
@king_james_official
@king_james_official 2 ай бұрын
how the hell did you fit a usb stack inside the boot sector lmao
@CNLohr
@CNLohr 17 күн бұрын
If you realllyyyy wanna know, I recorded the livestreams.
@king_james_official
@king_james_official 17 күн бұрын
@@CNLohr oh i realllyyyy wanna know ;3
@king_james_official
@king_james_official 17 күн бұрын
@@CNLohr oh i see the streams, thanks a lot!!!
@loudthing87
@loudthing87 Жыл бұрын
what distro is that
@CNLohr
@CNLohr Жыл бұрын
Linux Mint Mate
@a_pullin
@a_pullin Жыл бұрын
Does anyone sell those boards yet?
@CNLohr
@CNLohr Жыл бұрын
Not quite but sooon
@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.
@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.
@LandonRaces
@LandonRaces Жыл бұрын
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!
@Diamonddrake
@Diamonddrake Жыл бұрын
Putting the risc-v in vUSB? bit banging usb for the win!
@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.
Trolling My Mom With an E-Paper Picture
11:05
CNLohr
Рет қаралды 752 М.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 53 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 9 МЛН
I Built The First LAMINAR FLOW ROCKET ENGINE
15:51
Integza
Рет қаралды 1 МЛН
#12- The 10 cents RISC-V MCU already supports Arduino!
4:12
Writing a Really Tiny RISC-V Emulator
19:59
CNLohr
Рет қаралды 60 М.
Game Made for VR on a $1 Processor?
16:48
CNLohr
Рет қаралды 21 М.
What is the Smallest Possible .EXE?
17:57
Inkbox
Рет қаралды 383 М.
Open source lightweight interpreter made in a day
9:08
bitluni
Рет қаралды 89 М.
I Made a Tool for DIY Electronics
12:44
Positive Altitude
Рет қаралды 34 М.
But, Can It Run Doom?
8:37
CNLohr
Рет қаралды 91 М.