I'm using i2c (the wire library) to have two Arduinos talk to each other.
While the master is on usb power, it works fine.
However, when I put the master on 9v power instead (power adapter or battery), it gets to the endTransmission() stage and hangs when trying to send a message.
To test it was actually the end call hanging, I lit up the onboard led before the wire calls started. Then I turned it off at the end (after the endTransmission call). This caused the led to stay on forever. Then I updated the sketch to put the led off right before the end call. This causes a quick blink and then the led stays off.
I considered the possibility that the i2c wires needed power, so I've tried with a 1.8kohm pullup on the two data lines just to be safe. That didn't help either.
Am I missing something here? Any suggestions on things to try?
Thanks
zack