I2C sensor No device found

Hello I have a problem with my seesaw sensor Adafruit , he doesn't work, I'm using the exemple library code but in output i only have "Error seesaw not found" I use an Arduino 2560 Mega

First - please insert code as text in forum code tags, not as picture.

And next - are you test your sensor with IDE "I2C scanner" example code?

Hi, @morgannnnnnnn
Welcome to the forum.

Can you please post a schematic of your project?
Please do not use Fritzy, a hand drawn image will be fine.
Include ALL power supplies, component names and pin labels.

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

Sorry I'm not use with the forum i don't know what is tags so this is the code :slight_smile:

#include "Adafruit_seesaw.h"

Adafruit_seesaw ss;

void setup() {
  Serial.begin(115200);

  Serial.println("seesaw Soil Sensor example!");
  
  if (!ss.begin(0x36)) {
    Serial.println("ERROR! seesaw not found");
    while(1) delay(1);
  } else {
    Serial.print("seesaw started! version: ");
    Serial.println(ss.getVersion(), HEX);
  }
}

void loop() {
  float tempC = ss.getTemp();
  uint16_t capread = ss.touchRead(0);

  Serial.print("Temperature: "); Serial.print(tempC); Serial.println("*C");
  Serial.print("Capacitive: "); Serial.println(capread);
  delay(100);
}

Yes i have try the I2C scanner code and he reply me "no device found" i have also try to print the output of endtransmission() and it is 222222222222222222...

Thank you for you reply

Hello sorry i'm doesn't speak perfectly english i don't know what you want but this is image of my set up. Thank you for you reply

is it clear for you ?

Use 5V.

I have also try with 5v doesn't change anything

Did you try the I2C scanner when the sensor was powered by 5V?

What I2C scanner did you use? I use this one by Nick Gammon. It has served me well. Note the 115200 baud rate.

// I2C scanner by Nick Gammon.  Thanks Nick.

#include <Wire.h>

void setup() {
  Serial.begin (115200); //*****  make sure serial monitor baud matches *****

  // Leonardo: wait for serial port to connect
  while (!Serial) 
    {
    }

  Serial.println ();
  Serial.println ("I2C scanner. Scanning ...");
  byte count = 0;
  
  Wire.begin();
  for (byte i = 1; i < 120; i++)
  {
    Wire.beginTransmission (i);
    if (Wire.endTransmission () == 0)
      {
      Serial.print ("Found address: ");
      Serial.print (i, DEC);
      Serial.print (" (0x");
      Serial.print (i, HEX);
      Serial.println (")");
      count++;
      delay (1);  // maybe unneeded?
      } // end of good response
  } // end of for loop
  Serial.println ("Done.");
  Serial.print ("Found ");
  Serial.print (count, DEC);
  Serial.println (" device(s).");
}  // end of setup

void loop() {}

With 4 wires there is not a lot to mess up.
Perhaps a bad wire - replace all 4.

Yes i use it with 5V and yes i used the same code of nick

I have already try this solution too..

And as i say before he told me "no device found"

Looks like it's a Bad Unit.

Hi,
Have you tried two 4K7 resistors on the I2C lines.

One resistor from SCL to 5V.
The other from SDA to 5V.

The sensor may not have those pullups fitted.

Tom... :smiley: :+1: :coffee: :australia:

adafruit_products_schem.png (1545×1065)

Hi,
They are only 10K, worth a try with 4K7 at this stage.

Tom... :smiley: :+1: :coffee: :australia:

Try switching the sda / clk wires in the arduino , run the scanner again !