I have another thread more in line with my project in general, but I wanted to make one for this specific problem. I am trying to connect an magnetometer to my arduino Mega 2560. I have everything all nice and wired up (had the circuit double checked by a coupe different people). It is based off a diagram that another user and I agreed should work.
components: Arduino Mega 2560, LSM303C mag sensor, and level shifter
I am just trying out the I2C scanner sketch to check if everything is at least wired properly. http://playground.arduino.cc/Main/I2cScanner
The code hangs in the first pass through the for loop once it reaches
I disconnected the circuit from the arduino and the scanner sketch ran fine, but the problem arose when I reconnected everything.
I have seen a couple threads with similar issues but details were never explained well enough for me to follow.
my sensor data sheet:http://www.st.com/web/en/resource/technical/document/datasheet/DM00089896.pdf
I have a circuit diagram available to post if the need arises. Any suggestions on where to start with an issue like this?