I am trying to figure out how to connect a INA219 sensor to two Raspberry Pi's. I am currently using 4 wires that connect the main Raspberry Pi and the INA219 sensor. There is no code, I am connecting the second Raspberry Pi device to the ina219 sensor that the other raspberry 3 device is connected to. I am trying to connect them to the INA219 sensor via GPIO (both Pi's on the same device).
This is more of a hardware question I suppose but I don't have any code. On the main Raspberry Pi, I created a code on the pi that can measure the voltage, current, and power of the Raspberry Pi device and store it within a CSV file from the INA219 sensor. Right now, I am trying to connect two of the already connected wires to another Raspberry Pi measurement for the voltage, current, and power of the pi device.
I already have a code for the second Raspberry Pi measurements for the voltage, current, and power of the Raspberry Pi device. Again, I am trying to connect two Raspberry Pi 3 devices to each other using an INA219 sensor to be able to retrieve code from the second Raspberry Pi device.