Multiple FS2012 flow sensors on the same I2C bus?

Hi!

We are in the development phase of a project were we would like to use multiple (4pcs) of the FS2012 flow sensors. We would prefer to have them all on the same I2C bus but is that even possible?

As far as we can see there is no way of changing the default I2C address of the sensors (x07).

Parents
  • I try to connect FS2012 with Raspberry Pi 4B+ but no address showing. How to solve it?

  • Hi RB,

    Thanks for the request. Could you please share the circuit schematic and error message that you are getting for our better understanding? I have also attached the working Arduino code for your reference please go through that.

    3660.Fs2012.Arduino code new.txt
    #include <Wire.h>
    #include<Arduino.h>
    #define sensoraddress 0x07 
    void setup ()
    {
    Wire.begin();
    delay (500);
    Serial.begin(9600);
    }
    
    void loop(){
    Wire.beginTransmission(sensoraddress);
    Wire.write(1);
    Wire.endTransmission();
    delay(30);
    Wire.requestFrom(sensoraddress,2);
    while(Wire.available()==0);
    byte MSB = Wire.read();
    byte LSB = Wire.read();
    
    float flow = ((MSB<<8)+LSB)/1000.0;
    Serial.print(flow);
    Serial.println("(L/min)");
    delay(1000);
    }
    

    Regards:

    Raja.

  • No error message. When I connect fs2012 to Raspberry Pi 4B+ it doesn't show any I2C address. But when I connect to Arduino it works fine.

  • Hi RB,

    Thanks for the update. The main problem is with the host MCU. So, I would recommend starting with looking at the host IC driver <Raspberry Pi 4B+> - the Fs2012 is an i2c slave and typically any interfacing errors tend to be driven from the host side. it is difficult for us to diagnose a 3rd party MCU issue - so I would recommend posting your question onto the Raspberry Pi platform. 

    Regards:

    Raja.

Reply
  • Hi RB,

    Thanks for the update. The main problem is with the host MCU. So, I would recommend starting with looking at the host IC driver <Raspberry Pi 4B+> - the Fs2012 is an i2c slave and typically any interfacing errors tend to be driven from the host side. it is difficult for us to diagnose a 3rd party MCU issue - so I would recommend posting your question onto the Raspberry Pi platform. 

    Regards:

    Raja.

Children
No Data