Electronic – Measuring Current Consumption of USB Devices

current measurementmultimeter

I was trying to measure the current draw of a USB-powered device (a Raspberry Pi) to determine the suitability of powering from an external battery pack. So I took a USB cable, split the +5v (red) line, placed a DMM on the line, plugged it in, and got…. nothing. The pi wouldn't boot. Replacing the DMM with a jumper worked fine, so the cable was good and I didn't screw it up with splitting the +5v line. Is it possible the internal resistance of the multimeter caused too much voltage drop on the line for the Pi to boot? What's the right way to do this?

To clear up other possibilities:

  • The meter works fine on other applications.
  • I double checked the setting of the meter, set to mA.

Best Answer

Do this:

  1. Unplug the cable from the host and the device.
  2. Make S1.
  3. Adjust the power supply for 5V out as read on V.
  4. Open S1
  5. Connect the cable to the host.
  6. Connect the cable to the device.
  7. Make S1.
  8. If required, readjust the power supply for 5V across V.
  9. Read the current into the device on I.

enter image description here

S1 is a simple ON-OFF toggle, slide, or alternate-action pushbutton switch rated to carry at least the device load current and hot-switch 5VDC, and the 100µF cap is used to debounce it.

The device's input voltage is measured on the load side of the ammeter, and by setting it to 5V using the voltmeter, the burden imposed by the ammeter will be lifted.

The circuit works by having the host and the device ready to talk to each other when the cable is connecting them, and then allowing them start when S1 is made.