Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/components/drivers/special/sensors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tool for monitoring sensor activity at runtime.
sensors/nau7802.rst
sensors/qmi8658.rst
sensors/sht4x.rst
sensors/shtc3.rst
sensors/lsm6dso32.rst
sensors/lis2mdl.rst
sensors/l86xxx.rst
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,5 +555,6 @@ Implemented Drivers
- :doc:`nau7802`
- :doc:`qmi8658`
- :doc:`sht4x`
- :doc:`shtc3`
- :doc:`lsm6dso32`
- wtgahrs2
16 changes: 16 additions & 0 deletions Documentation/components/drivers/special/sensors/shtc3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
=============================
Sensirion SHTC3 Sensor Driver
=============================

This driver provides support for the Sensirion SHTC3 temperature and humidity sensor
using the uORB sensor framework.

It provides two uORB topics:
- ``SENSOR_TYPE_AMBIENT_TEMPERATURE``
- ``SENSOR_TYPE_RELATIVE_HUMIDITY``

Configuration
-------------

To enable the driver, select ``CONFIG_SENSORS_SHTC3=y`` in your board configuration.
You can configure the I2C frequency via ``CONFIG_SHTC3_I2C_FREQUENCY`` (default is 400kHz).
5 changes: 5 additions & 0 deletions drivers/sensors/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -494,5 +494,10 @@ if(CONFIG_SENSORS)
list(APPEND SRCS cxd5602pwbimu.c)
endif()

# SENSIRON SHTC3
if(CONFIG_SENSORS_SHTC3)
list(APPEND SRCS shtc3_uorb.c)
endif()

target_sources(drivers PRIVATE ${SRCS})
endif()
18 changes: 18 additions & 0 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,24 @@ config SHT3X_DEBUG

endif # SENSORS_SHT3X

config SENSORS_SHTC3
bool "Sensirion SHTC3 Sensor"
depends on I2C
---help---
Enable driver support for the Sensirion SHTC3
temperature and humidity sensor.

if SENSORS_SHTC3

config SHTC3_I2C_FREQUENCY
int "SHTC3 I2C Frequency"
default 400000

endif # SENSORS_SHTC3




config SENSORS_SHT4X
bool "Sensirion SHT4x temperature and humidity sensor"
default n
Expand Down
4 changes: 4 additions & 0 deletions drivers/sensors/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ ifeq ($(CONFIG_SENSORS_CXD5602PWBIMU),y)
CSRCS += cxd5602pwbimu.c
endif

ifeq ($(CONFIG_SENSORS_SHTC3),y)
CSRCS += shtc3_uorb.c
endif

# Include sensor driver build support

DEPPATH += --dep-path sensors
Expand Down
Loading
Loading