New Project w/UNO, Motor Shield Kit, Xbee Adapter, Blue LCD Kit, and Analog Temp

I would like to ask if the I can add a Motor Shield Kit, a Blue 16x2 LCD Kit from adafruit, an XBee Adater Kit, and an TMP36 Analog Temp Sensor to an Uno Board. The concept is for a device that can adjust the position of a (Tower Pro SG-5010) servo based on the temp sensor. The unit will need to display the actual temp and setpoint on the LCD as well as be able to broadcast the values through the wireless xmitter so I can ping it with my laptop.

I'm new to controls and using Arduino products. My first question is if I can connnect the motor, LCD, and wireless boards (shields) to one Uno?

Second would be If there are any examples, or sketches for all or part of this project.

Thank you,

John

Hi John

On the face of it this should be possible, and you'll find there's a few ways to go about it. The motor shield doesn't break out many digital pins since has the capacity to use a heap of them, even if you're only driving one servo as you plan to. As you're only running one servo you might get away without using the motor shield and run the servo directly from the Arduino on one of the digital pins (http://arduino.cc/it/Reference/Servo). It would be worth checking the power consumption on the servo you're using to make sure it will be happy with the available power. There is a note in the Ladyada tutorial on the motor shield about using stacking headers to access pins that aren't in use, if you decide to go that way.

If your 16x2 LCD from Adafruit is one of the I2C ones, it will only use analog pins 4 & 5 which will mean it will fit into your requirements. If it's not, (one of these for example Standard LCD 16x2 + extras [white on blue] : ID 181 : $9.95 : Adafruit Industries, Unique & fun DIY electronics and kits, which are sometimes called "parallel") you'll chew up 6 digital pins, which you won't have access to if you're using the motor shield, but will have available if your servo is directly connected.

The XBee adapter kit isn't a shield, so you have flexibility of how you connect that up to your Arduino.

Your TMP36 is an analog device, so it will use one of the 6 analog pins (leaving 3). Remember also that your unused analog pins can be used as digital ones too.

It's unlikely you'll find a sketch that's already written to do exactly what you're chasing, but there are examples on the Adafruit site, linked to under the specific products which will give you the pieces of code to run each specific bit you're using.

Hope this helps, Geoff