Accelerometer output corrupt in Serial Monitor.

Accelerometer output corrupt in Serial Monitor.

I've taken the code and the instructions from here: ( https://www.arduino.cc/en/Tutorial/ADXL3xx )

The only difference is that I'm not using an ADXL3xx, but rather a HMC5883L. The pin outputs seem to be the same on each one though.

When I open the serial monitor, there's a flood of information (as expected) but it's just this:

Can anyone advise me on what's going wrong?

Cheers,
Luke

I found the problem! My baudrate was too high, i switched it to 9600 and hey presto, perfect results!!

My baudrate was too high

No such thing.

Your baud rate in the Serial Monitor application might not match that of the sketch. The solution it to make the baud rate of the Serial Monitor match the baud rate of the sketch, not to reduce the baud rate of the sketch.