Anaerobic Algae Digestor for Biogas Production

=Goal=
The goal of this project is to construct a four-stage, rumen-derived anaerobic digester for research in optimizing parameters for biogas production from algae. 
=Problem Definition=
==Background==
Microalgae are an increasingly attractive replacement for current fossil fuel use due to its high growth rate and ability to grow in conditions that do not compete with terrestrial crops. Anaerobic digestion consists of four stages and results in products of carbon dioxide and methane, or biogas. Each of these steps completes an important task and results in specific byproducts, as shown below. 
 Hydrolysis: the biomass (algae) is made up of polymers that need to be broken down into the corresponding monomers before it can be digested further. 
 Acidogenesis: the monomers from hydrolysis are broken down by acidogenic (fermentative) bacteria. The byproducts from this step include volatile fatty acids, ammonia, carbon dioxide, and hydrogen sulfide. 
 Acetogenesis: molecules from acidogenesis are broken down by acetogens to acetic acid, carbon dioxide, and hydrogen. 
 Methanogenesis: in the last step, methanogens convert the by-products from the three other stages to methane, carbon dioxide, and water. 
In ruminants, the esophagus transports feedstocks to the reticulo-rumen, which acts as a fermentation chamber that employs anaerobic digestion to breakdown feedstock. In this chamber, the plant matter is digested into VFAs, acetic acid, lactate, carbon dioxide, methane, and hydrogen. The bacteria in this chamber survive under anaerobic conditions. Additionally, these bacteria hydrolyze the cell walls of the plant matter better than bacteria found in other stomach types. Because of this, we hope to use rumen microbes to help increase the rate and production of our system. Anaerobic digestion of microalgae could reduce the need for the drying stage associated with other bioenergy methods. Production of biogas from anaerobic digestion remains unfeasible for large scale production due to production below theoretical yields. Currently, most lab-scale anaerobic digesters used in research use a two-phase approach. Using ruminant bacteria and a four-stage approach, we hope to help solve this problem. 
==Deliverables==
 Users will be able to inoculate the system via an inoculation port in the top cap of each chamber 
 Users will be able to monitor O2, CO2, and CH4 gas concentrations in each chamber via a touchscreen user interface
 Users will be able to monitor pH, temperature, electric conductivity, mixing time, pump flow rate, water level, and pressure using this system. 
 Using water level output and individual gas concentrations, users will be able to calculate total gas produced in the system 
 The system will be retrofitted to the photobioreactor designed by a previous capstone team 
 The chambers will be easy to disassemble for cleaning 
 By the end of the semester, we will have produced biogas 
==Specifications==
 Functional: 
 Each chamber will have a one gallon working volume 
 The chambers will be easy to disassemble and clean 
 User Interface: 
 Operator shall be able to view temperature, pH, electrical conductivity, pump flow rate, water level, and mixing time using a touchscreen device powered by Raspberry Pi. 
 Mixing, temperature and pump flow rate will be controlled automatically by the system based on user inputs, 
 Operator will be able to view oxygen, carbon dioxide, and methane gas composition. 
 Users will be able to view data taken by the sensors on two minute increments. 
 Mechanical: 
 Digester will be airtight and withstand pressure produced from anaerobic digestion. 
 The main section of the digester will be transparent for viewing of the project. 
 An inoculation port will be included for each chamber for additions of microbes and sampling. 
 Electrical: 
 A PCB will be designed and used to house the circuit powering the system. 
 The circuit will use a 5 volt power source and not draw more than 10 amps of current. 
 Software: 
 We will be using a raspberry pi and arduino to control the system. 
 It will be coded in Python. 
 It should be able to export data to an Excel sheet and generate graphs using the data. 
 The user interface will be made using Python. 
 Environmental: 
 The chambers will withstand internal, water temperatures from 25 to 60 degrees Celsius. 
 The chambers will be free from oxygen. 
 Production: 
 We will produce 50% methane concentration biogas by the end of the semester. 
 The cost will not exceed $4000. 
=Project Learning=
Anaerobic digestion is the breakdown of materials in the absence of oxygen. As previously mentioned, there are four steps, hydrolysis, acidogenesis, acetogenesis, and methanogenesis. Each process is carried out by different microbes that prefer to live in different conditions. The one- and two-phase digesters that are often used in industry lump together stages without optimizing for parameters and pH. From a literature review, we chose the following parameters as our optimal starting values. Based on the source used, these parameters vary, so it is important to test this system with different values to confirm optimization. The residence time for individual chambers will also need to be confirmed with further testing.
 
=Design Considerations=
This is the first sketch that we made of our system. The large picture shows the process diagram for anaerobic digestion and our plans to include mixing, pumping, and heating mechanisms. The left bottom diagram shows a thought to position the chambers around the photobioreactor constructed by a previous capstone team. This design was scrapped early in the first semester since another capstone team was also required to retrofit to the bioreactor. The bottom right sketch shows the chambers arranged with one in each corner, which is the design we ended up pursuing. 
 Mixing 
Mixing is an important feature in anaerobic digestion. It ensures adequate heat distribution throughout the chambers and prevents particles from settling to the bottom. We considered using both an impeller mixer driven by a stepper motor and a magnetic stir plate for our system. The impeller mixer would allow us to cover the entirety of the surface area of the chamber, eliminating dead spots in the mixing. However, it was difficult to find a seal that would prevent air entering or water exiting the system. We were originally concerned that the magnetic stir plate would not have enough force through the PVC cap to provide suitable mixing, however after testing, we confirmed that the magnetic stir plates would work for our purposes. 
 Heating 
At the beginning of the semester, we considered using a band heater to heat our system. However, due to the heat rating of PVC chambers, this had a high probability of melting our chambers. Additionally, it would be more difficult for heat to transfer through the PVC to the system. We decided to use an immersion heater to heat our system so that our liquid would be directly impacted. The heater that we chose is 500 watts which has the potential to kill microbes and microalgae if heated too quickly. We will have to control this by programming the heater to warm slowly to lower levels. 
 Covered Sensors 
Six out of the eight sensors required for this project, carbon dioxide, oxygen, methane, water level, temperature, and pressure, need to sit at the top of the chamber due either to the length of the sensor or the need to read data from surrounding gases. We had planned to 3D print a cover that would screw onto the top of the lid of our chambers. However, after our Engineering Release presentation, decided to laser cut an acrylic disk which sits on top of the MIPT adapter. This disk has holes that fit the dimensions of the sensors, allowing them to sit on top. 
=Final Design=
 Four Chamber Anaerobic Digester </br>
Each chamber houses one stage of anaerobic digestion. We envisioned that users would be able to set a target pH for each chamber and once that pH was reached, a peristaltic pump would begin to move liquid to the next chamber. Additionally, the user could set a residence time per chamber that would indicate at what time the pumps would begin to move liquid. 
 One Chamber Design </br>
Each chamber is 6” in diameter and 12” in height with 8 sensors. The sensors in each chamber are carbon dioxide, methane, oxygen, water level, temperature, pressure, pH, and electrical conductivity. To seal the chambers, the bottom, socket cap and the MIPT adapter are glued onto the clear PVC chamber. The top cap is removable and will have its threads wrapped in silicon tape to seal from oxygen entry. The holes for the hose barb adapters, immersion heater, and probe pipe fittings were drilled and threaded by University of Idaho Facilities. The threads for these parts will also be wrapped in silicon tape to prevent oxygen entry and water leakage. 
(1)	Top cap, threaded
(2)	Acrylic disk
(3)	MIPT Adapter
(4)	PVC Chamber
(5)	Hose barb adapters for peristaltic pumps
(6)	Probe pipe fittings for pH and electrical conductivity
(7)	Immersion heater
(8)	Bottom cap, socket
(9)	Magnetic stir plate
 One Chamber Assembly </br>
We were able to assemble one chamber to see how it would look and to adjust any parts of the design if necessary.
 Acrylic Disk </br>
The sensors that sit on the acrylic disk were measured so that holes could be laser cut for them. This disk should help to prevent oxygen entry into the system and keeps the sensors away from the liquid which could damage them. 
 Sensor Choices </br>
Type 	Model 	Picture
pH 	Atlas Scientific - Consumer Grade	
Electrical Conductivity (EC)	Atlas Scientific - K 10 	
Temperature 	DS18B20 	
Pressure 	Honeywell MPR Series 	
Water level 	PN-12110215TC-12 	
Carbon Dioxide (CO2) 	MG811 	
Oxygen (O2) 	ME2-O2-D20 	
Methane 	MQ-4 	
 Circuit Schematic </br>
We have designed a schematic that accommodates parts for both the Raspberry Pi and Arduino. The left portion is for the Raspberry Pi while the right is for the Arduino.
</br>
For the Raspberry Pi, we are using an H-bridge driver to control the pumps. An 8-channel relay is used to connect the mixing and heating elements to a wall outlet to power them.
</br>
The Arduino uses a multiplexer and Analog/Digital Converter to consolidate our sensors' output to one pin to connect to the I2C pin of the board. This is necessary to save on pin usage on the board. I2C is the primary method of data communication from the sensors to the board. The board is connected via USB to the Raspberry Pi which transfers data serially.
=Validation=
Due to the CoVID-19 pandemic, we were unable to validate our design. The plans for validation are shown below.
Requirement 	Validation 	Result
Able to inoculate and sample chambers via a port 	Confirm that chosen inoculation port works as expected 	Unable to test, ordered inoculation ports and syringes that can be installed in the system
Able to monitor oxygen, carbon dioxide, and methane in each chamber 	Confirm that chosen sensors are working correctly by sending gas samples for lab testing 	Unable to test, sensors for one chamber are available
Able to monitor pH, temperature, electric conductivity, mixing time, pump flow rate, water level, and pressure	Confirm that chosen sensors are working as expected by testing against controls 	Unable to test, sensors for one chamber are available
Able to manipulate temperature, water level, and mixing 	Confirm that user interface allows user to change these parameters 	Unable to test, sensors, immersion heater, and magnetic stir plate are available
System is easy to clean and disassemble 	PVC and adapters should allow for easy disassembly 	Unable to test, once chambers are glued and taped, test for ease of disassembly
Produce biogas 	Use sensor readings from methanogenesis chamber to confirm production of biogas that is 50% carbon dioxide, 50% methane	Unable to test, needs to be run on fully functional prototype
=Future Work=
We were excited to run tests on our system using microalgae and rumen microbes to attempt to produce biogas but were unfortunately unable to. Future capstone teams could resume our work by ordering parts and finishing the construction of the last three chambers. Additionally, they can construct a wooden box that would house the chambers and electronic components as well as retrofit the system to the photobioreactor. The software is a big portion that will need to be done from the ground up. Due to not having the necessary parts on hand, we were not able to write the code and test it effectively. Most importantly, the team could begin to test the system for optimal parameters and move forward with biogas production. 
=Team Members=
thumb|left	
Name: Maggi Laan
Major: Biological Engineering 
Hometown: Weiser, ID 
Responsibility: CAD, Meeting Minutes Recorder 
Email: laan0509@vandals.uidaho.edu	thumb|left	
Name: Kyle Yates 
Major: Biological Engineering 
Hometown: Nine Mile Falls, WA
Responsibility: Project Manager, Agenda 
Email: yate5678@vandals.uidaho.edu
 	
Name: Amani Al Fulaiti 
Major: Computer Engineering 
Hometown: Oman
Responsibility: Budget 
Email: alfu2687@vandals.uidaho.edu	 	
Name: Michael Nguy 
Major: Electrical Engineering
Hometown: Hayden, ID
Responsibility: Wikimaster, 
Email: nguy7583@vandals.uidaho.edu
=Additional Documentation=
Project Schedule
 1480px
Here are the PDF files of various documentations available for viewing.
Meeting Minutes 
Presentations 
Follow the link below to view our presentations. 
Presentations
Agenda