Go Down

Topic: USB+XBEE SHIELD (Read 1 time) previous topic - next topic


Hello everyone, this is my question;

is it possible to use USB and XBEE shield at the same time in arduino UNO?

I wish to read some data in the USB port and then, transmit this data via XBEE shield




The easiest way to do this is to use the "Software Serial Library". http://arduino.cc/en/Reference/SoftwareSerial
With this library you can use other pins than 0 and 1 for serial communication. You could use the standard 0 and 1 pins for the communication with the computer and pin 2, 3 (just an example) for the Xbees TX and RX lines. The only problem you have is your shield, maybe you can't change the Xbees RX and TX pins. If you use the sparkfun Xbee shield you can simply switch the little switch to "DLine" and the RX and TX lines are on pin 2 and 3. If you use other shields like the original Arduino one, you may have to modify it a little bit.


Well, my shield is the arduino shield so it hasn't that jumpers, and sparkfun xbeeshield is no longer stocked.
i think i will try to communicate by other way.

Thanks a lot for your help!


Well, my shield is the arduino shield so it hasn't that jumpers

A link is worth more than 1000 words.
The art of getting good answers lies in asking good questions.


with that shield is not possible to send data from the computer via usb and then to the xbee module.


The art of getting good answers lies in asking good questions.


Do you want to send the data directly from your PC to the Xbee (and vice versa), without the need to interact with the microcontroller?


no, i need to interact with the microcontroller.
I think I have two choices;
1. Buy the sparkfun xbee shield http://www.sparkfun.com/products/9976
2. Use the RS232 from the computer with MAX2322 to connect with arduino via UART

if someone have other idea, please tell me!

I am grateful for you help, thank you all


Dec 26, 2011, 11:16 pm Last Edit: Dec 26, 2011, 11:24 pm by guest1102 Reason: 1
3. Build the Xbee circuitry on a breadboard
4. Use a USB to UART bridge such as an FTDI BreakoutBoard ( would have the same function as the MAX2322 Serial chip, but with USB)
5. Use a second Arduino
6. Modify your shield (with pliers and solder Iron)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131