- Tue Mar 12, 2024 10:13 am
#247844
Hello all,
I am working on a system that uses the SparkFun OpenLog Artemis with the IMU built-in (DEV-16832). The OLA is taking the input data from the IMU and running it through a bunch of algorithms to achieve a few desired parameters. Now the part where I'm stuck at is the communications – specifically I2C.
The data is being transmitted without any errors over UART on the RX and TX pins on the OLA. I need to send the data over I2C. In my use case, the OLA needs to work as a peripheral/slave device. However I'm unable to do get I2C communication going.
I have tried to start from the basics and tried connecting two OLAs together using the qwiic connectors and the appripriate cables. I have gone through the examples mentioned here. However I have not been able to get any of them working. I even tried I2C bus scanner sketches, but I'm not able to find any I2C devices.
Below are my questions:
1. Is it possible to send data out of the OLA over the I2C protocol?
2. If yes, should I be using the in-built qwiic connector for it? Or should I use a software library like SoftWire that can establish I2C over the GPIO pins?
3. I need to verify if the communication is working properly or not using another Arduino-based microcontroller. How would I go about doing that?
I don't know if it is my limited understanding of the working of the I2C protocol itself or something else, so your help would be highly appreciated.
Thank you.
I am working on a system that uses the SparkFun OpenLog Artemis with the IMU built-in (DEV-16832). The OLA is taking the input data from the IMU and running it through a bunch of algorithms to achieve a few desired parameters. Now the part where I'm stuck at is the communications – specifically I2C.
The data is being transmitted without any errors over UART on the RX and TX pins on the OLA. I need to send the data over I2C. In my use case, the OLA needs to work as a peripheral/slave device. However I'm unable to do get I2C communication going.
I have tried to start from the basics and tried connecting two OLAs together using the qwiic connectors and the appripriate cables. I have gone through the examples mentioned here. However I have not been able to get any of them working. I even tried I2C bus scanner sketches, but I'm not able to find any I2C devices.
Below are my questions:
1. Is it possible to send data out of the OLA over the I2C protocol?
2. If yes, should I be using the in-built qwiic connector for it? Or should I use a software library like SoftWire that can establish I2C over the GPIO pins?
3. I need to verify if the communication is working properly or not using another Arduino-based microcontroller. How would I go about doing that?
I don't know if it is my limited understanding of the working of the I2C protocol itself or something else, so your help would be highly appreciated.
Thank you.