Evening. I have an odd one here...
Using an Arduino Mega for a project. The unit is controlling an external motor controller, and reading signals from a host of sensors to make decisions on the amount of power to request from the controller.
We have been sucessfully logging the signals and the internal states of the system to a small SD card logger for some time, no problem.
Thought it would be cool to add some telemetry, so we bought 2x XBee pros, got them set up and it works, great.
Put it on the system, and it works a treat, sending signal data back nicely.
Pushed the 'go' button, and start the thing actually working, requesting motor power, and it runs for a short while and then crashes. Whatever outputs from the arduino 'stick' at their last good value. Sometimes it resets and all is good, but often it just stops.
Unplug the XBee, and it works perfectly again. I removed the link from the XBee Tx to arduino Rx (as we currently don't need comms that way) wondering if maybe the interrupts on the serial pin was causing an issue, no difference.
Leave it sitting there, with no demand for power, it works OK.
The problems seem to really happen when the system is running, and the interrupts are being triggered by the rotating sensors etc.
Thoughts? I'm stumped.