Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 Arduino Uno's, 2 Xbees and 2 Wireless Proto Shields. The first setup has a humidity/temperature sensor (SHT21P) and it writes data to serial and it works (i've tested it). Now I have the other Arduino with shield and Xbee- plugged in PC to get data from the sensor. So here's the problem- as far as I understand I can't use Xbee and Arduino at the same time, because USB and Arduino both use TX RX pins to communicate to PC/Xbee. I've tested both of the Xbees when they are powered with DC jack and they both work. So can anyone confirm that it's true that they're not made for being used by PC and Arduino at the same time? If so- how can I get the data to my computer?

share|improve this question

If I understand correctly your goal is to receive data on your computer from an arduino connected with xbee? You could use a USB > Xbee board similar to Sparkfun's Xbee USB explorer board. I am not familiar with the shield that you are using, but some xbee shields allow you to select the pins that the xbee is connected to. It sounds like yours is defaulting to Pin 0 and Pin 1, hardware serial on the Uno. If you can switch it to Pin 2 and Pin 3 (or any two digital pins) you could use software serial with the xbee, leaving hardware serial free for your USB connection.

share|improve this answer

Okay, I guess I figured it all out. So right now I have the following setup- 1 Arduino Board with Wireless Proto Shield (switch in Micro position) and Xbee hooked up via DC jack pin, sends data to serial with Serial.print(variable) where variable is predefined char array. The other setup- Arduino with Wireless Proto Shield (switch in Micro position) and Xbee is hooked to PC via USB and with Serial.read() i'm able to read data via Serial Monitor. No configuration required what so ever, the only thing you need to do this is to upload Serial.begin(9600) to both boards. So it's true that I can't use Arduino and Xbee at the same time, but this still works for me to solve the problem I had.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.