INA219 Sensor Help

What am I doing wrong? Serial Monitor does not go beyond "Hello"

Using the Arduino Example Code:

#include <Wire.h>
#include <Adafruit_INA219.h>

Adafruit_INA219 ina219;


void setup(void) 
{
  Serial.begin(115200);
  while (!Serial) {
      // will pause Zero, Leonardo, etc until serial console opens
      delay(1);
  }
    
  Serial.println("Hello!");
  
  // Initialize the INA219.
  // By default the initialization will use the largest range (32V, 2A).  However
  // you can call a setCalibration function to change this range (see comments).
  if (! ina219.begin()) {
    Serial.println("Failed to find INA219 chip");
    while (1) { delay(10); }
  }
  // To use a slightly lower 32V, 1A range (higher precision on amps):
  //ina219.setCalibration_32V_1A();
  // Or to use a lower 16V, 400mA range (higher precision on volts and amps):
  //ina219.setCalibration_16V_400mA();

  Serial.println("Measuring voltage and current with INA219 ...");
}

void loop(void) 
{
  float shuntvoltage = 0;
  float busvoltage = 0;
  float current_mA = 0;
  float loadvoltage = 0;
  float power_mW = 0;

  shuntvoltage = ina219.getShuntVoltage_mV();
  busvoltage = ina219.getBusVoltage_V();
  current_mA = ina219.getCurrent_mA();
  power_mW = ina219.getPower_mW();
  loadvoltage = busvoltage + (shuntvoltage / 1000);
  
  Serial.print("Bus Voltage:   "); Serial.print(busvoltage); Serial.println(" V");
  Serial.print("Shunt Voltage: "); Serial.print(shuntvoltage); Serial.println(" mV");
  Serial.print("Load Voltage:  "); Serial.print(loadvoltage); Serial.println(" V");
  Serial.print("Current:       "); Serial.print(current_mA); Serial.println(" mA");
  Serial.print("Power:         "); Serial.print(power_mW); Serial.println(" mW");
  Serial.println("");

  delay(2000);
}


Hello misterbee1

Publish the printout of the IDE monitor to see what happens.

I am not sanguine about that soldering. I see quite a few potential "solder hats" as it were that may well not be making contact with the pad.

Hello, I redid the connections, even using flux to assure connections to pads:


I have also changed to direct connection to INA219 board instead of using it plugged into breadboard:


Hello!
Failed to find INA219 chip

That is what serial monitor says.

First you said it did not get beyond Hello!

You sure it not printing more?

Hello misterbee1

Take a look at it to acquire the knowledge:

Run the I2C_scanner sketch to see if it is found.
Files->Examples->Wire->I2C_scanner
If not found, then you have a wiring problem

Not good photo to be sure but it looks like you have SDA and SCL inverted.

So, if what you've written is accurate, you have advanced from the begin call hanging ("Hello" being the only thing that was displayed) to the begin call failing to detect the sensor. Progress.

Now is the time for elementary debugging on your part. Eliminate possibilities.

Have you double checked, then tripled checked, your wiring?

Does the board detect another I2C device?

In case the INA219 was damaged by sneak paths forcing excess current onto signal lines when the soldering was not fit for purpose, does the board detect your backup INA219? You did buy a backup sensor just in case, right?

What is that?
Use the I2C_scanner sketch

Your SDA is wired to A5 and SCL to A4?
If yes, swap them..

It is not.

I2C Scanner
Scanning...
No I2C devices found

Scanning...
No I2C devices found

Scanning...
No I2C devices found

Scanning...
No I2C devices found

Scanning...
No I2C devices found

--

I am about ready to solder everything instead of this stupid breadboard.

That does indicate a wiring or soldering error OR the board is no good.

You may be right. What I2C device should I check with? A button?

I agree. Of course I only bought one INA219 instead of 10. I do have many other Nanos and a few UNOs though.

On your photo it does.
But up to you....

Any other I2C device. Preferably something you've used before and know that it works. Good luck with your project.

You are correct, it was wrong in that photo. I have fixed it and still getting same result though. I leaning towards INA219 board being "fried"....