Hellos, I am triying BQ24296MEVM-655 by I2C to Arduino, but I do not get answer when I ask for the address 0x6B (Hexadecimal). I have others components conncect with Arduino by I2C and this components work correctly. I have used I2C scanner to find the correct address but this scanner do not give me some address for BQ2496MEVM . I would like know how to I have connect Arduino and BQ24296MEVM. Actually I have connect SCL and SDA (Arduino) to TP13 and TP12 respectively (BQ24296MEVM), these pins are connect to pull-up resistor too (10K). I am using Wire.h, this is Arduino I2C library. I hope that you can help me. I need know how to connect correctly or any information that help to me to connect BQ24296MEVM-655 to Arduino Thanks in advance.
This is Code I2C Scanner : #include <wire.h> void setup() { Wire.begin(); Serial.begin(115200); Serial.println("\nI2C Scanner"); } void loop() { byte error, address; int nDevices; Serial.println("Scanning..."); nDevices = 0; for(address = 1; address < 127; address++ ) { // The i2c_scanner uses the return value of // the Write.endTransmisstion to see if // a device did acknowledge to the address. Wire.beginTransmission(address); error = Wire.endTransmission(); if (error == 0) { Serial.print("I2C device found at address 0x"); if (address<16) Serial.print("0"); Serial.print(address,HEX); Serial.println(" !"); nDevices++; } else if (error==4) { Serial.print("Unknow error at address 0x"); if (address<16) Serial.print("0"); Serial.println(address,HEX); } } if (nDevices == 0) Serial.println("No I2C devices found\n"); else Serial.println("done\n"); delay(5000); // wait 5 seconds for next scan } Code to get a register: byte readRegister(byte reg){ Wire.beginTransmission(0x6B); Wire.write(reg);//send register address if (Wire.endTransmission() != 0) { return -1;//ERROR } activo=true; Wire.requestFrom((byte)0x6B, (byte) 1); if (Wire.available()) { return Wire.read(); } else { return -1;//ERROR } }