Smart vertical farming
By David Crookes. Posted
Farmers always need lots of land, right? Well, not necessarily. There is a practice called vertical farming which involves cultivating crops in stacked, tower-like layers. When using this method, the environment is carefully monitored and controlled, lending factory-style precision to the process of growing plants. It has the potential to revolutionise food production, but it’s also quite expensive.
Recognising the costs involved, Raspberry Pi enthusiast Tanay has produced his own version. In creating a smart vertical farming system powered by a Raspberry Pi 4 computer, he’s enabling plants to be monitored and precisely watered with minimal human intervention while taking into account numerous environmental factors to optimise their growth.
Advertisement
Christmas is coming – keep Santa on the right track with our Raspberry Pi gift guide!
“The inspiration came from the need to address the challenges in traditional farming and leverage technology for efficient crop management,” Tanay explains. “It’s a forward-thinking approach to agriculture and my project was born out of a passion for sustainable agriculture. The aim was to explore innovative solutions, driven by a desire to contribute to a greener future.”
Making sense
Although Tanay has not had first-hand experience of vertical farming, he says he has read lots about it. “It’s a fascinating concept,” he adds. His research meant he had a good idea of what was needed to create his own system. “Raspberry Pi was chosen for its versatility, affordability, and the vast community support it offers,” Tanay says. “It’s a robust choice for managing and controlling various components in a system like this.”

These components include ambient light, soil moisture, and water level depth detection sensors. “The project was planned by first identifying the key requirements, such as real-time monitoring, efficient water supply, secure communication, and a user-friendly interface,” Tanay continues. “Components were selected based on their compatibility and functionality within the system.”
The sensors gather data about the plants. This data is then processed by a peripheral control unit (in this case an Arduino Nano 33 IoT) and sent to the central unit (Raspberry Pi 4) via Bluetooth Low Energy (BLE) communication. “The central unit makes decisions on actions such as activating actuators to adjust environmental parameters,” Tanay says. “This continuous loop ensures optimal conditions for crop growth.”
Friendly farming
A thermoelectric Peltier refrigeration cooling system kit has also been used. “A humidity-to-water conversion, with the help of the Peltier module device working on the principle of condensation, ensures a continuous supply of water,” Tanay explains. It ensures plants are kept alive and are able to thrive but there’s also a user-friendly GUI for remote manual control.
“The software was crafted with modularity and user-friendliness in mind,” says Tanay, who used the IoT platform ThingSpeak. “ThingSpeak is useful for visualising data from sensors in real-time which provides valuable insights to farmers,” he continues. “A user-friendly interface makes it accessible to those without extensive technical knowledge and providing a fault tolerance to the system.”
Tanay hopes the project will show that vertical farming doesn’t have to be expensive. “The project’s cost-effectiveness is a standout feature,” he says. It’s also scalable. “The project is aimed at small and large-scale farmers,” Tanay adds. “The modularity and scalability design principles suggest it’s adaptable to various farm sizes, making it accessible to a broad audience.”
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Christmas Gift Guide in Raspberry Pi Official Magazine 160
There’s a ton of great stuff in issue 160, including the incredible motion scanner, inspired by the film Aliens. It’s beautiful, it uses Raspberry Pi technology and makes a satisfying ping sound, and the best thing about it is that it actually works, thanks to a DreamHAT+ radar board. Yes, you too can join the […]
Read more →
Win a Raspberry Pi 500+ and Raspberry Pi Monitor!
Fancy getting the most powerful Raspberry Pi desktop setup? Raspberry Pi 500+ and Raspberry Pi monitor pair perfectly together for a portable – and fixed – desktop computer, powered by Raspberry Pi. We have a set to give away, and you can enter below. A Raspberry Pi 500+ & Raspberry Pi Monitor
Read more →
All right all right!! Artificial Intelligence, Hollywood style
When we get AI right, odds on it’ll be thanks to small firms, motivated individuals, and Raspberry Pi
Read more →
Sign up to the newsletter
Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.