项目作者: Chouffy

项目描述 :
Standalone I2C driver for AHT20 sensor written in Python
高级语言: Python
项目地址: git://github.com/Chouffy/python_sensor_aht20.git
创建时间: 2021-02-01T06:24:08Z
项目社区:https://github.com/Chouffy/python_sensor_aht20

开源协议:The Unlicense

下载


AHT20 Temperature & Humidity for Python I2C

Standadone communication driver for the AHT20 Temperature & Humidity sensor, running on a Raspberry Pi on Python.

Pinout

The AHT20 sensor is connected to the Rasperry Pi via the following pins:

Pin # Pin Name Connection
1 3.3v Voltage in
3 GPIO2 I2C SDA
5 GPIO3 I2C SDL
9 GND Ground

The Raspberry Pi GPIO pinout map can be viewed here.

Pre-requistes

  • Raspberry Pi, but could run elsewhere
  • On the machine: python3-smbus installed
  • On Python: smbus2 installed

Notes

  • The I2C bus is 1 by default, as it’s the default one for the Raspberry Pi. Another bus can be specified with the BusNum variable when calling the module.

Authors

Sources