Hello,
I am with a problem that I cannot resolve.
I have a CHI030 and I want to connect it to a I2C device. Ok, so what I do is connect the output 4 to the device's SCL pin and the output 1 to the device's SDA pin.
It was supposed to work, but it is not.
So, now I am going to be specific.
I am using the SD21 board:
http://www.robot-electronics.co.uk/htm/sd21tech.htm
I checked and there is a 4k7 resistor between the SCL and +5V and also the 4k7 resistor between SDA and +5V in this board (SD21).
I am connecting the two boards this way:
The battery goes in the SD21, then I connect the +5V and GND from the I2C connectors of the SD21 in the power terminal of my CHI030. Also I connect the SD21's SCL with the CHI030's output 4, and the SDA with the CHI030's output 1.
Then I try to make it work, but nothing. What am I doing wrong?
In the program I begin with:
Please, someone?
I am with a problem that I cannot resolve.
I have a CHI030 and I want to connect it to a I2C device. Ok, so what I do is connect the output 4 to the device's SCL pin and the output 1 to the device's SDA pin.
It was supposed to work, but it is not.
So, now I am going to be specific.
I am using the SD21 board:
http://www.robot-electronics.co.uk/htm/sd21tech.htm
I checked and there is a 4k7 resistor between the SCL and +5V and also the 4k7 resistor between SDA and +5V in this board (SD21).
I am connecting the two boards this way:
The battery goes in the SD21, then I connect the +5V and GND from the I2C connectors of the SD21 in the power terminal of my CHI030. Also I connect the SD21's SCL with the CHI030's output 4, and the SDA with the CHI030's output 1.
Then I try to make it work, but nothing. What am I doing wrong?
In the program I begin with:
Code:
i2cslave $c2, i2cslow, i2cbyte