How to Construct an Automated Black Soldier Fly Larvae Bioreactor with Active Ammonia Scrubbing

Introduction

Rapid urbanization and population growth have led to increased generation of organic waste from households, markets, schools, and food processing facilities. Improper disposal of biodegradable waste contributes to greenhouse gas emissions, unpleasant odors, pest infestations, and environmental pollution.

Black Soldier Fly Larvae (BSFL) offer an innovative solution by converting organic waste into valuable products such as high-protein animal feed and nutrient-rich frass fertilizer.

However, conventional BSFL systems can produce unpleasant odors and harmful gases, especially ammonia, when waste is overfed or poorly managed.

This project investigates the design of an automated BSFL bioreactor equipped with an active ammonia scrubbing system that detects elevated ammonia levels and automatically activates an exhaust fan connected to an activated carbon filter.

https://images.openai.com/static-rsc-4/WS-Ippyc3CBaPD6YeF8wLc_NK8SIJnKn--JWD7t1wWKtHaNyrJOwvQkStKZoJCdN00B8ZS1D9JPwTg6VQxHcTF29eKJSFUaw6eIABZ0-UJs6cQq9zcRIvbTJNWJy2J_M9nfmLScQ7CrW35_C-9OE_3bQhVqUNFIVw7SBkg0_73ARpx5duB0fk-MKVxN2abq_?purpose=fullsize
https://images.openai.com/static-rsc-4/PI6XnYhwTVmzfLqmcN3TStuLfKMblIK9sEHueBDTlYJHS_PyMsi0m-kpfofu9Qe2hX512LSsN1G6PyMUyxTvURLKUQHaS6WyF-VuzecWRgY9eShPMZ1lyTXOZA5NLYjeR_EtO-UmKOCfKwPYx_DkP7xBlEaV6GYY08NiiamngsIJ5MjpENi72gLk1SFLU3Dc?purpose=fullsize
https://images.openai.com/static-rsc-4/N9543fy7GLc_RgGv-a7G_j666IDRoRrqIMjOXqpSSFfx51xc1QBgl-lBm9ENOwJZFGMluIMN_WKojhxzhEHleIKvy5IeNonVpEWRpkMNlUkHphlKq9RerLyU4JXYcmjidl47lwDHYIZXHXDuutJSa67onFJo4WQkfAVGr02gZWAvsQurhDnVy23UfxgRFY6K?purpose=fullsize

4


Statement of the Problem

Traditional organic waste disposal methods, including open dumping and landfilling, create environmental challenges such as:

  • Methane emissions
  • Bad odors
  • Attraction of pests
  • Soil and water contamination

Although BSFL technology effectively reduces organic waste volume, excessive ammonia production can:

  • Lower larval growth rates
  • Create unpleasant working conditions
  • Reduce community acceptance
  • Indicate poor bioreactor performance

There is a need for an intelligent BSFL system that automatically monitors and controls ammonia levels.


Objectives

General Objective

To design and construct an automated Black Soldier Fly Larvae bioreactor with active ammonia scrubbing for efficient organic waste processing.

Specific Objectives

  • To construct a BSFL bioreactor using locally available materials.
  • To integrate ammonia gas sensors for real-time monitoring.
  • To automate ventilation using a 5V exhaust fan.
  • To reduce ammonia concentrations using an activated carbon filter.
  • To evaluate waste reduction efficiency and larval growth performance.

How the System Works

Organic waste is added to the bioreactor, where BSFL consume and decompose it.

An ammonia gas sensor continuously monitors air quality inside the chamber.

When ammonia concentrations exceed a predefined threshold, a microcontroller automatically activates a 5V exhaust fan.

The fan pulls contaminated air through an activated carbon filter, which adsorbs ammonia and reduces odor emissions.

Once gas levels return to acceptable values, the fan switches off automatically.

System Flow Diagram

Organic Waste + BSFL

Bioreactor Chamber

Ammonia Gas Sensor

Microcontroller

5V Exhaust Fan ON/OFF

Activated Carbon Filter

Clean Air Output
https://images.openai.com/static-rsc-4/MJL9o-aIsMrM_YyxHnWcXdh3w7OIFOY4k6-oHospp45srq9b0kTwgUCYCiqOkiyqqHp-Qli926G4-T6GQtM6kAwyz7Chj3ZGgJEbACipf9odO8qxaP3YC119qhDCLpPOYXcgnM4eEZeGWYJuXARsJ5BBc30zuoceEKQMl-xvDX5YffCQu2Xj2QZzbDOVGXDX?purpose=fullsize
https://images.openai.com/static-rsc-4/lJ9XmuRi8ItfB1TXf8a9InImknNZu5jJVWmrSGANPKf1h2YjnbbW54NBzSXhGlcULB_bxDRi8hDA8YY1WDlYKS-4LMiHe8CbxamRdLWkHO0Vbk0n0bKwhr5PkP3NVL8JZSAuuL_aHzIo_vMmS0VQmH4tS67S-5xLFQYf5JmQf4yDYqptv-z31IstJtH74Fnn?purpose=fullsize
https://images.openai.com/static-rsc-4/qd0809vfBOyr2A8AiDR3mn4FtzZ8RFAelk4wwlVbv9vi3g67p5y7vKXlm3hY6br7XrvKbekMZv0UKTv12nuOYRd-3JkzWVlHaKjFpr5amqAkJA_cQE9L4_HpY8-9vkl1rins26mM1KwHoXQPAYnsHkWjwKlEesDJ8485_9tVIRBMfDlO_nU9wq7S7NmonJp3?purpose=fullsize

4


Materials and Equipment

ComponentQuantity
Plastic bioreactor container (50–100 L)1
Black Soldier Fly larvae500–1,000
Organic wasteAs required
Ammonia gas sensor (MQ-137 or equivalent)1
Microcontroller (Arduino Uno or ESP32)1
5V exhaust fan1
Activated carbon filter1
Relay module or transistor switch1
Temperature and humidity sensor1
Power supply or battery pack1
Ventilation tubingAs required
Mesh screen1

Bioreactor Design

The bioreactor should include:

  • Waste feeding chamber
  • Larvae processing zone
  • Leachate collection area
  • Gas monitoring compartment
  • Ventilation outlet
  • Self-harvesting ramp for mature larvae

Ensure adequate drainage and airflow while preventing pest entry.

Bioreactor Layout

 ┌─────────────────────────┐
│ Organic Waste Input │
├─────────────────────────┤
│ BSFL Processing Zone │
│ │
│ Gas Sensor │
│ │
├─────────────────────────┤
│ Leachate Collection │
└─────────────────────────┘


Exhaust Fan


Activated Carbon Filter


Clean Air
https://images.openai.com/static-rsc-4/KIPWp-9PjU4vsVyvOTJGQrOBVA_gpG4aogQ5-Abzrln8-QwoncVs24cKGSfc0PIN0gbDhWcssSoE-ncKHEKPqq4tEcfqC4AZ913LSyho38GzKSfzAzIlM4bgj16GDbjB_bhoJjg_sw6tSeLERzDj_dYz_1elG4V2yhQnJ9LiarKIXCIQZQxpyw2gq9mq4UGB?purpose=fullsize
https://images.openai.com/static-rsc-4/GvKB9pA5LsQLd2gyZg6MD2V6hUqe4P72DJtkSMdb6pRLqqf48FjYzff3yuyIWoSZXntW5o_yqOupVSfIcxK8ajOqMDERqFnJeoJW8CxZhFHjgV_DSVY9FzipD1o9HI0obUkL7j1DYfu3HWTcZS9AXQWEpGwABYqmP2tvexeAFTsQJwB4Dnv6Ga2Bw_qchUT_?purpose=fullsize
https://images.openai.com/static-rsc-4/mq4plGQnW0ByCuHQspFhHbqsXf2PtnDrqvGfHp9K-ln8SatOfKFSzCtB1nzDiCA3ucYYZTZscjuT01s04oZFGsynz1zsERMaj7WCSHLYKQXnKJhF5M85LozZlHkCInQMerLvNvCMEC8h3aHo9aM97UqOBZIfaMxFK4A2zv1qfHcRI0jPXLuiWAoHDo3kZM6M?purpose=fullsize

4


Construction Procedure

Step 1: Prepare the Bioreactor Container

Select a plastic container with a secure lid.

Drill ventilation openings and install mesh screens to prevent pest entry.

Step 2: Install the Self-Harvesting Ramp

Create an inclined ramp that allows mature larvae to migrate into a collection container.

Step 3: Install the Gas Monitoring System

Mount the ammonia sensor near the top of the chamber where gases accumulate.

Connect the sensor to the microcontroller.

Step 4: Install the Ventilation System

Attach the 5V exhaust fan to an outlet port.

Connect the outlet to an activated carbon filter using flexible tubing.

Step 5: Program the Controller

Configure the microcontroller to:

  • Continuously monitor ammonia concentration
  • Activate the fan above a threshold value
  • Deactivate the fan when levels normalize

Step 6: Introduce BSFL and Organic Waste

Add larvae and feedstock to the chamber.

Begin monitoring system performance.


Experimental Procedure

  1. Record the initial weight of organic waste.
  2. Add a fixed number of larvae.
  3. Monitor ammonia levels every hour.
  4. Record fan activation frequency.
  5. Measure internal temperature and humidity.
  6. Weigh residual waste after processing.
  7. Measure harvested larvae biomass.

Data Collection

Gas Monitoring Table

TimeAmmonia Level (ppm)Fan StatusTemperature (°C)Humidity (%)
08:00
12:00
16:00

Waste Reduction Table

DayInitial Waste (kg)Remaining Waste (kg)Waste Reduction (%)
1
3
5

Expected Results

The system is expected to:

  • Reduce organic waste volume by 50–80%
  • Lower ammonia emissions
  • Eliminate unpleasant odors
  • Improve larval growth rates
  • Produce high-quality frass fertilizer

Expected performance indicators:

ParameterTarget Value
Waste reduction50–80%
Ammonia concentration<25 ppm
Fan response time<10 seconds
Larval survival rate>90%
https://images.openai.com/static-rsc-4/KYlH3T02fiR3nMr5mntXvmvLPM9MqgKzqX7rHbuFRV9zcLKuy4bHIXHG_83p-uY6OxbIB0jy77stdsMZgaw114AfW70HPe6LOUk903eE92a3kj3-nYniXdh6OSKBJ6Q-T-xGaDArXn9R5H598nQ5wHToAepw1Ya5eQa0M6Z-VG9DGN7ha87DZQviMvXerLgn?purpose=fullsize
https://images.openai.com/static-rsc-4/q8lqLU8X5K3HPlq71jAPgadP--ogqYb65G5XsWSjP5G0zKosdVlSuFeDWqNB99l7ChPU3RbwWFdMO4oWk_CIKFqXUP6jJT213QBvYr3c11-x9NjVm7dt8wvyYxxeYqAmitgG0Rjz9LLDb83nFDailvjq_usUxTYtvFv1R6ux8imjq3prkjjlmYDbhelxKFpY?purpose=fullsize
https://images.openai.com/static-rsc-4/CdE1MJZxERRA4QatPnLLeJ_4t8sjokGqzFI5naE30WgVdAMV79-5PTGiovjnjzzcHNDR3X4mC0SyIYvkcatNSCt4bnHP6FTjs8lbB50QdDDthIc72DXJcSE234OtCWXkD8XrzJkzb4qHLeljqQ4e7kPodWK3Rg505rUe9gF5ya1YBss84DWNORwRS5KjF0eG?purpose=fullsize

4


Advantages of the System

  • Reduces landfill waste
  • Produces valuable animal feed
  • Minimizes odors automatically
  • Improves environmental hygiene
  • Operates with low energy consumption
  • Supports circular economy practices

Limitations

  • Sensors require calibration
  • Activated carbon filters need replacement
  • BSFL performance depends on feedstock quality
  • Extreme temperatures may affect larval growth

Conclusion

The automated BSFL bioreactor demonstrates how biological waste conversion can be combined with smart environmental monitoring to create an efficient and sustainable waste management system.

By integrating ammonia detection, automated ventilation, and activated carbon scrubbing, the system improves odor control, enhances larval productivity, and increases community acceptance of BSFL technology.

  • mbeva

    Dominic Mbeva is a science teacher, experienced researcher, innovator, and creative technologist with expertise in STEM education, digital media, and scientific research. As a Kenya Science and Engineering Fair (KSEF) advisor and projects manager, he mentors young scientists, guiding them in developing award-winning innovations. He is also an IC Technorat, leading advancements in science and technology. Beyond education, Dominic is a skilled photographer and video editor, using visual storytelling to make science more engaging. His philosophy, “If you take care of minutes, hours will take care of themselves,” reflects his belief in consistent effort, strategic thinking, and innovation to drive success in both research and creativity.

    Related Posts

    How to Design a Thermo-Electric Stove Charger Using Seebeck Generator Modules and Waste Cooking Heat

    Introduction Access to reliable electricity remains a challenge for many households that rely on charcoal and firewood stoves for daily cooking. Mobile phones have become essential tools for communication, mobile…

    Read more

    How to Construct a Low-Cost Zeer Pot Evaporative Cooler and Track Tomato Spoilage Metrics

    Abstract The SmartZeer project investigates the effectiveness of a low-cost evaporative cooling system in extending the shelf life of tomatoes and leafy vegetables without electricity. The system consists of two…

    Read more

    Leave a Reply

    Your email address will not be published. Required fields are marked *