QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
OdorDecoder
 
Posts: 16
Joined: Sat Mar 19, 2016 11:32 pm

QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

Post by OdorDecoder »

When I use the QT PY ESP32 S2 board and connect it through a GROVE to STEMMA/QT 4-wire connector, and try the soil_sensor example as found on https://learn.adafruit.com/adafruit-ste ... duino-test the sensor is not found. The I2C scan test, as found on https://learn.adafruit.com/adafruit-qt- ... -scan-test for the QT PY2 ESP32 works just fine, finding the soil moisture meter at 0x36. I have 2 of these QT boards and 2 of these soil moisture meters, the results are the same when mixed and matched. I am aware of the "Wire1.setPins(SDA1, SCL1)" required line in setup, and I did get this to work in circuitpython. Here is my code:

Code: Select all

#include "Adafruit_seesaw.h"

Adafruit_seesaw ss;

void setup() {
  Serial.begin(115200);
  Wire1.setPins(SDA1, SCL1);
    // wait for serial monitor to open
  while(! Serial);
  Serial.println("seesaw Soil Sensor example!");
  
  while (!ss.begin(0x36)) 
    Serial.println("ERROR! seesaw not found");
  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);
}

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
OdorDecoder
 
Posts: 16
Joined: Sat Mar 19, 2016 11:32 pm

Re: QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

Post by OdorDecoder »

Here is a picture of my setup. I power it via USB-C (duh).
Image
Attachments
20220914_164855.jpg
20220914_164855.jpg (197.87 KiB) Viewed 121 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

Post by adafruit_support_mike »

I'm not sure the cable is fully seated in the sensor's connector. Make sure that connection is good and see if it has any effect.

User avatar
OdorDecoder
 
Posts: 16
Joined: Sat Mar 19, 2016 11:32 pm

Re: QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

Post by OdorDecoder »

It's fully seated, of course! I got it to work in CircuitPython like I said, It's a BANNED plug that you have to shave down. Have you tried this configuration? It doesn't work. I have 2 of each, AND I got it to work with other software. What more proof do you need?

User avatar
OdorDecoder
 
Posts: 16
Joined: Sat Mar 19, 2016 11:32 pm

Re: QT PY ESP32 S2 & seesaw not detecting soil moisture sensor 4026

Post by OdorDecoder »

HA! the word cr*p comes out as "banned" oh my lordy, goodness mercy!

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”