Adafruit Industries STEMMA I2C Manual

Capacitive moisture sensor

Advertisement

Quick Links

Adafruit STEMMA Soil Sensor - I2C
Capacitive Moisture Sensor
Created by lady ada
https://learn.adafruit.com/adafruit-stemma-soil-sensor-i2c-capacitive-moisture-sensor
Last updated on 2023-08-29 03:55:33 PM EDT
©Adafruit Industries
Page 1 of 19

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STEMMA I2C and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Adafruit Industries STEMMA I2C

  • Page 1 Adafruit STEMMA Soil Sensor - I2C Capacitive Moisture Sensor Created by lady ada https://learn.adafruit.com/adafruit-stemma-soil-sensor-i2c-capacitive-moisture-sensor Last updated on 2023-08-29 03:55:33 PM EDT ©Adafruit Industries Page 1 of 19...
  • Page 2: Table Of Contents

    CircuitPython Installation of seesaw Library • Python Installation of seesaw Library • CircuitPython & Python Usage WipperSnapper Test • What is WipperSnapper • Wiring • Usage Downloads • Firmware & Files • Schematic & Fabrication Print ©Adafruit Industries Page 2 of 19...
  • Page 3: Overview

    Also, resistive measurements don't always work in loose soil. This design is superior with a capacitive measurement. Capacitive measurements use only one probe, don't have any exposed metal, and don't introduce any DC currents ©Adafruit Industries Page 3 of 19...
  • Page 4 I2C interface. Connect a 4-pin JST-PH cable (we have a few stocked) to your microcontroller or single board computer to 3-5V power, Ground, I2C SDA and I2C SCL and then run our Arduino or CircuitPython code to read the temperature and capacitive measurement. No soldering required! ©Adafruit Industries Page 4 of 19...
  • Page 5: Pinouts

    This cable will let you turn a JST PH 4-pin cable port into 4 individual wires with high-quality 0.1" female sockets on the end. We're carrying these to match up with any of... https://www.adafruit.com/product/3950 ©Adafruit Industries Page 5 of 19...
  • Page 6: Arduino Test

    Connect Vin Red Wire to the power supply, 3-5V is fine. Use the same voltage that the microcontroller logic is based off of. For most Arduino's, that is 5V. If you have 3.3V logic, use 3V ©Adafruit Industries Page 6 of 19...
  • Page 7: Install Adafruit_Seesaw Library

    It is available from the Arduino library manager so we recommend using that. From the IDE open up the library manager... Search for Adafruit seesaw, and click Install Now from within the IDE, open up the Adafruit seesaw Soil Sensor Example sketch: ©Adafruit Industries Page 7 of 19...
  • Page 8: Python & Circuitpython Test

    CircuitPython Microcontroller Wiring First wire up the soil sensor to your board exactly as shown on the previous pages for Arduino. Here's an example of wiring a Feather M0 to the sensor with I2C: ©Adafruit Industries Page 8 of 19...
  • Page 9: Python Computer Wiring

    Pi SDA to sensor SDA CircuitPython Installation of seesaw Library You'll need to install the Adafruit CircuitPython seesaw () library on your CircuitPython board. First make sure you are running the latest version of Adafruit CircuitPython () for your board. ©Adafruit Industries Page 9 of 19...
  • Page 10: Python Installation Of Seesaw Library

    CircuitPython on Python 2.x, it isn't supported! CircuitPython & Python Usage This example sketch shows connecting to the sensor and reading temperature and moisture/capacitive measurement # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board from adafruit_seesaw.seesaw import Seesaw...
  • Page 11: Wippersnapper Test

    Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account. From there, you can add components to your board such as buttons, switches, potentiometers, sensors, and more! Components are dynamically added to hardware, ©Adafruit Industries Page 11 of 19...
  • Page 12: Wiring

    Board GND to sensor GND (black wire on STEMMA QT) Board SCL to sensor SCL (yellow wire on STEMMA QT) Board SDA to sensor SDA (blue wire on STEMMA QT) Usage Connect your board to Adafruit IO Wippersnapper and navigate to the WipperSnapper board list (). ©Adafruit Industries Page 12 of 19...
  • Page 13 If the firmware version is red with an "X" -  update to the latest WipperSnapper firmware () on your board before continuing. Next, make sure the sensor is plugged into your board and click the I2C Scan button. ©Adafruit Industries Page 13 of 19...
  • Page 14 Then, reset the board and let it re-connect to Adafruit IO WipperSnapper. With the sensor detected in an I2C scan, you're ready to add the sensor to your board. Click the New Component button or the + button to bring up the component picker. ©Adafruit Industries Page 14 of 19...
  • Page 15 On the component configuration page, the soil sensor's address should be listed along with the sensor's settings. ©Adafruit Industries Page 15 of 19...
  • Page 16 For this example, set the Send Every interval for each sensor to "Every 30 seconds". Your device interface should now show the sensor components you created. After the interval you configured elapses, WipperSnapper will automatically read values from the sensor(s) and send them to Adafruit IO. ©Adafruit Industries Page 16 of 19...
  • Page 17 The soil sensor has two sensors. The capacitive one has one feed and the temperature sensor has two. This picture shows the Celsius feed, but if you click on the graph icon for the different sensors, you'll see their feed history. ©Adafruit Industries Page 17 of 19...
  • Page 18: Downloads

    Adafruit IO - upgrade your account to Adafruit IO Plus (). Downloads Firmware & Files • Adafruit seesaw firmware () • CircuitPython seesaw library () • Arduino seesaw library () • CAD files in GitHub () • 3D Models on GitHub () ©Adafruit Industries Page 18 of 19...
  • Page 19: Schematic & Fabrication Print

    This is only needed if you are not using the Arduino or CircuitPython library. the seesaw guide for general information on reading seesaw registers. () STEMMA Soil Sensor's reading is the capacitive measurement on channel 0. Base register = 0x0F and Function Register = 0x10. ©Adafruit Industries Page 19 of 19...

Table of Contents