-
@maze1980, thank you for reminding us on that limitation.
'so it might damage the USB port'
IMO I doubt it, unless one carelessly shorts the data pins or V+
The docs below indicate the ports limit the current unless enumeration is successful.I have a three year old laptop with both USB2 and USB3 ports. It has always blindly allowed me to pull at least 500ma from the USB2 ports. Probably as it actually read this:
https://www.maximintegrated.com/en/app-notes/index.mvp/id/4803
bullet 1 "In USB 2.0, it is not strictly legal to draw power without enumerating, although much of present-day hardware does just that, and in violation of the spec."https://www.electronicdesign.com/interconnects/introduction-usb-power-delivery
https://electronics.stackexchange.com/questions/5498/how-to-get-more-than-100ma-from-a-usb-port
The process of enumeration:
@Robin: USB devices must be in low-power mode (max. 100 mA) initially. They can negotiate high-power mode (max. 500 mA for USB2.0), and only then they are allowed to use more power.
For the Pico itself it's not an issue.
But if you want connect additional devices to the Pico and power them by the USB port it might be an issue. While most PCs deliver 500mA per port some PCs and laptops don't. Connecting this sensor would draw slightly above 100mA, so it might damage the USB port (worst case scenario), that's why I asked.