Power Measurement with an INA260 sensor @McuOnEclipse
For a research project and demonstrator at HSLU university, Erich Styger wished to measure a DC voltage and current. For this Erich used a Texas Instrument Texas Instruments INA260 with a custom software driver.
The TI INA260 is a really cool and flexible power sensor. It can be used for up to +36 V DC and up to 15 A current, both on the high and low side. The I2C interface makes it easy to use, and has the shunt resistor integrated.
To support the research project, a new driver for the INA260 has been added to the McuLib. To develop the driver, I have used the Adafruit INA260 breakout board.
To verify the driver and accuracy, a test bench with an RP2040 and MCU-Link Pro is used, below the software running on the RP2040 is measuring its own current consumption, and checked by the power measurement of the MCU-Link Pro.
It only took me a few hours to develop the INA260 driver, thanks to the Adafruit INA260 breakout board. The driver implements all the necessary functions and configuration needed. The driver currently supports a single INA260 on a bus So if you need a simple driver for the INA260, it is available on GitHub.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey