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:
I hope what I have done will help anyone who's looking for similar applications in your own projects.
INA219 library/example (Developmental Version)
-
- Posts: 13
- Joined: 02 Feb 2018 14:49
- Location: Singapore
INA219 library/example (Developmental Version)
cxshermansg
"I am always hacking at something, 24-7-265 days a year."/ "For some people, they have to be lucky all the time, but I only have to be lucky once." / "Keep trying and never give up until you succeed."
"I am always hacking at something, 24-7-265 days a year."/ "For some people, they have to be lucky all the time, but I only have to be lucky once." / "Keep trying and never give up until you succeed."
Re: INA219 library/example (Developmental Version)
Hi,
Thanks for sharing this.
Regards,
Filip.
Thanks for sharing this.
Regards,
Filip.
-
- Posts: 1557
- Joined: 24 Jun 2007 19:27
- Location: 01800 St Maurice de Gourdans France
- Contact:
Re: INA219 library/example (Developmental Version)
hello,
i am working on this INA219 .... to replace ACS712 device
unfortunatly, they are too much errors discovered in your files....
maybe i will propose another version ..later
a good intention,butcxshermansg wrote:...
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. ts.
i am working on this INA219 .... to replace ACS712 device
unfortunatly, they are too much errors discovered in your files....
maybe i will propose another version ..later
Re: INA219 library/example (Developmental Version)
Hi paulfjujo,
Did you has a working version of this INA219 library? Did you have corrected all the issues as you mentioned before? Please, share with us if you can.
Thanks.
Did you has a working version of this INA219 library? Did you have corrected all the issues as you mentioned before? Please, share with us if you can.
Thanks.