Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ludiazv/arduino-shtc3
A minimal arduino library for SHTC3 temperature & Humidity sensor
https://github.com/ludiazv/arduino-shtc3
arduino humidity humidity-sensor sensor shtc3 temperature temperature-sensor
Last synced: 11 days ago
JSON representation
A minimal arduino library for SHTC3 temperature & Humidity sensor
- Host: GitHub
- URL: https://github.com/ludiazv/arduino-shtc3
- Owner: ludiazv
- Created: 2019-03-28T18:09:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-26T22:55:46.000Z (about 4 years ago)
- Last Synced: 2024-11-05T13:18:34.225Z (about 2 months ago)
- Topics: arduino, humidity, humidity-sensor, sensor, shtc3, temperature, temperature-sensor
- Language: C++
- Size: 1.68 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# A minimial arduino library fro SHTC3 Temperature & Humidity sensor
A bare minimal arudino lib for this sensor for low power applications based on official [SHT libraries](https://github.com/Sensirion/arduino-sht).
If you find this library usefull and want to support open software consider to **donate**.
## Usage
The library is designed for low power applications that will poll the reading periodically. When the sensor is not reading
it is keep asleep consuming less than 1 uA.```c++
SHTC3 sensor(Wire);void setup() {
Serial.begin(9600)
Wire.begin();
sensor.begin();
}
void loop() {
s.sample();
Serial.print(F("[SHTC3] T:"));
Serial.print(s.readTempC());
Serial.print(F(" Cº / H: "));
Serial.print(s.readHumidity());
Serial.println(F(" %"));
delay(2000);
}```
## Technical notes
- The sensor is ___NOT__ 5V tolerant: If using 5V boards a 3.3V power source or 3.3V regulator need to be used. Most arduino boards have 3.3V power line that can be used to power the device. SCL & SDA require also logic level shifters are required as this pins are nor 5V tolerant.
- Pull-up resistors are typically needed on SCL & SDA lines. Resistor values will depend on frequency and bus configuration.
- Sensor supports up to 400kHz (fast I2C).## Compilation options:
if __ARDUINO_SHTC3_NOFLOAT__ is defined no float computation is done. Temperature and Humidity will return a 16bit integer. This optimization will reduce the code size more at expense of precision in the reading.
## Notes:
Library has been tested on a arduino pro mini 3.3V.## Change Log
- 0.0.1 First version
- 0.0.2 Bug correction
- 0.0.3 Fix wake & reset delay bug.