SprootS is a standalone automated low cost solution for horticulture. To keep costs low, it uses off the shelf sensors and irrigation components and is powered by the ESP32.
Currently, the web portal may only be accessed on a local area network for security but a telegram bot is avaliable for remote use of certain commands.
Use Visual Studio Code and the PlatformIO plugin to flash the firmware and upload the filesystem image(for webpage). The arduino core for esp32 is also required.
The following libraries are required.
DFRobot_VEML7700-master (MIT) (if required)
BME680 (GPL-3.0) (if required)
Adafruit BME280 Library (if required)
Adafruit BMP280 Library (if required)
Autoconnect (MIT) (if a captive wifi setup webpage is required)
(These are included in the web portal and automatically downloaded via CDN)
In the main.cpp
file, uncomment and enter in your network ssid and password. The other settings may be left unchanged. The config.h
file provides other settings such as pinout definitions and the sensors in use.
Fill in the BOTtoken
and CHAT_ID
parameters by creating a telegram bot using @BotFather and find out the chatid with @IDBot.
SprootS is designed for use with cheap off the shelf sensors to keep costs down. These three broad ranges of sensors are used.
- a light sensor to determine if the plant has recieved sufficient light
- a moisture/water level(WIP) sensor to check soil moisture or water level for hydroponics
- an environment sensor to provide additional data such as temperature, air pressure and humidity All of these sensors may be purchased on aliexpress.
BH1750 (from mouser, cheaper on aliexpress) VEML7700
BMP280(cheaper BME280 on aliexpress are usually BMP280, but it performs sufficiently well)
BME280 (Measures Humidity in adition to BMP280)
BME680 (more accurate and costly than the BME280)
Do note that calibration is required for different soil types
Capacitive Soil Moisture sensor(sample listing)
For automatic irrigation, dc water pumps may be used along with silicone/irrigation tubing. Solar panels may also aid in supplying energy when used permernantly outdoors.
The following setup uses a 3D printed enclosure along with the fireebeetle32 and a custom pcb for semi-outdoor use.
To lower costs and recycle, it is highly recommended to reuse 18650 cells from old laptop and devices(if you are capable of disassembling it safely). Do note that old batteries(even from brands such as samsung) may suffer from a significant voltage drop when under load from the water pump which could trigger the brownout detector and cause the esp32 to restart(causing the pump to pulse on and off). This was not an issue with brand new panasonic 18650 cells.
Future iterations to the PCB may include capacitors to fix this issue.
TBC