0

INA260 connection
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

INA260 connection

by giunco12 on Wed Sep 11, 2019 11:47 am

Hi, everybody. I am totally new to adafruit sensors and also to Rasberry Pi, so I apologize in advance if I say something stupid!
I am trying to measure the current coming out of the battery and going into a DC motor, as well as the battery voltage. I really do not understand the necessary wiring shown in the adafruit site, sorry for that. What i would like to know is:

where should I connect the negative wire of the battery?
where should I connect the positive wire of the battery?
where should I connect the negative wire of the Load?
where should I connect the positive wire of the Load?
If anybody could give me a complete answer about the wiring, I would really appreciate that.

Thank you for your attention and sorry for not being very specific!

giunco12
 
Posts: 4
Joined: Wed Sep 11, 2019 11:40 am

Re: INA260 connection

by adafruit_support_bill on Wed Sep 11, 2019 1:08 pm

where should I connect the negative wire of the battery?

To the GND of your motor control circuit.
where should I connect the positive wire of the battery?

To V+ on the current sensor.
Code: Select all | TOGGLE FULL SIZE
where should I connect the negative wire of the Load?

To the GND of the motor control circuit.
Code: Select all | TOGGLE FULL SIZE
where should I connect the positive wire of the Load?

To V- on the current sensor.

This puts the current sensor on the 'high-side' of the load and measures the current flowing through it.

adafruit_support_bill
 
Posts: 74337
Joined: Sat Feb 07, 2009 10:11 am

Re: INA260 connection

by giunco12 on Wed Sep 11, 2019 3:03 pm

currentsensingcircuit (1).jpg
currentsensingcircuit (1).jpg (588.92 KiB) Viewed 90 times
Thank you for the fast reply. I think I have made some mistakes, since I already tried to implement what you said, but I receive no voltage or current readings. I think my error could lie in the Rasberry Pi-to-breadboard connections.
Furthermore, I haven't connected the battery to the breadboard or to the Rasberry's ground, is that a mistake?
I am posting also a couple of photos of my connections between the Pi and the battery, could you please tell me if they are right? My idea is that the battery connector which is free at the moment will be attached to the motor circuit. The red cable is the positive one.
I tried to follow the circuit schematics that I found here https://learn.adafruit.com/assets/74100
Thank you again!

My wirings are shown in the added files
Attachments
20190911_144727 (1).jpg
20190911_144727 (1).jpg (565.15 KiB) Viewed 90 times

giunco12
 
Posts: 4
Joined: Wed Sep 11, 2019 11:40 am

Re: INA260 connection

by adafruit_support_bill on Wed Sep 11, 2019 3:50 pm

You need to connect the negative lead of your battery to the ground of the current sensor. Otherwise, there is no voltage to measure.

adafruit_support_bill
 
Posts: 74337
Joined: Sat Feb 07, 2009 10:11 am

Re: INA260 connection

by giunco12 on Wed Sep 11, 2019 4:00 pm

Thanks! And that same ground should be connected to the Pi's ground also? Or that is not necessary? Thanks again!

giunco12
 
Posts: 4
Joined: Wed Sep 11, 2019 11:40 am

Re: INA260 connection

by adafruit_support_bill on Wed Sep 11, 2019 4:29 pm

Yes. The ground connection is the most important connection in any circuit - since that is the reference against which all signals and voltages are measured.

adafruit_support_bill
 
Posts: 74337
Joined: Sat Feb 07, 2009 10:11 am

Re: INA260 connection

by giunco12 on Wed Sep 11, 2019 4:43 pm

Thank you, I really appreciate your help. I will try this tomorrow, thanks a lot!

giunco12
 
Posts: 4
Joined: Wed Sep 11, 2019 11:40 am

Please be positive and constructive with your questions and comments.