Difference between revisions of "I2C connector pinout"
From BitWizard WIKI
(Created page with " For the interconnect between I2C masters and the I2C expansion boards BitWizard uses a 4-pin I2C cable. {| border=1 ! pin !! function !! remark |- | 1 || GND || Power Grou...") |
(→example connection to rpi_serial) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
For the interconnect between I2C masters and the I2C expansion boards BitWizard uses a 4-pin I2C cable. | For the interconnect between I2C masters and the I2C expansion boards BitWizard uses a 4-pin I2C cable. | ||
+ | |||
+ | The connector is laid out as follows: | ||
{| border=1 | {| border=1 | ||
Line 15: | Line 17: | ||
|- | |- | ||
|} | |} | ||
− | |||
− | |||
− | == Connecting the | + | == Connecting the BitWizard boards to an Arduino == |
{| border=1 | {| border=1 | ||
− | ! pin !! function !! arduino pin | + | ! pin !! function !! arduino pin !! Arduino Mega |
|- | |- | ||
− | | 1 || GND || GND | + | | 1 || GND || GND || GND |
|- | |- | ||
− | | 2 || SDA || A4 (Analog input 4) | + | | 2 || SDA || A4 (Analog input 4) || Digital 20 |
|- | |- | ||
− | | 3 || SCK || A5 (analog input 5) | + | | 3 || SCK || A5 (analog input 5) || Digital 21 |
|- | |- | ||
− | | 4 || VCC || VCC | + | | 4 || VCC || VCC || VCC |
|- | |- | ||
|} | |} | ||
You could use other pins, but then you have to make a software I2C implementation. This is not too difficult, but might be neccesary if something else is already on the I2C pins. | You could use other pins, but then you have to make a software I2C implementation. This is not too difficult, but might be neccesary if something else is already on the I2C pins. | ||
+ | |||
+ | |||
+ | == Example connection to rpi_serial == | ||
+ | |||
+ | [[File:i2c_connection.jpg|none|thumb|600px|alt=i2c connection to RPi_serial|i2c_lcd connected to rpi_serial]] |
Latest revision as of 12:12, 10 December 2015
For the interconnect between I2C masters and the I2C expansion boards BitWizard uses a 4-pin I2C cable.
The connector is laid out as follows:
pin | function | remark |
---|---|---|
1 | GND | Power Ground |
2 | SDA | Serial I2C Data |
3 | SCK | Serial I2C Clock |
4 | VCC | Power 5V. |
Connecting the BitWizard boards to an Arduino
pin | function | arduino pin | Arduino Mega |
---|---|---|---|
1 | GND | GND | GND |
2 | SDA | A4 (Analog input 4) | Digital 20 |
3 | SCK | A5 (analog input 5) | Digital 21 |
4 | VCC | VCC | VCC |
You could use other pins, but then you have to make a software I2C implementation. This is not too difficult, but might be neccesary if something else is already on the I2C pins.