3-Axis Compass HMC5883L & Arduino Mega 2560
facemn
Posts: 3
I've purchased the 3-Axis Compass HMC5883L module, and have hooked it up to my Arduino Mega 2560 board. I've wired the ground and power appropriately, with the SCL > A5 and SDA > A4. The serial monitor shows -1 for all three of the X, Y, Z axis. However, if I wire it up to my Arduino Uno into the same pins, I get actual readings. What gives?
Best,
Jason
Best,
Jason
Comments
Be sure to review the documentation for the board you are using. In some cases connecting things wrong can damage the Arduino. An Arduino Due cannot tolerate 5V inputs, for example.
To off-quote from someplace else, "This isn't your father's Arduino any more."
Thanks so much guys. Didn't catch that those were in a different spot on the Mega board. I'm still new to all of this! I've got it working now.