Hi guys, though I haven't seen anyone requesting for it, I thought I might put it here. If anyone is ever looking to work with the Adafruit INA219 Current Sensor Module, and wants to use it with the PIC microcontrollers, I have taken the original version and converted it into the mikroC version.
You just need to copy the INA219.c and INA219.h files to your project directory. You can use my INA219_Main.c as a reference.
From what I have just tested, the values seem to come back fine, although there could still be errors and issues I haven't seen yet. So far, I have only tested the Current reading. I haven't been able to test the shunt voltage, bus voltage, and power reading yet.
Here's the source code for everyone and anyone who wants to use it in your projects:
INA219.zip [188.57 KiB]
Downloaded 59 times
I hope what I have done will help anyone who's looking for similar applications in your own projects.