On the following image, we can see an MPU-9150 from Invensense being interfaced with an Arduino.
**broken link removed**
I want to interface it with an interface board for the TinyDuino:
**broken link removed**
I do not understand why the SDA/SDL connectors are linked to A2 and A3 pins, is this mandatory and arbitrary? Can I change it to any other pin? Behind the scene I use an I2C library (Wire) to communicate with the device, so I would just need to make sure the connections are well made.
Also, is it a good idea to glue the other sensor board on the Proto board?
The SCL/SDA pins are actually pins A5 and A4 and not A2/A3, you can see the pin names printed on the back side of the board.
The location of these pins can't be changes because that it the location where the mcu output the I2C peripheral, the only alternative is to use a software I2C if you want.
The SCL/SDA pins are actually pins A5 and A4 and not A2/A3, you can see the pin names printed on the back side of the board.
The location of these pins can't be changed because that it the location where the mcu output the I2C peripheral, the only alternative is to use a software I2C if you want.
1) Thanks for pointing out the actual pins
2) Is this a rule? Always use A4/A5? Where is this supposed to be documented? SEE EDIT
3) I am actually using I2C software, where the software simply access an I2C address (Wire.beginTransmission(I2C_ADDRESS)). Does this mean I can use any pin?
Thanks.
EDIT: Thanks for the diagram, I see now why it needs to be A4/A5.
You can see the location of the SCL/SDA pins in the pin configuration section
I am actually using I2C software, where the software simply access an I2C address (Wire.beginTransmission(I2C_ADDRESS)). Does this mean I can use any pin?
I haven't used Arduino much, I usually program the bare device but the library you refer to uses the device hardware I2C (Atmel calls it two wire) in which case you also have to use the dedicated pins.