Hello, I wanted to see the data coming from the SDI1608 led driver and SDI5209t microcontroller, made by solidic from China, on the serial port through the arduino uno. When connecting the device, I connected the SDA SCL pins of the microcontroller to the SDA and SCL pins of the arduino, but I can't get the data.
#include <Wire.h>
void setup() {
Wire.begin(); // Initialize I2C communication
Serial.begin(9600); // Initialize serial communication for output
}
The Wire.beginTransmission() does not put a START condition on the I2C bus, the Wire.requestfFrom() should not be used together with Wire.beginTransmission() or Wire.endTransmission() and the Wire.endTransmission() does not stop or end something.
What do you want to read ?
Is that a Serial/UART output ? Then a Arduino board can capture it.
Is that a I2C bus that communicates with I2C devices ? Then you need a Logic Analyzer. I highly prefer a USB Logic Analyzer, so the data can be analyzed on the computer.
From what you have indicated, it sounds like you are tapping into an active I2C bus that already has a master and several slave devices on it.
Introducing your Arduino as a second master device would likely upset the comms within the product.
Another approach may be to listen in to the I2C bus and detect the packets you are interested in. You can use a software I2C sniffer on an UNO as long as the bus runs at 100KHz or less. From my experimenting some time back I managed to log an I2C bus using software up to around 120KHz.
I would also check to see if there is there a serial port on the microcontroller board that you could look at. There's a good chance that the information may be there but just not available on a serial port on the back of the product.
You will have to change the code in the unit so it will talk to your Arduino. If you cannot do that the next best thing is a sniffer as recommended earlier by markd833. You can also use one of the inexpensive logic analyzers and get an idea of what the format of the code is.
That chip contains a Microcontroller which you need to program first to establish communication with host UNO over I2C bus. If you have written any program, please post it.