Hi! When trying to communicate between an arduino Duemilanove (328p) and the compass module HMC6352 from sparkfun using the code provided under Arduino Playground - Hmc6352 , the program gets stuck at the line
.
.
Wire.endTransmission();
.
.
after having sent the «command» 'A' and no matter how long I wait, I don't get a response from the compass.
I connected the module as indicated in the above example (GND,3.3V,SDA-->A4,SCL-->A5) and tried with and without pullup resistors on the SDA and SCL-lines.
Wow, my Code using Wire.h only freezes when I use Arduino 17! When I use the old Arduino 15, the very same code works perfectly. Is Wire.h implemented differently in Arduino 17? I use OSX 10.5.8 on an Macbook Pro 13.3" with Intel Core Duo 2. Thanks!
I actually had the Wire.begin() in my setup(){} and still had the problem. Well, I moved over to Arduino 0018 and everything works fine there. Thanks for the input, Dani
Hello, I´m trying to read the HMC6352 compass with that code
and using the vesion 0018 of arduino but it doesn´t work! when connecting (SCL-Analog Pin5 and SDA- Analog Pin 4) it always appears : Current heading: 0.0 degrees, also when moving the sensor...
I don´t know what´s happenning. I need some help please. Thanks!