Skip to content
USB Power monitor
Branch: master
Clone or download
jonasblixt Added timeout, under some circumstances the USB link can break down.
Unless there is a timeout the device will be stuck for ever.
Latest commit e9040a0 Jan 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
datasheets wip Sep 6, 2018
doc Updated documentation Dec 9, 2018
hw Added BOM Sep 14, 2018
sw Added timeout, under some circumstances the USB link can break down. Jan 15, 2019
.gitignore Updated gitignore Sep 15, 2018
.gitmodules wip Dec 2, 2018
LICENSE Added licensing info Dec 9, 2018 Update Dec 9, 2018

UPM - USB Power Monitor

This device monitors current and voltage for USB powered devices.


Assembled PCB

The PCB is a four layer board, manufactured by OSH Park. The boards can be ordered here

Schematics, layout and BOM can be found here

System description

The device has a built in, two port, USB hub. One of the down stream ports connects to the USB A connector and the other down stream port is connected to the microcontroller.

An integrade analog frontend that contains a 16 bit ADC and differential amplifier measures the voltage and current of the down stream VBUS supply. Three auxillary diff inputs are available on a pin header.

It is possible to control the output VBUS with the on board power switch, which also has built in short circuit protection. Three auxillary, open collector, outputs are available on pin header.

Ncurses TUI

The ncurses based TUI, displaying voltage, current and energy usage. Outputs can be controled from the TUI:

  • A/a VBUS on/off
  • S/s out1 on/off
  • D/d out2 on/off
  • F/f out3 on/off
  • r Reset energy counters

Intended usage

This project came from a need to remotley monitor and power cycle USB powered devices.

Future improvements

  • Add domain/tcp socket listener for remote control
  • Support for logging
You can’t perform that action at this time.