How to access the Nicla Sense ME board via I2C bus using Asset Tracker/Samd51

Hello,

I have a Sparkfun Asset Tracker Board w/samd51 plugged into it and I have a Nicla Sense ME connected to it with a qwiic connector (I2C bus). I’m using the Arduino IDE 2.0 to program

What I’m trying to do is access the Nicla Sense ME via the samd51. While I was able to program the Nicla Sense ME as a stand alone, I’m not sure how to access it via the I2C bus. I want to access the accelerometer, gyroscope, etc. from the Nicla Sense ME and gather the data and then send it via the com port of the Asset Tracker Board so that it can be gathered by PuTTY.

However, the whole issue for me is how do I access the Nicla Sense ME via the I2C bus. I’ve looked at examples of using the I2C to access a power switch, but I’m not able to make the translation to the Nicla Sense ME.

And in fact, I will have two Nicla Sense MEs on the I2C bus.

Does anyone have any ideas on this?

Thanks!

…John

Here are the boards I’m using:

MicroMod Samd51: https://learn.sparkfun.com/tutorials/mi … o-examples

MicroMod Asset Tracker: https://learn.sparkfun.com/tutorials/mi … troduction

Nicla Sense ME: https://www.sparkfun.com/products/19727

I don’t see a qwiic connector on the nicla board. Even if it had one, you probably couldn’t connect two together because the i2c address would conflict.

This is not going to be easy and will require you to write custom software on all three devices to make it work.

Hello YellowDog,

YellowDog:
I don’t see a qwiic connector on the nicla board. Even if it had one, you probably couldn’t connect two together because the i2c address would conflict.

This is not going to be easy and will require you to write custom software on all three devices to make it work.

Thanks for the information. There isn’t a qwiic connector on the Nicla Sense ME, but there is on the Asset Tracker. Right now it’s wired up so that the Asset Tracker board is daisy chained by I2C to two Nicla Sense MEs. There is an I2C for the Nicla Sense MEs.

I guess two Nicla Sense MEs on the bus is a problem because they have fixed addresses in side the chips. Is it straightforward with just one Nical Sense ME?

Any way, I appreciate it. We are trying to find a way to integrate these boards to get the data we want. I am a programmer, but the vast majority of my programming has been on Windows and Linux. I did one Arduino in the past, but it was pretty straightforward compare to this. We are determined to get this thing working.

Thanks,

…John