Skip to content

QuanlingZhao/RPiSensorLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RPiSensorLogger

Repo for BME280/DHT22 sensors on RaspbeeyPi 4/400

Requirements

Supported Sensors:

Dependencies:

  • libgpiod2
  • RPi.bme280
  • adafruit-circuitpython-dht

You can install dependencies by run setup.hs on RPis.

Sensor RaspberryPi GPIO Connection

BME280

  • SCL -> I2C SCL
  • SDA -> I2C SDA

DHT22

  • DATA -> GPIO4

Both sensors run through 3.3v. Additionally, DHT22 is connected with a 2K resistor (10K recommended).

Usage

Start logging with command:

  • python3 sensor.py [fequency]

where [fequency] is the time between each measurments.

Log Format

Onec the logging starts, you can find a SensorLog.csv Under the same directory.
Columns from left to right are:
SystemTimestamp---BME280_Temperature---DHT22_Temperature---DHT22_Humidity---BME280_Pressure

About

Repo for BME280/DHT22 sensors on RaspbeeyPi 4/400

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published