Electronic – arduino – Does the resistor value on D+ and D- line matter on Arduinos

arduinoresistorsusbusb device

I noticed from looking at the different Arduino boards schematic, there are 22 ohm resistors in series between the D+/D- pins from the USB port to the ATMega IC.

A snippet of the schematic of the Leonardo below:
enter image description here

However, the Sparkfun Qwiic Pro Micro USB-C schematic has 5.1K resistors instead (picture below). This made me think; does the value of the resistors on the D+ and D- line have to be within the 22 ohm range? What happens if there is no resistor or the resistor value is really high (over 10k)?

enter image description here

Best Answer

What happens if there is no resistor or the resistor value is really high (over 10k)?

The USB connection won't work. Remember that there are pulldown resistors in the hub/host with about 20k ohms.

The 5.1K value for R8 and R9 on the Qwiic Pro is a slight mistake in the schematic - these resistors use the same footprint as others but should have a different ohms value. The vendor has omitted the BOM (bill of materials) for this product, so we would need to measure on a finished PCB for the actual value - which I'm pretty sure is 22 ohms.