General

Conflict in the I2C port with the Gravity: I2C Oxygen / O2 Sensor SEN0322

userHead Kathleensue 2023-09-19 15:24:59 745 Views1 Replies

I am having conflict in the I2C port with the Gravity: I2C Oxygen / O2 Sensor SEN0322. When I try to read this sensor with my arduino uno using “getOxygenData” example code from DFRobot_OxygenSensor library, it works perfectly. 

 

But, if I connect an Oled SSD1306 I2C screen to my arduino and I add the Adafruit_SSD1306 library in the “getOxygenData” example code, my Arduino can not detect the oled and get reseting continuasly. If I disable the Oxygen sensor part of code, the arduino can detect the oled and it works fine.

 

So, I am thinking that there is a conflict in the I2C port. From what I see, the Oxygen sensor does not like to share the i2c port.

 

Any help? Thanks in advance ;)

 

2023-09-23 01:11:46

Could you try the DFRobot_SSD1306 to see if it works on your SSD1306 screen?

https://github.com/DFRobot/DFRobot_SSD1306

 

Usually, libraries from the same manufacturer have the best adaptability.

userHeadPic Yeez_B