I’ve been trying to find a solid example on how to access a GrovePI sensor attached to one of 4 ports (analog, digital, serial or I2C).
There are pieces information here and there.
Would someone kindly share
which firmware, if any, has support for GrovePI sensors?
a Python example for a sensor, say like a GrovePI temp/humidity sensor?
what pin # to use when accessing these GoPiGo ports?
Hey,
The GoPiGo has 4 ports: Serial, I2C, digital and analog. The I2C and serial ports are connected directly to the Pi so any of the Serial or I2C sensor which works with the GrovePi works with the GoPiGo too.
Hey,
The pins on the motor controller are connected to the digital pins too. We didn’t want people to accidentally turn on/off the motors or do something else accidentally so we just added the check condition to makes sure that people only access the pins which are broken out on the Grove connectors. Pin 0,1 are on the serial port, pin 10 on the Digital port and pin 15 on the analog port. You can remove this condition if you want but it might be better to just leave it in.