Another stupid question: From the example on the internet I see the convention of using Analog pin4 is used as I2C SDA, and Analog pin5 is used as the serial clock. I just wonder why is the pin 4 and 5. Could i use 6 or 7 instead? And more importantly, could i establish 2 I2C connection on the arduino? (i.e. using pin 4,5; 6,7 in pairs) I know the answer should be not but I don't know the explanation.
And i want to know the differences between RX/TX serial communication and the I2C. Actually i even don't know if they are the same thing or not. The RX/TX use the digital pin 0 and 1 while the I2C use analog 4 and 5...this is the only thing i know. So, under which circumstance I should use RX/TX and for the I2C? Do the I2C connection use up the RX/TX port? (or could not do them at the same time)
Can i connect 4 HMC5843 to one single arduino?
Can they be configured with different addresses? If so, yes. If not, no.
''The I2C hardware in the ATmega8/168/328 only supports one slave address.''
so i cant connect the arduino UNO to four slave devices?
Magnetometer reads X,Y,Z already, why would you need more than 1?
My main question is: Can i connect 4 HMC5843 to one single arduino?
From the HMC5834 datasheet i can see that there is a column about 12c address...
... so that only the selected device sees the clock line toggling ...
Be prepared to be corrected - the Clock only goes one direction!