Hello , i want to get measurements from this https://www.sparkfun.com/products/10167?
, it works with my arduino , but i want to know if i can share the data pin and connect it to my raspberry pi , in order to read the measurements from there too.... Is that possible ? Does anyone tried it ?
In principle, yes. However, there are the following considerations:
1. The Rasperry Pi uses 3.3V signal levels. Most Arduinos use 5V signal levels. So you will have to either use a 3.3V Arduino, or be very careful not to let the Arduino drive more than 3.3V on to that line. Or use a buffer chip or diode and 2 pins - see point 3 below.
2. Both the Arduino and the Pi need to drive the device using an open-collector output. I know how to do this on the Arduino, but not on the Pi.
3. If either the Arduino or the Pi is powered down, the other will not be able to read from the device. This can be solved, but you would need to use 2 I/O pins per device, an open-collector buffer chip and a couple of diodes.