FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:



Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


Author Topic: USB Current and Voltage Monitor  (Read 202 times)

FTDI Community

  • Global Moderator
  • Newbie
  • *****
  • Posts: 12
    • View Profile
USB Current and Voltage Monitor
« on: September 21, 2017, 04:53:20 PM »

Hi Everyone,

Here is a small project that our Applications engineers designed using a UM232H module in MPSSE mode. It acts as a USB to I2C Master bridge to take readings from a Texas Instruments INA219 current and voltage monitor. It also provides a couple of GPIO input lines and (most importantly of course) a flashing LED!

It connects in-line with a USB device and tracks how much current it is drawing from the host as well as the voltage on the VBus line. The 0.1" connector on the rear panel can be used instead if you want to connect it to measure other circuits via jumper wires. This can be really useful when debugging your own circuits and checking how much power they will require.

A program written in Visual Basic NET displays the results on a scrolling chart with different range settings. You can modify the code to talk to other I2C sensors as well though.

Here are some pictures showing the meter itself and a chart showing a USB flash drive which was connected and enumerated accessing a file on the disk.





We have written a document on the project as well as publishing the source code, and you can find these at the links below:

AN_355
Source Code

We hope this gives you some ideas for some projects of your own ...

Best Regards,
The FTDI Team




« Last Edit: September 21, 2017, 05:16:23 PM by FTDI Community Admin »
Logged