Go Down

Topic: Wire.endTransmission-probl when talking to HMC6352 (Read 992 times) previous topic - next topic


Jan 29, 2010, 10:35 pm Last Edit: Jan 29, 2010, 10:47 pm by local_dani_21 Reason: 1
Hi! When trying to communicate between an arduino Duemilanove (328p) and the compass module HMC6352 from sparkfun using the code provided under http://www.arduino.cc/playground/Learning/Hmc6352 , the program gets stuck at the line


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.

Do you have an idea, where the problem might be?

Thank you very much. Dani


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!


Hi, don't know if it's still useful, but in Arduino 17 it seems obligatory to put a "Wire.begin();" into the setup()-function.


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


Mar 08, 2010, 06:51 pm Last Edit: Mar 08, 2010, 06:57 pm by Kaituka88 Reason: 1
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!


the code that I´m using is:



Go Up