Raspberry Pi–Controlled Aquaponics System: Build Guide & Code
Aquaponics /ˈækwəˈpɒnɨks /, is a food production system that combines conventional aquaculture (raising aquatic animals such as snails, fish, crayfish or prawns in tanks) with hydroponics (cultivating plants in water) in a symbiotic environment. In normal aquaculture, excretions from the animals being raised can accumulate in the water, increasing toxicity. In an aquaponic system, water from an aquaculture system is fed to a hydroponic system where the by‑products are broken down by nitrogen‑fixing bacteria into nitrates and nitrites, which are utilized by the plants as nutrients. The water is then recirculated back to the aquaculture system. Wikipedia
This build employs the IBC method of aquaponics, augmented with a Raspberry Pi to manage a pump, a solenoid drain, and temperature probes for water and air. Python scripts handle relay logic and timing, while data is logged every minute and streamed to plot.ly for real‑time visualization. Future updates will add water‑level and pH sensors for finer control.
All scripts are open‑source on GitHub; feel free to adapt them for your own system. Thanks to Chris at plot.ly for streaming support, and to the detailed instructions on IBCofAquaponics.com.
Step 1: Materials
Aquaponics:
- IBC Shipping Container – prepared following IBCoAquaponics instructions
Supervisory Control and Data Acquisition System:
- Raspberry Pi (Adafruit model)
- SainSmart 8‑Channel Relay Module (Amazon)
- Brass Liquid Solenoid Valve (Adafruit)
- DS18b20 Waterproof Temperature Sensors (Adafruit)
- Long‑range Wi‑Fi Adapter (Amazon)
Shed:
- 4×4 lumber, 2×4 lumber, 2×6 lumber, Cedar fence planks
For more detail: Raspberry Pi Controlled Aquaponics
Manufacturing process
- Build a DIY Infrared Motion Sensor for Raspberry Pi – Step‑by‑Step Guide
- Build a Headless Raspberry Pi 2 Water Alarm with Adafruit T‑Cobbler Plus
- SMS‑Controlled Smart AC Power Switch with Raspberry Pi & Hologram
- Build a Bluetooth‑Controlled Raspberry Pi Robot with Audio Feedback
- Gesture‑Controlled Robot Powered by Raspberry Pi
- Build a Wi‑Fi‑Controlled Raspberry Pi Robot with Python – Step‑by‑Step Guide
- Al₂O₃ and SiO₂ Nanoparticles with Ultrasound Significantly Reduce Water Supercooling
- Control LEDs with Alexa via Raspberry Pi – Easy Step‑by‑Step Guide
- Real-Time Water Level Monitoring & Alert System with Bolt IoT
- Real‑Time Water Quality Monitoring System with Arduino & GPRS/GPS