Other Parts Discussed in Thread: BQ78350, BQ76940, BQ78350-R1
We are currently trying to establish communication TIDA-00792 with an Arduino UNO board based on SMBus communication. But we are not able to succeed.
* 48V DC power supply is used to power up the board
* Regout is 2.5V
* Connected pins:
SMBC --> Arduino SCL
SMBA --> Arduino SDA
* Not very clear about the address (0x0B or 0x08 or 0x16 or 0x17)
Code:
#include <Wire.h> void setup() { Wire.begin(); // join i2c bus (address optional for master) Serial.begin(9600); } void loop() { delay(1000); Serial.println("write data"); Wire.beginTransmission(0x16); // Wire.write(0x09); Wire.endTransmission(); Wire.requestFrom(0x0B, 2); // request 6 bytes from slave device #8 String response = ""; while (Wire.available()) { // slave may send less than requested char c = Wire.read(); // receive a byte as character //Serial.print(c); // print the character response += c; } Serial.println(response); }