news.volyx.in

Making USB devices – end to end guide to your first gadget (popovicu.com)

441 points by todsacerdoti · 802 days ago · 76 comments on HN

Article summary

The article provides an introduction to making USB devices, covering the basics of USB, including hardware and software aspects, and guides the reader through building a simple USB device using an STM32 microcontroller. It explains the concept of differential pairs, impedance, and protocol layers, and provides an example of building a serial port device. The article aims to give a basic understanding of USB and its implementation. It also touches on the use of development boards and microcontrollers for USB device development.

Main themes

  • USB device development
  • Microcontrollers
  • Differential pairs and impedance
  • USB protocol and software
  • Development boards
  • Hardware design

What commenters say

  • Using an ST microcontroller for USB device development can be more complex compared to other options like the ESP32 ecosystem.
  • Differential pairs and impedance are important considerations for high-speed USB designs, but may not be a concern for beginners or low-speed applications.
  • The $6,000 fee for a USB Vendor ID can be a significant barrier for small businesses or hobbyists, but some companies offer free or low-cost alternatives.
  • Some commenters argue that the USB Vendor ID system is not a significant issue, as many companies can get a free Product ID from their chip manufacturer or use a shared ID for hobbyist projects.
  • Others disagree, stating that the limited number of available Vendor IDs and the cost of obtaining one can be a problem for small businesses or organizations that need to deploy multiple devices.
  • There are alternative options for obtaining a Vendor ID, such as licensing from companies that have already purchased a VID, or using a shared ID for open-source hardware projects.
  • The USB-IF's policy on Vendor IDs and Product IDs can be restrictive and may not accommodate the needs of all developers, particularly those working on small-scale or niche projects.