This project is intended to automate climate control in the greenhouse for growing mushrooms.
- It uses few sensors for measurement:
- BME280 sensor for measure humidity
- 2 DS18B20 sensors for measure compost and air temperature
- CO2 sensor - МН-Z19B
System contains three relays that use PID for given setpoint support:
- Air temperature relay
- Humidity relay
- CO2 relay (inversed, because it controls ventilation that decreases CO2)
It was developed simple protocol, that allows to set and save setpoint values, coefficient (for PID relay controller). All this data is stored in non-volatile memory. Also it allows to control MHZ19B sensor (it allows to calibrate it and disable autocalibration)
- Sensors data is gathered by arduino (I used arduino nano), displayed on LCD 1602 display, and sent via Serial port
- Data sent by arduino is gathered by script on raspberry pi server and it is written to postgres database. After that it can be used for display, analyze, alerts and etc.
- The results should be something like that: