I’m setting up two arduino’s with XBee’s and the Sparkfun xbee sheilds to transmit data between two systems.
With the boards programmed and the XBee’s in their default setting, it works perfectly, except it is too slow.
I’m trying to write code that will set the xbees at the desired baud rate when the board boots, so that I can use the boards for other tests at the same time, without taking the xbee’s off to reprogram them with a computer.
Attached is the code for the reception end. The changes I made should be pretty obvious, and as soon as I run this code the system stops working. Using the port monitor, I am still only able to see output at 9600 baud, and it is usually garbage.
Have I made any obvious mistakes or logical errors in my code?
bd38400_PulseReceiver.pde (1.14 KB)