/cabinet_fan

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Raspberry Pi project to control AC cooling fans for a media cabinet based on readings from a BME280.

To Run

There are sensible defaults, and they assume the steps/setting explained below under Hardware. Everything can be overridden in config.json. This file can be a sibling of main.py, or can be copied to ~/cabinet_fan.json. The latter instance will be preferred if it exists.

Dependencies

System:

$ sudo apt-get install python-smbus i2c-tools

Python:

Developed using Python 3.8.6.

See Pipfile or requirements.txt and install using your tool of choice.

Hardware

BME280

  • Instructions

  • Test your connection with i2cdetect -y 1

    You should see something like:

         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- 76 --
    

HD44780

Schematic

Schematic 0.0.1