SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
User avatar
By pdm
#198759
My Sparkfun Xbee shield does not seem to communicate with an Arduino Mega 2560. If I am correct, the Mega is a 5V device like the Uno, so logic levels should not be a problem. The Xbee module is associating with the other devices in the network and communicating via RF. I can access it remotely using XCTU from another node and it appears to be OK. It just won't talk to the Mega. Neither the Mega nor the shield appears to be damaged; I can put the shield on a Uno to test it and everything is OK. The shield is on the section of the Mega's headers that is common with the Uno. I am missing something obvious here. But what is it ?
User avatar
By pdm
#198762
Never mind, I answered my own question. I had the xbee shield set up to utilize the AltSoftSerial library, which is needed if an Uno is being used, but is not necessary on the Mega and in addition doesn't use the same pins on the header for Rx and Tx. I changed over to Serial1, moved the jumpers on the shield, and now everything works.