Monday, April 19, 2010

I2C is easy (with a little help)

One thing I really like about working with the Arduino is the huge amount of sample code available. I was a bit concerned about getting I2C to work for this project, but with resources like the Wire library reference, AbsencesKeith's Electronics Blog, and Near Future Labs, it took about 30 minutes to integrate basic I2C communications into the motor test code I already had. The master Arduino is now sending motor control commands for the slave Arduino to execute. And more importantly, the slave is executing them!

And I was so looking forward to debugging some I2C messages with the Logic analyzer - not!

Brian
The Black Dog
Coaster Master I2C

Coaster Motor I2C

No comments:

Post a Comment