ArduinoTroubleshooting

Read multiple i2c sensor

userHead gurguvalentin 2023-04-28 02:26:32 294 Views3 Replies

Hello, 

I have 4 sensors to be exact, H2S, NH3, SO2, NO2.
All 4 are connected to an arduino through an i2c bus, and they have different addresses, how do I read all 4 at the same time?

2023-05-12 21:59:34

Thank you very much!

userHeadPic gurguvalentin
2023-05-10 00:43:39

We assumed you are using the SEN0467(H2S), SEN0469(NH3),SEN0470(SO2) and  SEN0471(NO2) at the same time.

And the SEN0467 at 0x74, SEN0469 at 0x75 , SEN0470 at 0X76, SEN0471 at 0X77.

 

Here is the sample code for you to reference:

https://github.com/YeezB/Multiple_IIC_Gas_Sensor

 

I upload the code onto the Github, because there is a character limit for Forum replies.

userHeadPic Yeez_B
gurguvalentin wrote:

Thank you very much!

2023-05-12 21:59:52
1 Replies