Pages: [1]   Go Down
Author Topic: USB+XBEE SHIELD  (Read 836 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

thanks!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50165
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Well, my shield is the arduino shield so it hasn't that jumpers
A link is worth more than 1000 words.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/es/Guide/ArduinoXbeeShield
with that shield is not possible to send data from the computer via usb and then to the xbee module.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50165
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.sparkfun.com/products/9976
is a much better shield.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
« Last Edit: December 26, 2011, 05:24:21 pm by guest1102 » Logged

Pages: [1]   Go Up
Jump to: