I2c wiring library, master and slave and eslov port with GPS

Hi,

I am trying to do simple thing, I have an arduino nicla sense me and I have connected the MKR GPS module to it using eslov port (i2c).

At the same time I have the arduino connected to a Raspberry PI zero via I2C port using the GPIO.

The raspberry pi is the master and the Nicla sense me is the slave in this case, the implementation is done using the Wiring.h basic code nothing fancy.

Once of the issues I am facing is that, it is easy to setup the arduino as a slave and transmit data to the PI when the ESLOV GPS is not connected. However, when I connect the GPS the PI can no longer
detect the Arduino.

I think the Wiring,h header is getting confused when the ESLOV is connected, I tried to use Wire1 object but it was the same thing.

Is there any example how to do this ? how to make the Arduino slave at one i2c port and a master at the ESLOV port ?

For now I am not trying to get data from GPS, I just want to transmit data from the Arduino to the PI while the GPS is connected.

Many thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.