# Adafruit USB Power Gauge Mini-Kit

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/013/252/medium800/instruments_1549_LRG.jpg?1388322543)

This little USB port go-between is like a speed gauge for your USB devices. Instead of hauling out a multimeter and splicing cables, plug this in between for a quick reading on how much current is being drawn from the port. Great for seeing the charge rate of your phone or tablet, checking your battery chargers, or other USB powered projects.   
  
Data is passed through transparently from end to end, so you can use it with _any_ USB device at any speed. The power line has a 0.1 ohm current sense resistor an an INA169 high-side current sensor that is tracked by a little ATtiny85 chip. The microcontroller is programmed to read the current draw as well as the bus voltage and light up the strip of LEDs on the side.   
  
The LED strip gives you a quick visual "power OK" and an indication of your power usage. But we also stream the data to a serial port so you can monitor, log and/or plot it on your computer!  
  
The gauge comes as a mini kit with an assembled & tested PCB plus a separate USB jack and plug as shown above. The instructions on the following pages will show you how to assemble and use this handy gauge.  
  
**_Please note:_** _this is a handy gadget but it_ **_isn't_** _a multimeter! We do some basic calibration during test, but the serial output readings are not precise and should be used as a basic guide rather than lab-grade data plots. Assume a variance of at least 0.1V and 50mA due to noise, thermal changes, etc._   
  
  
# Adafruit USB Power Gauge Mini-Kit

## Assembly

The USB Power Gauge comes in kit form so that you can customize it to your needs. There are only 3 parts to the kit and basic assembly takes just a few minutes.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/413/medium800/instruments_parts.jpg?1388673232)

# Basic Assembly
Assembling the USB Power Gauge is pretty simple. Just solder the male and female USB connectors on either end. ## Solder the female connector.
This connector goes on the end marked "Device". Be sure to solder all pins, as well as the mounting tabs for a secure connection.![instruments_2013_12_29_IMG_2539-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/377/medium640/instruments_2013_12_29_IMG_2539-1024.jpg?1388661285)

![instruments_2013_12_29_IMG_2541-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/381/medium640/instruments_2013_12_29_IMG_2541-1024.jpg?1388661521)

![instruments_2013_12_29_IMG_2534-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/395/medium640/instruments_2013_12_29_IMG_2534-1024.jpg?1388664896)

## Solder the male connector
This goes on the end marked "Computer". Be sure to solder all pins, as well as the mounting tabs for a secure connection.![instruments_2013_12_29_IMG_2540-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/380/medium640/instruments_2013_12_29_IMG_2540-1024.jpg?1388661489)

![instruments_2013_12_29_IMG_2535-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/396/medium640/instruments_2013_12_29_IMG_2535-1024.jpg?1388664936)

With a connector on each end, your gauge is ready for use. Proceed to the next page for usage instructions, or read-on for other assembly options.

# In-Line Assembly
Optionally, the USB Power Gauge can also be spliced right into a cable for a more compact package without all the connectors. ## Cut and strip the cable
Trim back the outer insulation and foil shield. Then strip and tin each of the 4 inner wires.![instruments_2013_12_29_IMG_2543-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/382/medium640/instruments_2013_12_29_IMG_2543-1024.jpg?1388661583)

![instruments_2013_12_29_IMG_2544-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/383/medium640/instruments_2013_12_29_IMG_2544-1024.jpg?1388661621)

## Wire in-line
Solder the cut and stripped cable ends to the board - taking care to assure that the wire positions correspond exactly to the pins on the connectors.  
  
_ **Caution:** Standard USB color coding is shown in the diagram on the left. But it is best to verify conductivity with a multimeter because your cable may vary._  
  
Some 1/2" clear shrink-wrap tubing can be used to protect your wiring while still allowing you to see the indicator LEDs.  
![instruments_inline_wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/385/medium640/instruments_inline_wiring.jpg?1388663036)

# Serial Data Monitoring
For real-time monitoring of voltage, current and wattage over a serial link, you can connect an FTDI cable, FTDI Friend or even an XBee using the breakout holes on the side of the power meter board. Connect at 9600 Baud - data will be spit out automatically!  
## Connect the USB/Serial Cable:
You can solder the wired directly to the breakout holes, or add a header as shown here: You will only need to connect a ground wire and a signal wire to your serial device.  
  
**Connect:**  

- **GND -\> GND** (Black wire on an FTDI cable)  
- **Tx -\> Rx** (Yellow wire on an FTDI cable).  

![instruments_2013_12_31_IMG_2555-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/384/medium640/instruments_2013_12_31_IMG_2555-1024.jpg?1388661760)

![instruments_2013_12_29_IMG_2533-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/398/medium640/instruments_2013_12_29_IMG_2533-1024.jpg?1388665353)

# Adafruit USB Power Gauge Mini-Kit

## Use it!

![](https://cdn-learn.adafruit.com/assets/assets/000/013/388/medium800/instruments_1549_LRG.jpg?1388663686)

# LED Power Indicators
The green led indicates that you have power of at least 4.5v. This is the minimum effective voltage for charging or running most USB devices. If the green LED goes out, you know you should check your port, shorten the USB cable, or reduce the current draw.   
  
The blue LEDs give you an indication of the total power draw. They will light in sequence with increasing intensity. Each fully lit LED indicates 1 Watt of power ( ~200mA at 5V nominal). 1A represents a full-scale reading with all 5 blue LEDs lit. Most USB ports are rated for 500mA. Although the indicators will max-out at 1 Amp, the gauge is safe to use with devices drawing as much as 2 Amps.   
  
![](https://cdn-learn.adafruit.com/assets/assets/000/013/399/medium800/instruments_2014_01_02_IMG_2570-1024.jpg?1388667768)

## Analog Output
The A0 breakout hole next to the computer-side connector outputs the voltage across the 0.1 ohm current sense resistor. This give you an analog signal of 1 Volt per Amp of current through the gauge. This is handy if you want to measure more precise current draw using any multimeter, or connect it to a different kind of gauge that takes voltage input  
![](https://cdn-learn.adafruit.com/assets/assets/000/013/401/medium800/instruments_AnalogOut.jpg?1388668285)

# Serial Output

Voltage, current and wattage data are streamed in ASCII text on the TX pin at 9600 baud. Connect an FTDI friend, USB console cable, microcontroller, XBee, whatever you want that can read 9600 baud TTL serial data for datalogging, plotting or display.

Note that the logic level for the serial data out is 5V. If you are connecting to a 3.3V logic device, use a resistor divider or level shifter to bring it down from 5V to 3.3V

![](https://cdn-learn.adafruit.com/assets/assets/000/013/404/medium800/instruments_2013_12_31_IMG_2555-1024.jpg?1388668999)

## Example of serial output:
  

> > V: 5.5 I: 0 mA Watts: 0.0  
> > V: 5.2 I: 383 mA Watts: 2.0  
> > V: 5.1 I: 717 mA Watts: 3.6  
> > V: 5.1 I: 587 mA Watts: 3.0  
> > V: 5.3 I: 414 mA Watts: 2.2  
> > V: 5.3 I: 487 mA Watts: 2.6  
> > V: 5.3 I: 297 mA Watts: 1.6  
> > V: 5.3 I: 383 mA Watts: 2.0  
> > V: 5.3 I: 192 mA Watts: 1.0  
> > V: 5.4 I: 174 mA Watts: 0.9  
> > V: 5.4 I: 169 mA Watts: 0.9  
> > V: 5.4 I: 452 mA Watts: 2.4  
> > V: 5.3 I: 208 mA Watts: 1.1  
> > V: 5.4 I: 157 mA Watts: 0.8  
> > V: 5.5 I: 157 mA Watts: 0.9  
> > V: 5.3 I: 181 mA Watts: 1.0  
> > V: 5.4 I: 207 mA Watts: 1.1

# Adafruit USB Power Gauge Mini-Kit

## Hack It!

The USB Power Gauge is powered by an ATTiny85 processor (the same one used in our Trinket and Gemma!). You can find schematics and source code in the github repository so that you can customize your power meter too!   
  
[https://github.com/adafruit/USB-Power-Gauge](https://github.com/adafruit/USB-Power-Gauge)

[USB Power Gauge Github Repository](https://github.com/adafruit/USB-Power-Gauge)
## Power Gauge Breakout Holes:
All of the ICSP connections for in-circuit serial programming are available in the breakout holes on the edge of the board. These can be used with programmers such as our USBTinyISP.  
![instruments_2013_12_29_IMG_2533-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/391/medium640/instruments_2013_12_29_IMG_2533-1024.jpg?1388664071)

## Connect to your programmer:
Using the 6-pin connector on your USBTinyISP, connect:  

- **MISO -\> Tx**  
- **VCC -\> 5v**  
- **SCK -\> Clk**  
- **MOSI -\> SI**  
- **RST -\> Rst**  
- **GND -\> GND**  

_ **Note!** The ICSP pinouts diagram is viewed from the TOP of the connector. Note the position of pin 1._  
  
For details on programming with the USBTinyISP, see [this guide](http://learn.adafruit.com/usbtinyisp):   
![instruments_usbtinyisp_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/013/393/medium640/instruments_usbtinyisp_LRG.jpg?1388664243)

![instruments_icsp_6pin.png](https://cdn-learn.adafruit.com/assets/assets/000/013/394/medium640/instruments_icsp_6pin.png?1388664287)

# Schematics:
![](https://cdn-learn.adafruit.com/assets/assets/000/012/953/medium800/instruments_usbpowergauge_sch.png?1387241205)


## Featured Products

### Adafruit USB Power Gauge Mini-Kit

[Adafruit USB Power Gauge Mini-Kit](https://www.adafruit.com/product/1549)
This little USB port go-between is like a speed gauge for your USB devices. Instead of hauling out a multimeter and splicing cables, plug this in between for a quick reading on how much current is being drawn from the port. Great for seeing the charge rate of your phone or tablet, checking...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1549)
[Related Guides to the Product](https://learn.adafruit.com/products/1549/guides)
### USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi

[USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi](https://www.adafruit.com/product/954)
The cable is easiest way ever to connect to your microcontroller/Raspberry Pi/WiFi router serial console port. Inside the big USB plug is a USB\<-\>Serial conversion chip and at the end of the 36" cable are four wire - red power, black ground, white RX into USB port, and green TX out...

In Stock
[Buy Now](https://www.adafruit.com/product/954)
[Related Guides to the Product](https://learn.adafruit.com/products/954/guides)
### FTDI Serial TTL-232 USB Cable

[FTDI Serial TTL-232 USB Cable](https://www.adafruit.com/product/70)
Just about all electronics use TTL serial for debugging, bootloading, programming, serial output, etc. But it's rare for a computer to have a serial port anymore. This is a USB to TTL serial cable, with a FTDI FT232RL usb/serial chip embedded in the head. It has a 6-pin socket at the end...

In Stock
[Buy Now](https://www.adafruit.com/product/70)
[Related Guides to the Product](https://learn.adafruit.com/products/70/guides)
### FTDI Friend with Micro USB Port + extras

[FTDI Friend with Micro USB Port + extras](https://www.adafruit.com/product/284)
Long gone are the days of parallel ports and serial ports. Now the USB port reigns supreme! But USB is hard, and you just want to transfer your every-day serial data from a microcontroller to computer. What now? Enter the FTDI Friend!

The FTDI Friend is a tweaked out FTDI FT232RL chip...

In Stock
[Buy Now](https://www.adafruit.com/product/284)
[Related Guides to the Product](https://learn.adafruit.com/products/284/guides)
### USBtinyISP AVR Programmer  Kit (USB SpokePOV Dongle)

[USBtinyISP AVR Programmer  Kit (USB SpokePOV Dongle)](https://www.adafruit.com/product/46)
USBtinyISP is a simple open-source USB AVR programmer and SPI interface. It is low cost, easy to make, works great with avrdude, has **both** [6 and 10 pin standard ISP cables](http://www.evilmadscientist.com/article.php/avrtargetboards), is AVRStudio-compatible and...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/46)
[Related Guides to the Product](https://learn.adafruit.com/products/46/guides)
### INA169 Analog DC Current Sensor Breakout - 60V 5A Max

[INA169 Analog DC Current Sensor Breakout - 60V 5A Max](https://www.adafruit.com/product/1164)
This breakout board will solve all your current-monitoring problems. Instead of struggling with a multimeter, you can just use the handy INA169 chip on this breakout to both measure both the DC current draw and have a handy analog output that is with respect to ground. The analog output makes...

In Stock
[Buy Now](https://www.adafruit.com/product/1164)
[Related Guides to the Product](https://learn.adafruit.com/products/1164/guides)

## Related Guides

- [Bootloading Basics](https://learn.adafruit.com/bootloader-basics.md)
- [Adafruit HUZZAH32 – ESP32 Breakout Board](https://learn.adafruit.com/huzzah32-esp32-breakout-board.md)
- [XBee Radios](https://learn.adafruit.com/xbee-radios.md)
- [Adafruit HUZZAH ESP8266 breakout](https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout.md)
- [FTDI Friend](https://learn.adafruit.com/ftdi-friend.md)
- [CircuitPython Libraries on Linux and ODROID C2](https://learn.adafruit.com/circuitpython-libaries-linux-odroid-c2.md)
- [Introducing Bluefruit EZ-Key](https://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard.md)
- [Internet of Things Printer](https://learn.adafruit.com/internet-of-things-printer.md)
- [Trinket Powered Analog Meter Clock](https://learn.adafruit.com/trinket-powered-analog-meter-clock.md)
- [Home Automation in the Cloud with the ESP8266 & Adafruit IO](https://learn.adafruit.com/home-automation-in-the-cloud-with-the-esp8266-and-adafruit-io.md)
- [DC & USB Boarduino Kits](https://learn.adafruit.com/boarduino-kits.md)
- [Adafruit MENTA Kit](https://learn.adafruit.com/adafruit-menta-kit-mint-tin-arduino-compatible.md)
- [Trinket / Gemma IR Control](https://learn.adafruit.com/trinket-gemma-ir-remote-control.md)
- [How to Find Hidden COM Ports](https://learn.adafruit.com/how-to-find-hidden-com-ports.md)
- [Building and Running MicroPython on the ESP8266](https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266.md)
