Add USB To Your Electronics Projects! - The USB Protocol Explained

440,522
0
Published 2023-01-25
USB is both the simplest and most complex interface to use. It is simple to plug in and let the computer handle. It is complex to create and run a microcontroller with it.

-- Links --
My Website: sinelab.net/

Buy me a coffee: www.buymeacoffee.com/thesinelab
Bitcoin Address: bc1qwlfr2ml9km4r5vhpfh7f3m60k80whhcq3ysths
Ethereum Address: 0x7e8B8Ff8D6bD8DfB48b4A139694BB343f040Bb3f

Schematic: sinelab.net/pdf/usb_test.pdf
Code: sinelab.net/code/usbify.zip
ASF-USB: asf.microchip.com/docs/latest/asf_usb.html
LUFA: www.fourwalledcubicle.com/LUFA.php
USB Datasheet: sinelab.net/pdf/usb-20-specification.pdf
ATmega16u2 Datasheet: sinelab.net/pdf/ATmega16u2.pdf
Adapter: www.aliexpress.us/item/2251832624996364.html?spm=a…
--

All Comments (21)
  • I have no idea how I ended up here. I'm light years away from this level of engineering. But this video was explained so well. This seems really helpful! Thank you for making this!
  • @alexstone691
    I thought finally a VUSB tutorial that a mortal can understand, most distributers dont ship to Serbia and locals are ripoff and dont have most modern ics
  • If you just need serial connection to be turned into USB connection, CH340 (with some series of chips requiring even less external components than the rest, like CH340C) is a really, really cheap option.
  • @BoredInNW6
    Oh wow! I had no idea those solderless SMD adaptors existed! The whole video was good, but that bit of information was life changing!
  • Ben Eater has made a video on the USB protocol explaining it from the oscilloscope point of view, with an implementation on 6502.
  • @Mike98006
    Great introduction to USB programming. It would be nice to see a video explaining how HID interfaces work and how they correlate with the low-level USB transfers described in this video.
  • This was a really nice and concise intro - a lot of other videos on the topic are 45 minutes long and so boring I couldn't make it through!
  • @lalchandra4590
    Oh really this is 15 min long video. I think it's level is many hours of study in college. I shocked that this video's every frame is informative. Thanks for saving alot my time.
  • @soroush92
    God knows how many times I tried to find a useful resource to get familiar with usb protocol. God bless u and ur family sir. I will follow u forever ♥️
  • @jercos
    Excellent overview, though for nearly $4 in the current market, I'd favor an RP2040/pi pico over an atmega. PIOs can handle matrix scanning, sensor interfacing, and even a second USB, while the SIO peripheral offers the low-latency pin access often missing from 32-bit mcus.
  • @rusticbear195
    This is not at all what I was looking for, but I'm glad I got here. This was a wonderfully in depth guide
  • Cool video, dude! I was expecting the USB FTDI UART merry-go-round ride, but instead we went on the USB roller coaster, underwater in the dark! Thanks:face-blue-smiling:
  • I studied molecular biology. It’s amazing how DNA encodes its information so efficiently - i.e. at the most basic level our genes are coded following the same structure as the USB packet. There’s a binding site that allows for a protein complex to latch on upstream of the gene. Then that complex slides along the DNA, sniffing for the START sequence. Downstream of that is the body of the data, followed by a STOP sequence. At a higher level, there’s plenty of extra modifying data in and around the gene, as well as different interpretations of the data where chunks can be edited out. The bulk of this coding scheme evolved in very, very early life and every cell on earth depends on this established protocol. There’s so much more going on at the higher control level of gene translation that we still don’t understand - we need the brilliant minds of computer science to reveal to us how exactly the cell operates translation and gene expression.
  • i've harvested a bunch of analog turning knobs, sliders, latching and tactile switches from a ancient fried 8-channel sony mixpult. I'm gonna use them to upgrade my flightsim setup; this video is worth its time in gold since i had no idea how to cross the analog-digital bridge. thank you a thousand times.
  • @snipsnap9995
    This is exactly the type of video I was looking for a few months ago! This is the perfect start for those who want to hack around with USB
  • @Delali
    This is really cool to learn. I kinda got a little lost mid-way but i think its because of all the technical terms. I'd definitely implement some of the ideas here soon on my channel. Always good to learn
  • @SodAlmighty
    That was the most detailed and useful USB tutorial I've ever seen.
  • @dalesmith8666
    The absolute easiest USB chip to use is the Microchip PIC18F4550, DIP40! Plenty of examples, great datasheet, and applications notes. Been using these for years! No surface mount nonsense, either! An excellent book is Jan Axleson USB Complete, for those that want to learn and experiment.
  • @myetis1990
    thank you for the great content. cant wait to see the next video about usb. hope it will be a mass storage class tutorial. or DFU