I have a few useful I2C components, such as a 16-bit port expander (MCP23017), which I'd like to use in various projects.
What do I need to do to make these work with Arduino? Will it work with any Arduino, or do I need a specific board or shield?
I have a few useful I2C components, such as a 16-bit port expander (MCP23017), which I'd like to use in various projects. What do I need to do to make these work with Arduino? Will it work with any Arduino, or do I need a specific board or shield? |
||||
|
Arduino have the Wire Library that communicate with I2C.
Board I2C / TWI pins
You can take a look at this, this examples. Like @TheDoctor said:
|
|||||||||||||
|
Additional shields are not needed. You only need the Wire library and a couple of wires to connect the device to SDA and SCL. The position of these pins is different on the various Arduinos, please have a look here. |
|||
|