Interact with the Environment using Temperature, Humidity, Soil Moisture Sensors & relays to aid in Hydroponics.
- Raspberry Pi - ARM single-board Computer (tested using a Raspberry Pi Zero WH)
- MCP3008 - Microchip to convert Analog to Digital Signal
- DHT22 - Digital relative Humidity and Temperature Sensor
- Soil Moisture Sensor - Analog Capacitive Soil Moisture Sensor
- Relay - 4 or 8 Channel Relay (any channel size is supported)
I sourced all the components for this project from Amazon.
- Download Raspbian from raspberrypi.org - the lite distribution is recommended.
- Install Raspbian on the SD card - you can use a tool like Rufus on Windows or Etcher on Mac OS to create the image and write it to the SD Card.
- Boot and SSH to the Raspberry Pi - If you are on Windows PuTTY is an SSH Client which you can use. On Mac OS SSH using the terminal
ssh pi@192.168.0.1
Once you have an open SSH session with the Raspberry Pi we can start getting a basic configuration in place
- Make sure your Raspberry Pi is up-to-date
sudo apt-get update && sudo apt-get upgrade
- Install pip for Python 3
sudo apt-get install python3-pip
- Enable SPI
sudo raspi-config
Select option 5 - Interfacing Options - then select SPI and confirm you wish to enable it.
- Adafruit - libraries for interfacing with the MCP3008 & SPI
- dash - Analytical Web Apps for Python. No JavaScript Required
- pandas - Flexible and powerful data analysis / manipulation library for Python
- pigpio - Libraries for interfacing with the GPIO pins and DHT22 sensor
- PyMySQL - Pure Python MySQL Client
- jvdspeare
This project is licensed under the MIT License - see the LICENSE.md file for details