I2C compass problem

sigve:
I am not sure how the functions i use work, i think finding that out is the key. But i dont know what liberary it uses etc. does anyone know?

That’s why, in the prior posting of mine, I sent you the full source to I2C tha works without use of a mystery-library. Even if you don’t use that code, it will help you understand how to use the AVR’s I2C hardware.

I am getting worried something is wrong with the compass.

i just bougth an I2C EEPROM to test the functions, and it worked perfectly, both reading and writing.

Seams like the entire shipment from SPF is damaged, the GPS diddent work, the modem was broken , and now apperently the compass aswell…

Hi sigve,

I’ve just bought some of these compasses from sparkfun and had no joy getting them to work either.

Did you ever confirm if they were as damaged as you say? Or did you get them working? If they are working - care to post some code?

Many thanks!

HI

i sent all the things back to sparkfun, and they found nothing wrong with the compass, seams it’s just a little tricky to make it work. The gps was bruken though and i got a new one.

I havent got around to start working on some new code for the compass, but if i find out something i will be sure to post it here.