Hi, I am trying to connect a compass to my UAV using Panda II.
I have studied a lot of the samples here, but I am still not able to make this work.
I can see the I2C is sending 0x21, this is what is in HMC6352 sample. But what is confusing me is that the MC6352 spec refers to 0x42 hex. And other code I see takes the address and divides it by two. Why is this needed?
But still it doesn’t work. Do the analog signals look OK? Is it getting close enough to ground?
I2C addresses are 7-bit only; you must use the 7-bit address. When you talk about “divide by two” did you actually mean that it was “/2” somewhere, or that it was just shifted ? Often times people use the 8-bit address and shift that to that they get a 7-bit value.