Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

STEMMA soil sensor - capacitive measure is maxed out
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

STEMMA soil sensor - capacitive measure is maxed out

by efeigenbaum on Tue Apr 28, 2020 4:48 pm

I am trying to use the STEMMA soil sensor and I am using the seesaw example for the soil sensor. I keep getting 56635 which I am guessing is the maximum possible value. Can you help me figure out what is wrong?

efeigenbaum
 
Posts: 61
Joined: Fri Feb 24, 2017 3:23 pm

Re: STEMMA soil sensor - capacitive measure is maxed out

by franklin97355 on Thu Apr 30, 2020 3:14 pm

What is the program running and what is the range?

franklin97355
 
Posts: 21583
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: STEMMA soil sensor - capacitive measure is maxed out

by efeigenbaum on Thu Apr 30, 2020 3:35 pm

Here is the code. It should be just reading the sensor but it doesn't seem to be working. I wonder if the device is defective?


Code: Select all | TOGGLE FULL SIZE
[code]
#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);
  } 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);
}
[/code]

efeigenbaum
 
Posts: 61
Joined: Fri Feb 24, 2017 3:23 pm

Please be positive and constructive with your questions and comments.