Current Sensor INA169 not working

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
EngZach
 
Posts: 4
Joined: Thu Apr 16, 2015 12:04 pm

Current Sensor INA169 not working

Post by EngZach »

So I bought three current sensors for my Arduino controller to monitor as three multiple conditions. While testing them, I can't get them to work. In my serial monitor I'm getting all zeroes (0.000 A). I measured the current with a multimeter and got 0.010 A. During my investigation in to the issue, I tried measuring the current through the VCC (5V) and ground and found that it was 0 A. (wondering if there was a bad batch of these chips..?). I used multiple controllers to ensure it was not a bad controller. Basically I found that there was not continuity in any of the chips. Ideas? I'm using an Arduino Uno, however, I also tried using a Digilent ChipKit Uno32. Unfortunately, I need this resolved ASAP, I have a project deadline in just under 2 weeks.

Code: Select all


// Constants
const int SENSOR_PIN = A0;  // Input pin for measuring Vout
const int RS = 10;          // Shunt resistor value (in ohms)
const int VOLTAGE_REF = 5;  // Reference voltage for analog read

// Global Variables
float sensorValue;   // Variable to store value from analog read
float current;       // Calculated current value

void setup() {

  // Initialize serial monitor
  Serial.begin(1200);

}

void loop() {

  // Read a value from the INA169 board
  sensorValue = analogRead(SENSOR_PIN);

  // Remap the ADC value into a voltage number (5V reference)
  sensorValue = (sensorValue * VOLTAGE_REF);
  sensorValue = map(sensorValue,0,1023,0.000,6.000);

  // Follow the equation given by the INA169 datasheet to
  // determine the current flowing through RS. Assume RL = 10k
  // Is = (Vout x 1k) / (RS x RL)
  current = sensorValue / (10 * RS);

  // Output value (in amps) to the serial monitor to 3 decimal
  // places
  Serial.print(current, 3);
  Serial.println(" A");
}
Here is the breadboard, I'm 99.9% sure everything is hooked up properly.
IMG_3577.JPG
IMG_3577.JPG (793.49 KiB) Viewed 763 times

User avatar
adafruit_support_bill
 
Posts: 88139
Joined: Sat Feb 07, 2009 10:11 am

Re: Current Sensor INA169 not working

Post by adafruit_support_bill »

You have not soldered any of your connections. All of the header pins need to be soldered.
http://learn.adafruit.com/adafruit-guid ... -soldering

User avatar
EngZach
 
Posts: 4
Joined: Thu Apr 16, 2015 12:04 pm

Re: Current Sensor INA169 not working

Post by EngZach »

All soldered up. Still getting all zeroes.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Current Sensor INA169 not working

Post by adafruit_support_mike »

In the photo above, you don't have anything connected to the Vin+ and Vin- pins.

Those are the sense pins. You have to connect something to those for the chip to have something to measure.

User avatar
EngZach
 
Posts: 4
Joined: Thu Apr 16, 2015 12:04 pm

Re: Current Sensor INA169 not working

Post by EngZach »

They're wired in series with an LED circuit powered with a 6v power supply. They are connected through the breadboard. And the LED works.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Current Sensor INA169 not working

Post by adafruit_support_mike »

Sorry, I was looking at the empty pads for the terminal blocks.

Try taking a voltage measurement between GND and OUT while the LED is lit. It should read about 10mV.

User avatar
EngZach
 
Posts: 4
Joined: Thu Apr 16, 2015 12:04 pm

Re: Current Sensor INA169 not working

Post by EngZach »

It measures zero.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Current Sensor INA169 not working

Post by adafruit_support_mike »

Thanks. Could you post another photo of your setup showing the soldering?

User avatar
reyge
 
Posts: 1
Joined: Fri Jul 22, 2016 3:47 am

Re: Current Sensor INA169 not working

Post by reyge »

I can't seem to create a new post so I am replying to this thread for now.

Were you able to solve your INA169 problem?

I recently bought two units of this breakout board. Using a lab bench power supply, I tried passing 0.1A to 1A of current but the output is always about 10mV. This happens on the two boards I bought. I haven't connected my Arduino or other circuit to the breakout board. What do you think is the problem? Have you encountered this problem before?

User avatar
adafruit_support_bill
 
Posts: 88139
Joined: Sat Feb 07, 2009 10:11 am

Re: Current Sensor INA169 not working

Post by adafruit_support_bill »

I can't seem to create a new post...
If you go to the top of this forum, there is a "Post A Topic" button.
viewforum.php?f=22

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”