Can the data from the analogue ports A0, A1 and A2 be accessed to be a stream of serial data instead of via the I2C pin of the Pi ? I’d like to gain access to the Arduino code to see if it can be modified to do this.
So the data would be raw sensor data but with a defined delimiter of some sort between readings of the sensor (i.e. temperature).
It is possible to access the data serially. You can do this by modifying the firmware though.
Here’s the source code for the firmware https://github.com/DexterInd/GrovePi/blob/master/Firmware/Source/v1.1/grove_pi_v1_1/grove_pi_v1_1.ino .
To upload the code, you’ll have to connect the reset wire in the same way as when Upgrading the firmware. You’ll also have to hack the Grove connector when connecting the GrovePi serial and the Raspberry Pi Serial.
Is there a way to connect to the GrovePi board via an Arduino development environment so it’s easier to update the firmware ? Thinking about rapidly changing the Arduino code during development of a serial solution to the sensors
We already have that up and running for the Arduberry. You can use the same environement for the GrovePi. Connect the jumpers in the same way as for the firmware update and follow this guide. http://www.dexterindustries.com/Arduberry/getting-started/.
You should be able to get the Arduino IDE Up and running in no time.