What is the difference between the these two arduino xbee shields. Mention advantages/ disadvantages of each. I want to use Xbee to communicate between two arduinos.
I would not use either one of them. Both force you to use the hardware serial port to communicate with the XBee, making it difficult to use the hardware serial port to communicate with the PC, for debugging purposes.
The advantages of the first one are that it stacks on the Arduino more securely, without blocking any pins that it doesn't use.
There are no advantages to the second piece of crap.
PaulS:
I would not use either one of them. Both force you to use the hardware serial port to communicate with the XBee, making it difficult to use the hardware serial port to communicate with the PC, for debugging purposes.The advantages of the first one are that it stacks on the Arduino more securely, with blocking any pins that it doesn't use.
There are no advantages to the second piece of crap.
So what do you recommend?
So what do you recommend?
Probably the least obnoxious board available, though far from perfect.
Ideally, there would be a board that used jumpers to allow you to select which pins to use to talk to the XBee. This one allows you to select the hardware serial pins OR pins 2 and 3. While pins 2 and 3 are close, so the circuit design is easy, those are the external interrupt pins. Using them as the SoftwareSerial pins was a bad choice, in my opinion.
I would go with this official shield:
Advantage over the sparkfun board:
- Possibly cheaper if not around the same price
- Has SD card slot (big plus for data logging etc.)
- All arduino pins broken out with the solder holes, not half-ass broken out like sparkfun (A0-A5 etc no solder holes other than the stacking header)
- This goes with 2: ICSP header! Works with mega on sd card. You can even replace it with a female stacking header to pass the header to the shield above, not like sparkfun's cheap version. Adafruit is equally cheap with their SD logger shield.
FYI, I own both arduino and sparkfun shields. I didn't bother to build the sparkfun shield (solder headers). Looked at it, nah. Back in the box. I also have tons of adafruit sd logger shields. Not the best in the world. Missing ICSP header makes it incompatible with newer boards, or limping with software SPI crap and can't stack other shields that need it.
The ebay shield is pretty crappy looking. It seems to have nothing on it (I don't have x-ray vision). At least the banggood stuff has some voltage regulator and level shifting.
For the hardware serial thing: bend shield pin 0 and 1, jump 0 and 1 to other pins you like to use, on top of the shield.
Attached, data logger I designed and built. Has Official wireless shield, xbee-pro 900, microSD card, my own SDI-12 Serial shield (green), and 20X4 LCD keypad panel. Got two soil sensors hooked up (system not powered).