Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

vpaeder/attiny84_sht4x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sensirion SHT4x (SHT40, SHT41, SHT45) / attiny84 example

This is a short example for attiny84 showing how to measure temperature and relative humidity with the Sensirion SHT4x sensors series. It communicates on the I2C bus by bit banging. Control and conversion functions are provided.

The main loop wakes up the attiny84 every 8 seconds, requests a measurement from the sensor, and then sends the attiny back to sleep.

Pre-requisites

  • AVR GCC toolchain
  • avrdude
  • adequate programmer (Makefile is for USBasp)

Install

make & make flash

Notes

  • It may fit (not tested) in an attiny44 by using the MCU's I2C driver (see Universal Serial Interface in attiny datasheet)
  • The setup and main loop sections of main() function may be split to match Arduino's nomenclature

About

Example for Sensirion SHT4x (SHT40, SHT41, SHT45) with attiny84

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published