Can you confirm you're using this sensor (link)?
This is how it should look:
First of all, let me summarize a little bit about the board. Correct me if I'm wrong.
This board communicates through the following ports:
Since the data that's extracted from the sensor is time-sensitive, we need the
interrupt pins for triggering the
Interrupt Service Routines in order have an exact measurement of the delay between readings. Having these kinds of measurements helps up calculate things like
By reading your post, I assume you want to connect this board to the
GrovePi board through the
You can do that, but I don't think it's going to work.
The hard way is make it work with the
GrovePi firmware, what you should do is to write some specific routines for the firmware, work on the communication protocol for the firmware and then make additional changes for the
Raspberry Pis software.
And at the end, you'll have a more inefficient solution since all the polling must be done through
I2C (from the
Raspberry Pi to the
It's going to be a Rube Goldberg machine.
The simpler solution is to connect the
I2C port from the sensor board to the
GrovePi board and get the other
2 interrupts connected to some
GPIO ports on the
GrovePi header. You won't be able to use the
Grove connector for the
interrupt pins, but you can wire them to the header by using some jumpers.
Please don't use
pin 24 since that one resets the
GrovePi board. So
pin 24 corresponds to
GPIO 8 on the
Raspberry Pi. Please take a look at the following pin-out. Please avoid using that pin.
After you get all the things wired up, you can program on the
Raspberry Pi : make some routines for the interrupts and read the values via the
Please, let me know if there's anything else you want to know.