It is currently 20 Jan 2019 20:45

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 26 Mar 2018 19:40 

Joined: 02 Feb 2018 14:49
Posts: 12
Location: Singapore
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:
Attachment: [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.

"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."

PostPosted: 13 Apr 2018 09:36 
mikroElektronika team
User avatar

Joined: 25 Jan 2008 09:56
Posts: 10150

Thanks for sharing this. :)


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: