Tonight at the first Micro Monday of 2012, we learned the basics of I2C communication using the Arduino Uno and the TC74 I2C temperature sensor. Mack (f00bard) led us through the introduction and demo using a Bus Pirate to show how the I2C device communicates across the wire.
The readings came back quickly, and we were able to measure the temperature of FamiLAB using our I2C sensors. Pretty toasty in the classroom that night at 80 degrees Fahrenheit. There were a couple hiccups with the I2C address of the sensors; the datasheet was incorrect, but we were able to use the Bus Pirate to get the correct address. Also, between Arduino 22 and Arduino 1.0 there were some changes to the Wire library so we had to modify our demo code a bit.
After the workshop, John and I started to tinker with Xbee radios using the Digi Xbee development boards John brought in. We set up a basic two-way chat demo and tested the range of the Xbee Series 2 modules. I was able to walk outside the lab, into the field, and out to the tree line without losing connectivity.
We ran into a small issue getting started with the development boards, as we didn’t have any instructions to go from. Apparently the Digi development boards ship with a loopback jumper in place. This prevented us from being able to read the firmware and configuration from the Xbee modules. Once we had that sorted out, everything just worked!
Congrats on your successful XBee connection. I love seeing these devices in action!
Next step is to get that temperature sensor connected to the Internet. Check out the XBee Internet Gateway, we’ve got a new version coming out in the next few weeks that will feature closer collaboration with iDigi as well.
I was searching for some information on whether it is possible to control multiple robots wirelessly using as many Xbee sender receiver pairs (with associate arduino shields and boards) and having all the sending boards be connected to an i2c bus.
Please do let me know if you have any ideas about how and whether that could work.