SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By guanming
#193045
Hi

I was able to connect 9DoF Razor IMU M0 with XBee Pro S1 after making some slight changes to the original code in 9DoF_Razor_M0_Firmware.ino and config.h

Below are the electrical connections:
IMU XBee Pro S1 (with simple breakout board)
GND ----> GND
3V3 -----> VCC
00Rx ----> DOUT
01Tx ----> DIN

Below are the 2 software changes in 9DoF_Razor_M0_Firmware.ino
...
// For production testing only
// To catch a "$" and enter testing mode
// Serial1.begin(9600); // Commented off by GM on 23 Jan
...
// Check for production mode testing message, "$"
// This will be sent to board from testbed, and should be heard on hadware serial port Serial1
// if ( Serial1.available() ) // Commented off by GM on 23 Jan
// {
// if ( Serial1.read() == '$' ) production_testing();
// }

Below are the 2 software changes in config.h
...
// Select the Serial port to log to. Either SERIAL_PORT_USBVIRTUAL
// or LOG_PORT SERIAL_PORT_HARDWARE (SerialUSB or Serial1)
//#define LOG_PORT SERIAL_PORT_USBVIRTUAL
#define LOG_PORT SERIAL_PORT_HARDWARE // Edited by GM on 23 Jan

//#define SERIAL_BAUD_RATE 115200 // Serial port baud
#define SERIAL_BAUD_RATE 57600 // Serial port baud Edited by GM on 23 Jan for XBee serial to transmit at 57600 baud rate