Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Just gettin started - problem with XBee Shield on: November 18, 2010, 06:45:43 am
First, thanks for your reply!

Here's the hardware, all purchased from FunGizmos.com
2 x XBee 1mW Chip Antenna (1mw chip)
1 x Arduino Uno (Uno)
1 x Arduino Uno Basic Bundle
2 x Arduino Xbee Shield (Bare) (Xbee (Bare))

One arduino is running the PhysicalPixel example code.
the other is running the following:

void setup()
{
  pinMode(13, OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  digitalWrite(13, HIGH);
  Serial.print('H');
  delay(1000);
  digitalWrite(13, LOW);
  Serial.print('L');
  delay(1000);
}

I followed the example from the xbee arduino website.

The xbee's are out-of-the-box. No configuration.

Per the instructions, both arduino's seem to be working while they're talking to the IDE but as soon as I disconnect, change the jumpers to xbee from USB and plug the arduinos back into the USB cables for power, they appear not to be running. I'm assuming this because the #13 LED is fast flashing on both arduino's and the #13 LED is not turning on/off on a 1 second cycle.

Let me know if you need additional info and thanks again.

Vince.
2  Forum 2005-2010 (read only) / Troubleshooting / Just gettin started - problem with XBee Shield on: November 17, 2010, 09:31:31 pm
I went thru the simple xbee shield setup and everything seems correct. Can receive "H"&"L" on the serial monitor.  LED turns on & off when connected via USB. when I switch shield to XBee and try the radios, the #13 LED flashes fast on both boards and no comm.  On the radio that is sending "H" & "L", I added code to blink the LED on with "H" and off with "L".  when I remove the xbee shield, the arduino runs fine. when I plug the xbee shield in,  #13 LED flashes fast. appears to be not running the code.  

Can someone tell me what I am doing wrong?
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 21, 2010, 10:27:48 am
By the way, These comments came directly from the  Arduino Troubleshooting page.  Here they are:

Why doesn't my sketch start when I'm powering the board with an external power supply? (Arduino Diecimila or earlier)

Because the RX pin is unconnected, the bootloader on the board may be seeing garbage data coming in, meaning that it never times out and starts your sketch. Try tying the RX pin to ground with a 10K resistor (or connecting it to the TX pin).

Why doesn't my sketch start when I power up or reset the Arduino board?

Most likely because you are sending serial data to the board when it firsts turns on. During the first few seconds, the bootloader (a program pre-burned onto the chip on the board) listens for the computer to send it a new sketch to be uploaded to the board. After a few seconds without communication, the bootloader will time out and start the sketch that's already on the board. If you continue to send data to the bootloader, it will never time out and your sketch will never start. You'll either need to find a way to stop serial data from arriving for the first few seconds when the board powers (e.g. by enabling the chip that sends the data from within your setup() function) or burn your sketch onto the board with an external programmer, replacing the bootloader.
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 21, 2010, 10:22:33 am
Once the IDE uploads a sketch to the Arduino, it's save in the micros memory.  Upon powering the Arduino, the bootloader loads the sketch that is in it's memory and executes it.

I have been successful at getting the radios working but I'm still having this loading problem.  I have been able to get it to work by talking to the Arduino using the X CTU.   As soon as I ping the Arduino externally with some serial comm activity the bootloader loads the sketch and it works but I'm still not sure why. Either it has to do with the serial comm, not allowing the bootloader to load or there is a reference on the Arduino troubleshooting page that either the RX or TX lines need to be tied to ground with a 10K resistor.  I'm heading to Radio Shack to pickup a couple of resistors to try this fix.  For something that is suppose to work out of the box, this sure has been a pain in the A#%.
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 20, 2010, 11:11:34 am
I read there are/were problems with the bootloader not able to load a sketch if the sketch is invoking the serial port and not allowing the bootloader to timeout. If the serial port is on from the get-go, the bootloader never times out and keeps trying to connect to the IDE, therefore never loading the sketch.

Ever heard of this?
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 20, 2010, 11:06:37 am
I am using a USB from a Desktop computer and a 5 volt 2500 mA wall wart.

7  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 20, 2010, 11:04:53 am
The sketch, any sketch, will load and run when attached to the USB and IDE with the sketch and radio connected.

The sketch will NOT load when attached to the USB with the shield and radio connected. (not talking to the IDE)

The sketch will NOT load when attached to the power supply with the shield and radio connected.

The sketch will load and run when the shield is connected but with no radio.

The sketch will load and run when the shield is not connected.

I can communicate and program the radio via X CTU.
8  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 20, 2010, 10:49:05 am
BUT, I was able to talk to and program parameters into the radios using X CTU.  So, I'm not sure about your theory.
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Xbee Shield problem on: November 20, 2010, 10:47:07 am
Thanks for your reply.

It works when the shield is not plugged in.
It works with the shield plugged in and no radio plugged in.

It does not work with the radio plugged in.

Both radios Bad?  seems unlikely but  maybe!
10  Forum 2005-2010 (read only) / Troubleshooting / Arduino Xbee Shield problem on: November 20, 2010, 09:28:00 am
I have been trying to get the arduino xbee shield up and running with two XBee's and there appears to be a problem loading the sketch when externally powering the boards.  I have verified this by uploading the "Blink" sketch. When the Xbee shield is plugged in (doesn't matter whether the jumpers are in the USB or XBEE position), Blink won't load, evidenced by the LED fast blinking 3 times.  When I disconnect the xbee shield, Blink loads and runs.  This is the same behavior when I'm trying to get 2 Xbees to communicate. Yes, I have already configured the XBees using X CTU.  And I have gone thru numerous samples from numerous forums/blogs.  The marketing hype of this system will tell you this works straight out of the box.  Which appears to be a bunch of crap.  I'm involved in a serious project and can't be fooling around with a tinker toy system.
If this is a typical problem, I'm moving on to a real development system
Pages: [1]