I'm using an arduino uno to communicate to arduino micros (set up as slaves) using i2c and the arduino wire library... i'm only sending 12 bytes of data per transmission, yet when I add more than one to the slave chain, I get very unstable results, usually crashing the i2c bus all together. I have 1.5k pull up resistors on the SDL and SCLK lines. the slaves wait for incoming bytes and drive a 7ft box of RGB LED strips (lpd8806)
https://github.com/jmzjmzjmz/ufo/tree/m ... ER_ARDUINO
slave (just change wire address for additional slaves):
https://github.com/jmzjmzjmz/ufo/blob/m ... rduino.ino
processing sketch to send data through the master:
https://github.com/jmzjmzjmz/ufo/tree/m ... EDTEST_OSC
things i've tried:
-disabling the internal pull-up resistors in twi.c and it doesn't seem to make a difference
-varying the pull up resistance... I looked at it on a scope and got the fastest response with 1.5k
-adding delay between sending commands from the master
again, using one slave on the i2c bus seems to work reliably, but when adding another it doesn't work at all....
trying to get a bunch more boxes like this up and running, and in sync! more lights == better!
any insight would be much appreciated!