• sales

    +86-0755-88291180

Raspberry Pi Current/Power Monitor HAT User Guide

Instruction

This is a 4-ch current and power monitor HAT designed for Raspberry Pi. Via the I2C or SMBus interface, it is easy to monitor each channel's current, voltage, and power consumption, as well as the voltage between both sides of the sampling resistor.

Features

  • Standard Raspberry Pi 40PIN GPIO extension header, supports Raspberry Pi series boards
  • 4-ch monitoring, via I2C/SMBus interface
  • Onboard 0.1Ω 1% sampling resistor, allows measuring bi-directional current up to 3.2A
  • Embedded 12-bit ADC, supports multiple successive converting, 0~26V voltage measuring range
  • Directly calculate and output measured power value through additional multiply register
  • I2C control pins for connecting with other host boards
  • Comes with development resources and manual (examples for Raspberry Pi/Arduino/STM32)

Specification

  • Operating voltage: 3.3V/5V
  • Control interface: I2C/SMBus
  • Sampling resistor: 0.1Ω 1%
  • Voltage range: 0~26V
  • Current range: ±3.2A
  • Resolution: 0.8mA (±3.2A range) OR 0.1mA (±400mA range)
  • Dimensions: 65mm × 30mm
  • Mounting hole size: 3.0mm

Hardware


This module can be used to test currents and voltages of four channels, they are (IN1+ IN1-), (IN2+ IN2-), (IN3+ IN3-) and (IN4+ IN4-).

INx+ is the current input, and INx- is the current output. Module measure the differential voltage of the sample resistor connected between INx+ and INx-, with the voltage we can measure the working current.

The module supports measuring bidirectional current, so users can invert the input and output.

Note that you must connect GND when testing different power adpter, otherwise, the VBus voltage cannot be measured.

Raspberry Pi examples

To test the example, you should first attach the monitor HAT on Raspberry Pi, or you can connect the monitor HAT to I2C interface of Raspberry Pi by wires.

Open the terminal of Raspberry Pi and following the commands

sudo pip3 install adafruit-circuitpython-ina219
sudo apt-get install p7zip
wget http://www.waveshare.net/w/upload/6/69/Current-Power_Monitor_HAT_Code.7z
7zr x Current-Power_Monitor_HAT_Code.7z -r -o./Current-Power_Monitor_HAT
cd Current-Power_Monitor_HAT/RaspberryPi
python3 ina219.py

You can get data of the VBus voltage, differential voltage of sample resistor, voltage input, power, and current.

STM32 examples

The examples provide is based on NUCLEO-F103RB, you can connect it as the table

PINNUCLEO
VCC3.3V
GNDGND
SDASDA/D14/PB9
SCLSCLD15PB8

Download the demo code from #Resource, unzip and go to the directory of the STM32 project. Open the project by Keil5.

Program the demo codes to your NUCLEO board and test

The data of the VBus voltage, differential voltage of sample resistor, voltage input, power, and current will be printed to serial port.

Arduino

The example provided is based on Waveshare UNO Plus.

PINUNO Plus
VCC3.3V
GNDGND
SDASDA/D14
SCLSCL/D15

If you use other Arduino board, please check the working voltage of your Arduino board, and change the VCC to 5V/3.3V according to it.

Download the demo codes from #Resouces. unzip and go to the directory of Arduino codes. Open it by Arduino IDE and program it to your board.

The data of the VBus voltage, differential voltage of sample resistor, voltage input, power, and current will be printed to serial port.

TAG: DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 3.5 inch QSPI LCD N16R8 Touchscreen Display 6-Axis /Camera /SD Wireless AW CB375N 2.4G/5GHz Dual Band WiFi5 Wireless module RTL8822CE CG Bluetooth 5.0 ESP32-C6 2.16inch AMOLED Display AI Development Board 480×480 2.16 inch TouchScreen Deepseek Raspberry Pi RP2040 Keyboard RoArm M2 4 DOF High Torque Serial Bus Servo ROS2 WIFI ESP NOW UART USB ST3235 QMI8658C For ESP32 D-Robotics RDK X3 Module Core MD Module Horizon Sunrise Pi ARM Cortex-A53 5Tops Size Compatible With Raspberry Pi CM4 Size Raspberry Pi Buzzer Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT 4 inch e Paper HAT+ E Ink Spectra E6 Full-Color 600x400 Screen Display For Arduino /Raspberry Pi /Jetson Nano /STM32 UGV Rover PT Kit AI OpenCV Robot Car MediaPipe For Jetson Orin Raspberry Pi 5 Official Original AI Kit Hailo8l 13Tops/26Tops PCIe M.2 HAT+ Board For Pi5 USB Camera 2MP GC2093 ‌WDR Backlight Compensation‌ Onboard microphone Jetson Orin NX ESP32 S3 Development Board 4.3 inch LCD Capacitive Touch Screen 4.3inch Display 800×480 N16R8 Raspberry Pi 5 PCIe to M.2 SSD 7inch-USB-Monitor user guide Jetson Nano Cooler X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also ESP32-C6 AI Voice Chat Robot For Xiaozhi 1.8 inch AMOLED Development Board 1.8inch TouchScreen Deepseek Milk V