Simple I2C communication between Arduino Pro Mini and Redboard Artemis ATP

Hello Sparkfun team,

I uploaded an I2C code example for my “sender” board (Pro Mini) and for my “receiver” board (Artemis ATP) from the arduino web page. But I cant get it working. Im using the correct serial monitor for the “receiver”, the baudrates match, SDA to SDA, SCL to SCL and GND to GND, I even tried different upload speeds for Artemis. I dont know what could be wrong here. :?:

Here is the link to the code example for sender and receiver, which I used without any changes or additions:

https://www.arduino.cc/en/Tutorial/MasterWriter

Do you have pull up resistors on your SDA and SCL lines? Without those, the I2C bus won’t work at all.

Slave mode I2c is not implemented (yet) in the current Artemis library version 1.0.30.

TS-Chris:
Do you have pull up resistors on your SDA and SCL lines? Without those, the I2C bus won’t work at all.

I dont have any pull up resistors. All the videos where they connect two boards throug I2C dont show them as well. Is it necessary if there is only a master and one slave?

paulvha:
Slave mode I2c is not implemented (yet) in the current Artemis library version 1.0.30.

Would it work if the Artemis would be the master instead?

Artemis as Master will work, but you will need pull-up resistors on both SDA and SCL. Normally this is not implemented on the board. A large number “slave” devices have the ability to enable or disable them because you only need one resistor per line. Too many resistors in parallel would cause to high current that can damage the board.