Forum >Replies by ThierrySolignac
userhead ThierrySolignac
Replies (3)
  • You Reply:

    Hi Jenna, 

    I have a last question.

    what will give more the data via the filter with the command data = lwlp.getfilterData();?

    Where may I find the answer?

    Thank you again for your support. 

  • You Reply:

    Hello Jenna , following your question I checked the I2C scanner:

     

     

    #include <Wire.h>

     

     

    void setup()

    {

    Wire.begin();

     

    Serial.begin(115200);

    while (!Serial); // Leonardo: wait for serial monitor

    Serial.println("\nI2C Scanner");

    }

     

     

    void loop()

    {

    byte error, address;

    int nDevices;

     

    Serial.println("Scanning...");

     

    nDevices = 0;

    for(address = 1; address < 127; address++ ).  

    {

     

    Wire.beginTransmission(address);

    error = Wire.endTransmission();

     

    if (error == 0)

    {

    Serial.print("I2C device found at address 0x");

    if (address<16)

    Serial.print("0");

    Serial.print(address,HEX);

    Serial.println(" !");

     

    nDevices++;

    }

    else if (error==4)

    {

    Serial.print("Unknown error at address 0x");

    if (address<16)

    Serial.print("0");

    Serial.println(address,HEX);

    }

    }

    if (nDevices == 0)

    Serial.println("No I2C devices found\n");

    else

    Serial.println("done\n");

     

    delay(5000); // wait 5 seconds for next scan

    } 

    I changed “1 ” for “0” right now and you were right. Now the scanner see the device :)

  • You Reply:

    Hello Sir

    Thank you for your repply.

    In fact,when i am using an I2C scanner, i dont see it at all.

    I can see my other I2C sensor but not this one.

    I tried with different  wires and it doesn't change anything.

    In fact i have 2 sen0343 sensor and no one is working. Same issue for both