16
2. Analog Input Ports
There are three Grove ports for taking analog readings.
Analog sensors can return readings ranging from 0 -
1024. Compared with digital sensors that only return 0
or 1, analog readings are more detailed and precise.
3. I2C Ports
There are two I2C Grove ports. I2C is a low-speed bus
protocol that transfers data via two wires: SCL and SDA.
SCL is the clock line that synchronizes data transfer
over the I2C bus, and SDA is the data line. The following
diagram illustrates the framework of an I2C bus.
You can connect up to 128 devices on the I2C bus;
however, only one of them can work in master mode,
while all of the others work in slave mode. For Grove,
the master is the Arduino.