Grove is a modular, standardized connector prototyping system. Grove takes a building block approach to assembling electronics.
Grove modules use a variety of interfaces including GPIO (analogue / digital), I2C and UART.
UX2-GPIO - 4 x GPIO, 1 x UART, 1 x I2C, 1 x SPI:
UX2-I2C – 3 x I2C, 1 x UART, 1 x SPI:
UX2-ALT – 2 x GPIO, 1 x UART, 2 x I2C, 1 x SPI:
Grove devices are usually connected with 4-wire cables:
- Data 1 (yellow wire)
- Data 2 (white wire) - sometimes not used
VCC
(red wire)GND
(black wire)
The Data wires (yellow and white) will always be the same protocol; either I2C (SCL
and SDA
), UART/Async (RX
and TX
), Digital (D0
and D1
) or Analogue (A0
and A1
):
UX2 | Grove |
---|---|
VCC (pin 3, red wire) |
|
GND (pin 4, black wire) |
|
SDA (pin 2, white wire) |
|
SCL (pin 1, yellow wire) |
|
TX (pin 2, white wire) |
|
RX (pin 1, yellow wire) |
|
Dn (pin 1 and 2) |
|
An (pin 1 and 2) |
Remember that each GPIO (Gx
) pin can only be connected to one target analogue or digital device. Such devices usually have two pins of the same type. For example: Digital device has D0
(pin 1, yellow wire) and D1
(pin 2, white wire). Analogue devices work in a similar way.
The UX2 UART (RXD
and TXD
) pins can only be connected to one device.
The I2C interface supports chaining of multiple devices. Keep an eye on 3V3
pin current draw when chaining multiple devices.
Ensure GPIO (Gx
) pins support ADC/DAC and PWM.