Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use SHTC3: Examples, Pinouts, and Specs

Image of SHTC3
Cirkit Designer LogoDesign with SHTC3 in Cirkit Designer

Introduction

The SHTC3 is a digital humidity and temperature sensor designed for high accuracy and low power consumption. It is equipped with an I2C interface, making it easy to integrate into a wide range of applications. The sensor is ideal for use in HVAC systems, weather monitoring stations, consumer electronics, and other environments where precise environmental measurements are required. Its compact size and energy efficiency make it particularly suitable for battery-powered devices.

Explore Projects Built with SHTC3

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Nano-Controlled LED Display with RTC and Humidity Sensing
Image of Alarm Clock: A project utilizing SHTC3 in a practical application
This circuit features a Nano 3.0 ATmega328P microcontroller connected to an LED dot display, a real-time clock (RTC DS3231), and a humidity and temperature sensor (SHT21). The microcontroller communicates with the RTC and SHT21 via I2C (using A4 and A5 as SDA and SCL lines, respectively), and it controls the LED display through SPI-like signals (using D10, D11, and D12 for DIN, CS, and CLK). The circuit is designed to display time and environmental data on the LED display, with all components sharing a common power supply and ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Controlled Weather Station with ESP32, DHT22, and SHTC3 Sensors
Image of ESP32-POE-ISO 2 AC and 2 Sensor: A project utilizing SHTC3 in a practical application
This circuit integrates an ESP32 microcontroller with a DHT22 temperature and humidity sensor, an Adafruit SHTC3 sensor, and a 2-channel relay module. The ESP32 reads environmental data from the sensors and can control external devices through the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-S3 Based Environmental Monitoring and Control System with Data Logging
Image of ESP32: A project utilizing SHTC3 in a practical application
This circuit features an ESP32-S3 microcontroller interfaced with various sensors and modules, including a DHT22 temperature and humidity sensor, an HC-SR04 ultrasonic sensor, an SGP41 VOC and NOx sensor, and an Adafruit INA260 current and power sensor. The ESP32-S3 also controls a DC motor via a relay and communicates with an SD card and an OLED display. An Arduino UNO is used to read inputs from a rotary encoder, and a step-down buck converter is used to regulate voltage from a 12V battery to power the components.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
Image of Bedside RGB and Lamp: A project utilizing SHTC3 in a practical application
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with SHTC3

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Alarm Clock: A project utilizing SHTC3 in a practical application
Arduino Nano-Controlled LED Display with RTC and Humidity Sensing
This circuit features a Nano 3.0 ATmega328P microcontroller connected to an LED dot display, a real-time clock (RTC DS3231), and a humidity and temperature sensor (SHT21). The microcontroller communicates with the RTC and SHT21 via I2C (using A4 and A5 as SDA and SCL lines, respectively), and it controls the LED display through SPI-like signals (using D10, D11, and D12 for DIN, CS, and CLK). The circuit is designed to display time and environmental data on the LED display, with all components sharing a common power supply and ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32-POE-ISO 2 AC and 2 Sensor: A project utilizing SHTC3 in a practical application
Wi-Fi Controlled Weather Station with ESP32, DHT22, and SHTC3 Sensors
This circuit integrates an ESP32 microcontroller with a DHT22 temperature and humidity sensor, an Adafruit SHTC3 sensor, and a 2-channel relay module. The ESP32 reads environmental data from the sensors and can control external devices through the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32: A project utilizing SHTC3 in a practical application
ESP32-S3 Based Environmental Monitoring and Control System with Data Logging
This circuit features an ESP32-S3 microcontroller interfaced with various sensors and modules, including a DHT22 temperature and humidity sensor, an HC-SR04 ultrasonic sensor, an SGP41 VOC and NOx sensor, and an Adafruit INA260 current and power sensor. The ESP32-S3 also controls a DC motor via a relay and communicates with an SD card and an OLED display. An Arduino UNO is used to read inputs from a rotary encoder, and a step-down buck converter is used to regulate voltage from a 12V battery to power the components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Bedside RGB and Lamp: A project utilizing SHTC3 in a practical application
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

  • Supply Voltage: 1.62V to 3.6V
  • Current Consumption:
    • Measurement mode: 2.4 µA (typical)
    • Idle mode: 0.3 µA (typical)
  • Humidity Measurement Range: 0% to 100% RH
  • Temperature Measurement Range: -40°C to 125°C
  • Accuracy:
    • Humidity: ±2% RH (typical)
    • Temperature: ±0.2°C (typical)
  • Communication Interface: I2C (up to 1 MHz)
  • Operating Temperature: -40°C to 125°C
  • Package: DFN-6 (2.5 mm x 2.5 mm x 0.9 mm)

Pin Configuration and Descriptions

The SHTC3 sensor has six pins, as described in the table below:

Pin Number Pin Name Description
1 VDD Power supply (1.62V to 3.6V)
2 GND Ground
3 SDA I2C data line
4 SCL I2C clock line
5 nRESET Optional reset pin (active low)
6 ADDR Address selection (connect to GND)

Usage Instructions

How to Use the SHTC3 in a Circuit

  1. Power Supply: Connect the VDD pin to a 1.62V to 3.6V power source and the GND pin to ground.
  2. I2C Interface: Connect the SDA and SCL pins to the corresponding I2C data and clock lines of your microcontroller. Use pull-up resistors (typically 4.7 kΩ) on both lines.
  3. Address Selection: The ADDR pin should be connected to GND to set the I2C address.
  4. Optional Reset: The nRESET pin can be used to reset the sensor. If unused, leave it unconnected.

Important Considerations

  • Ensure the power supply voltage is within the specified range to avoid damaging the sensor.
  • Place the sensor in a location where it can accurately measure ambient conditions without interference from heat sources or airflow.
  • Use decoupling capacitors (e.g., 0.1 µF) near the VDD pin to stabilize the power supply.

Example Code for Arduino UNO

Below is an example of how to interface the SHTC3 with an Arduino UNO using the I2C protocol:

#include <Wire.h>
#include <Adafruit_SHTC3.h>

// Create an instance of the SHTC3 sensor
Adafruit_SHTC3 shtc3;

void setup() {
  Serial.begin(9600); // Initialize serial communication
  while (!Serial) delay(10); // Wait for serial monitor to open

  Serial.println("SHTC3 Test");

  if (!shtc3.begin()) {
    Serial.println("Couldn't find SHTC3 sensor!");
    while (1) delay(10); // Halt if sensor initialization fails
  }
  Serial.println("SHTC3 sensor initialized.");
}

void loop() {
  sensors_event_t humidity, temp;
  
  // Perform a measurement
  if (shtc3.getEvent(&humidity, &temp)) {
    Serial.print("Temperature: ");
    Serial.print(temp.temperature);
    Serial.println(" °C");

    Serial.print("Humidity: ");
    Serial.print(humidity.relative_humidity);
    Serial.println(" %");
  } else {
    Serial.println("Failed to read data from SHTC3 sensor!");
  }

  delay(2000); // Wait 2 seconds before the next measurement
}

Notes:

  • Install the Adafruit SHTC3 library via the Arduino Library Manager before using the code.
  • Ensure the I2C pull-up resistors are properly connected to the SDA and SCL lines.

Troubleshooting and FAQs

Common Issues

  1. Sensor Not Detected:

    • Cause: Incorrect I2C wiring or address mismatch.
    • Solution: Verify the SDA and SCL connections and ensure the ADDR pin is connected to GND.
  2. Inaccurate Readings:

    • Cause: Sensor exposed to contaminants or placed near heat sources.
    • Solution: Clean the sensor with compressed air and relocate it to a better environment.
  3. Communication Errors:

    • Cause: Missing or incorrect pull-up resistors on I2C lines.
    • Solution: Add 4.7 kΩ pull-up resistors to SDA and SCL.

FAQs

  • Q: Can the SHTC3 operate at 5V?
    A: No, the maximum supply voltage is 3.6V. Use a voltage regulator if your system operates at 5V.

  • Q: How do I reset the sensor?
    A: Pull the nRESET pin low for at least 1 µs, or use the software reset command via I2C.

  • Q: What is the default I2C address of the SHTC3?
    A: The default 7-bit I2C address is 0x70.

By following this documentation, you can effectively integrate the SHTC3 sensor into your projects and troubleshoot common issues.