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


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

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

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 896
    • 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