<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JSBS</journal-id><journal-title-group><journal-title>Journal of Sustainable Bioenergy Systems</journal-title></journal-title-group><issn pub-type="epub">2165-400X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jsbs.2017.73009</article-id><article-id pub-id-type="publisher-id">JSBS-79000</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Development of a Low-Cost Data Acquisition System for Biodigester
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Pedro</surname><given-names>Felipe Sousa Teixeira</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Luciano</surname><given-names>Fernandes Moura</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Stênio</surname><given-names>Wellington Sousa Lima</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Daniel</surname><given-names>Albiero</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Franklin</surname><given-names>Aragão Gondim</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Auzuir</surname><given-names>Ripardo de Alexandria</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Universidade Federal do Ceará-UFC, Ceará, Brazil</addr-line></aff><aff id="aff1"><addr-line>Instituto Federal de Educacao, Ciência e Tecnologia do Ceará-IFCE, Ceará, Brazil</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>pedrofelipest@gmail.com(PFST)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>10</day><month>08</month><year>2017</year></pub-date><volume>07</volume><issue>03</issue><fpage>117</fpage><lpage>137</lpage><history><date date-type="received"><day>22,</day>	<month>July</month>	<year>2017</year></date><date date-type="rev-recd"><day>9,</day>	<month>September</month>	<year>2017</year>	</date><date date-type="accepted"><day>12,</day>	<month>September</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  
    The objective of this work is to develop a low-cost data acquisition system, which aims to optimize the anaerobic biodigestion process in an Indian model biodigester prototype, by monitoring the main parameters of the process. In this development, we decided to create a system from scratch, including the entire measure-process-show procedure using hardware tools and free software as means of reducing costs. This platform must be capable of obtaining analog data from the sensors arranged in the biodigester in long periods for the creation of more accurate reports. The system must be able to send this information to a Web server, so these values can be continuously tracked anywhere with access to the internet. The monitoring must be done in a hybrid application for An-droid, iOS and web browser. 
  
 
</p></abstract><kwd-group><kwd>Acquisition System</kwd><kwd> Biodigestor</kwd><kwd> Monitoring</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In the process of data acquisition, a real-world physical phenomenon is received, transformed into an electrical signal, which is measured and converted to a digital format through processing, analyzed and stored by a computer. In the vast majority of applications, data acquisition systems are designed not only to acquire data, but also to act controlling for later visualization, storage, processing and analysis [<xref ref-type="bibr" rid="scirp.79000-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.79000-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.79000-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.79000-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.79000-ref5">5</xref>] .</p><p>Commonly, the data acquisition system used is called Datalogger [<xref ref-type="bibr" rid="scirp.79000-ref6">6</xref>] , in industrial and agricultural automation processes. This is designed for the acquisition and recording of data over a period without human intervention in this collection. The data are passed to the Datalogger in analog or digital quantities from sensors. These data in analog magnitude are converted to digital, in order to allow them to be measured in mathematical quantities and then processed by a controller and stored [<xref ref-type="bibr" rid="scirp.79000-ref7">7</xref>] .</p><p>On the other hand, studies focused on industrial automation are very limited due to the high cost and time demand. In this context, the development of low cost data acquisition systems is seen as a promising alternative for the refinement and consolidation of this technology. Therefore, the objective of this work is to develop a low cost data acquisition system, which aims to optimize the anaerobic biodigestion process in an Indian model biodigester prototype, by monitoring the main parameters of the process.</p><p>In this development, we decided to create a system from scratch, including the entire measure-process-show procedure using hardware tools and free software as means of reducing costs. This platform must be capable of obtaining analog data from the sensors arranged in the biodigester in long periods for the creation of more accurate reports. The system must be able to send this information to a Web server, so these values can be continuously tracked anywhere with access to the internet. The monitoring must be done in a hybrid application for Android, iOS and web browser.</p></sec><sec id="s2"><title>2. Organization of the Work</title><p>This paper is organized as follows: the general and specific objectives of the project will be described in Section 2, the sensors and the technology used, which will be necessary for the execution of the project, are discussed in Section 3, whereas the results will be described in Section 4 and, finally, the conclusions of the paper in Section 5.</p></sec><sec id="s3"><title>3. Objectives</title><p>The objectives of this work are presented in the form of general and specific objectives.</p><sec id="s3_1"><title>3.1. General Objectives</title><p>Develop a system for low-cost data acquisition, which aims to monitor the process of anaerobic biodigestion in biodigesters.</p></sec><sec id="s3_2"><title>3.2. Specific Objectives</title><p>・ Study programming tools and software development;</p><p>・ Understand the operation of temperature, pressure, pH and methane gas sensors;</p><p>・ Implement a system of data acquisition of sensors and its storage;</p><p>・ Present data read from sensors arranged in a multiplatform biodigester from the internet.</p></sec></sec><sec id="s4"><title>4. System Architecture</title><p>The operation of the system is described in <xref ref-type="fig" rid="fig1">Figure 1</xref>, from the data acquisition</p><p>until its monitoring by the user through the application.</p><p>Temperature, pressure, pH and methane gas sensors are arranged in the monitored Biodigestor, according to the specification of where the data must be read.</p><p>The sensor information is acquired by Rapberry Pi (RPI) that follows its particular forms of communication. All processing and control of these read data is RPI’s responsibility. In it, the data is treated, converted, filtered and stored in a local database. It also runs a RESTful service, which makes available the data stored in the database in JSON format, for use in a Web Service. We created a web application to receive this data and show in real-time the sensor readings in the biodigester acquisition system. Additionally, it can be used to generate reports and graphs according to previously read values.</p><p>This way, there is a real time monitoring of the application with all the data that were and will be acquired over time, thus allowing better monitoring and management of the read data.</p><sec id="s4_1"><title>4.1. Sensors</title><sec id="s4_1_1"><title>4.1.1. Digital Temperature Sensor DS18B20</title><p>The temperature sensor used is the DS18B20 from Maxim Integrated Products, a digital thermometer that has a resolution for its measurements between 9 and 12 bits. It communicates on a 1-wire bus, which by definition requires only one communication line (and ground) to send the data to a controller. Each sensor has a serial number of 64 bits recorded, which allows the use of multiple sensors in a same data bus. It has a scale from −55˚C to +125˚C, its accuracy is &#177;0.5˚C in the range between 10˚C to 85˚C [<xref ref-type="bibr" rid="scirp.79000-ref8">8</xref>] .</p><p>This sensor converts the direct temperature to digital with up to 12 bits of resolution. This allows the read temperature to receive increments or decrements of up to 0.0625˚C at intervals of up to 750 ms. The input voltage of this sensor can be between 3 and 5.5 V directly at the power supply terminals, VDD and GND. However, it can be configured as a parasite in the network. This is an available configuration from its 1-wire communication protocol that allows the use of the communication path, the DQ, also as a power supply, requiring only 2 wires to communicate with the RPI.</p><p>The sensor used in this project is an encapsulated version with wire exit and waterproof for use in distant environments and in wet conditions.</p><p>The sensor operates at temperatures up to 125˚C, and the PVC cable that covers the wires supports up to 100˚C without degradation of the digital signal with the sensor information. Due to these characteristics, this encapsulated model is suitable for the prerequisites of use in the system and it can be seen in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p></sec><sec id="s4_1_2"><title>4.1.2. Digital Pressure Sensor BMP180</title><p>The BMP180, shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>, is a digital pressure sensor that came to succeed the BMP085 in a new generation of sensors with high digital accuracy. This</p><p>sensor produced by BOSCH has been optimized for applications in mobile systems such as PDAs and GPS navigation. It uses the I2 C communication protocol for easy integration with microcontrolling systems as well as computational ones. It is based on piezoresistive technology that gives it high robustness, accuracy and great time of use [<xref ref-type="bibr" rid="scirp.79000-ref9">9</xref>] .</p><p>This sensor takes readings between 950 and 1050 hpa working at a temperature of 25˚C, giving it an accuracy of 0.12 hpa. This read pressure is internally converted to altitude by using an international formula described in Equation (1), where p is the pressure read and po is the base pressure for the calculation.</p><p>Altitude = 44330 &#215; ( 1 − ( p p o ) 1 5.255 ) (1)</p><p>BMP180 operates with voltages between 1.8 and 3.6 V, but it can be powered by a voltage of 5 V, however it is recommended to use a regulated voltage of 3.3 V. It also has an internal temperature sensor and it is fully calibrated. It has a high speed of reading and conversion, which can take 4.5 ms between samples. The BMP180 was designed to be connected directly to a controller and to communicate on an I<sup>2</sup>C bus. This is made up of a piezoresistive sensor, an analog to digital converter, a control unit, an E2PROM and a serial I<sup>2</sup>C interface. The E2 PROM has stored 176 bits of data for individual calibration. It is used for temperature and pressure compensation [<xref ref-type="bibr" rid="scirp.79000-ref9">9</xref>] .</p></sec><sec id="s4_1_3"><title>4.1.3. MQ-4 Gas Sensor</title><p>The MQ-4 gas sensor was created for use in the detection of gas leaks in equipment and in industry. Its greatest suitability and sensitivity is to detect methane (CH4) and natural gas (LPG), but it can also be used in the detection of alcohol and smoke. It works with voltages of 5 V and detects concentrations between 200 and 10,000 ppm (particles per million) [<xref ref-type="bibr" rid="scirp.79000-ref10">10</xref>] . In the context of the application it is necessary only to read methane gas in ppm to calculate the concentration of gas in the biodigester, in order to monitor the process and the amount of gas production. The output of this sensor is analogous in nature following a sensitivity curve, characteristic that can be observed in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p></sec><sec id="s4_1_4"><title>4.1.4. pH Sensor</title><p>We used a pH sensor kit from Atlas Scientifc composed of a pH sensor, <xref ref-type="fig" rid="fig5">Figure 5</xref>(a), and an EZOTM circuit, seen in <xref ref-type="fig" rid="fig5">Figure 5</xref>(b), to read the pH values. The sensor performs pH readings between 0.001 to 14.000 with resolution of &#177;0.002 and it communicates directly with a microcontroller or computer system via an asynchronous serial UART connection or via I<sup>2</sup>C. It works with input voltages between 3.3 V to 5 V with an average consumption of 0.995 mA in 3.3 V [<xref ref-type="bibr" rid="scirp.79000-ref11">11</xref>] .</p><p>The pH Probe directly connected to the EZO circuit provides, directly to the protocol being used, the pH value at its set value without the need to manipulate the read data, since the sensor is pre-calibrated.</p></sec><sec id="s4_1_5"><title>4.1.5. MCP3008 Analog-to-Digital Converter</title><p>Analog-to-digital converters are devices that convert analog input voltages into</p><p>digital codes as output. This generated code can be used directly by digital devices as in microcontrollers and computers. The use of analog-digital converters has its application in the reception of values coming from analog nature, such as temperature sensors, for the use of this data in digital systems.</p><p>The MCP3008 has a 10-bit resolution digital-analog converter, which can receive up to 8 separate and parallel analog inputs with an SPI communication interface. It can receive and treat the 8 analog inputs digitally [<xref ref-type="bibr" rid="scirp.79000-ref12">12</xref>] using a communication language from this interface. The MCP3008 is used in applications when the digital system that will process analog level information does not have an internal A/D converter. Another use for it is when the system already has A/D converter, but not enough for the application [<xref ref-type="bibr" rid="scirp.79000-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.79000-ref13">13</xref>] .</p></sec><sec id="s4_1_6"><title>4.1.6. Raspberry Pi</title><p>Raspberry Pi, shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>, is a small computer developed by the Raspberry Pi Foundation, a British charity organization, in order to stimulate the study of computer science. The computer components were selected in order to optimize the cost. It is a very simple instrument, but capable of performing several specific tasks.</p><p>Raspberry Pi’s great advantage is that there is not only one way to use it. The user defines how it will be used and has the ability to perform several functions, such as just watching videos and browsing the internet or using them to control a home automation system. This hardware platform is extremely flexible, which enables a multitude of applications [<xref ref-type="bibr" rid="scirp.79000-ref14">14</xref>] .</p><p>Launched in 2011, this small computer has established itself as a great low- cost alternative to Linux-based systems. More than 2 million devices have been sold since its launch and they have been worked on in many areas, especially educational and professional ones [<xref ref-type="bibr" rid="scirp.79000-ref15">15</xref>] .</p><p>The RPI does not use hard disk, having an SD card with capacity greater than or equal to 8 GB as secondary memory. The operating system, as well as the user files, are stored in this card. It has a network interface controller (NIC) with a standard RJ-45 ethernet connection, enabling a connection to the Internet or just a local area network. It has two video outputs, one HDMI output and a second RCA video output. It even has two USB ports and one audio output. It</p><p>has eight programmable general purpose input/output (GPIO) pins, which can be connected, for instance, to sensors, motors or relays (switches controlled by electricity) to control other equipments. The model 2 of the device in its version B is used in this project, which has the following specifications:</p><p>・ Architecture: Quad-core ARM Cortex-7;</p><p>・ CPU: 900 MHz;</p><p>・ RAM: 1 GB;</p><p>・ GPU Broadcom VideoCore IV;</p><p>・ Chip: Broadcom BCM2836 SoC;</p><p>・ Connector for GPIOS with 2 &#215; 20 pins;</p><p>・ Camera connector;</p><p>・ Display connector.</p></sec><sec id="s4_1_7"><title>4.1.7. Database</title><p>There are several ways to store data, for using it in applications or after them, such as organizing in text files, in .csv formats for direct processing in spreadsheets, as well as in relational or non-relational databases. This choice must be taken into account according to the needs of the application developed.</p><p>Databases have been used since the beginning of computing and undergo a constant evolution, always changing, updating and evolving according to the needs. In this update context, relational databases have emerged in a data collection stored and interconnected with multiusers needs in different sessions, while maintaining data reliability, integrity, and availability of these data. Broader access, data integration, ease of access and reduced data redundancy lead to a constant use of these databases. It is necessary a software which allows the management of this information. This is the Database Manager System. This is responsible for all input, output, and logic interactions involved in data management [<xref ref-type="bibr" rid="scirp.79000-ref16">16</xref>] .</p><p>The MySQL database management system (DBMS) is used in this application. This is a free tool created and maintained in the base of free software, with great benefits in use, such as: quality, robustness and security. This is the most famous DBMS in the world and widely used in web applications for being fast and efficient.</p></sec><sec id="s4_1_8"><title>4.1.8. Web Server</title><p>The data received from the sensors and processed by Raspberry Pi are sent directly to a web server, which was used to make the data acquisition available in a distributed and immediate way. Web server is a specific software for displaying files to clients connected on the same network. These data are in HTML and use protocols such as HTTP in most contexts. These are responsible for making websites and content available on the internet. Some examples are Apache, Tomcat and Nginx servers [<xref ref-type="bibr" rid="scirp.79000-ref17">17</xref>] .</p><p>Apache Server is used in this application. It receives the information directly from the Raspberry PI, it is stored in database and made available to applications later.</p></sec></sec><sec id="s4_2"><title>4.2. Development and Implementation</title><sec id="s4_2_1"><title>4.2.1. Location of Tests</title><p>The system was put into operation for the data acquisition in a greenhouse at the Federal University of Cear&#225; (UFC) Pici campus with the coordinates of latitude −3.7452231 and longitude −38.5816339. We performed the experiments between May 31st and June 19th, 2016, with data acquisition at defined intervals of 30 minutes.</p><p>The information acquired from the sensors was saved in a local and remote database, both of them used MySQL as DBMS. The wireless internet network available on the campus was used to send this information to the remote database.</p></sec><sec id="s4_2_2"><title>4.2.2. Biodigestor</title><p>The search for efficient alternative means of production has become commonplace in scientific and industrial production with the imminent cessation of fossil fuels. Means of obtaining energy from, for instance, wind, the sun and the water movement were created in this context. Ways of using biomass for the energy generation were created in this environment as well. It can be found in the most diverse forms in nature such as firewood, residues generated by agricultural crops, animal husbandry and municipal solid waste [<xref ref-type="bibr" rid="scirp.79000-ref18">18</xref>] .</p><p>In the use of residues, such as those produced by animal husbandry, anaerobic biodigestion has been gaining strength in the use of this biomass in the implementation of biodigesters for energy generation, as well as biofertilizers [<xref ref-type="bibr" rid="scirp.79000-ref19">19</xref>] . There are two extremes in the use of biodigesters, they are the Indian and Chinese models. The Chinese model seeks the creation of biofertilizers for use in food production. The Indian model is used, in the best form, for the production of biogas [<xref ref-type="bibr" rid="scirp.79000-ref20">20</xref>] .</p><p>The monitored biodigester is a prototype constructed from PVC pipes (polyvinyl chloride) following the Indian model that exalts a higher production of biogas. It could be constructed at a low cost due to the ease of finding the materials and it allows the use of the study of the variables in a bench-level for the continuous improvement of the anaerobic digestion process [<xref ref-type="bibr" rid="scirp.79000-ref21">21</xref>] .</p><p>The built prototype is based on the Indian model, because this type of model has an extraordinary capacity in the waste treatment, as well as in the production of biogas and biofertilizer. The measures adopted in the construction of the prototype can be visualized in <xref ref-type="fig" rid="fig7">Figure 7</xref>.</p><p>where:</p><p>・ H: height of the substrate level (biomass) = 45 cm</p><p>・ Dg: gasometer diameter = 14 cm</p><p>・ Ds: diameter of the digestion chamber = 15 cm</p><p>・ h1: idle height (biogas reservoir) = 47 cm</p><p>・ h2: useful height of the gasometer = 27 cm-height of the inlet box = 2 cm-height of the entrance of the pipe with the inflow = 5 cm</p><p>・ M: length of inlet pipe whose diameter is 32 mm = 46 cm</p><p>・ M: length of the outlet pipe whose diameter is 32 mm = 42 cm</p><p>・ P: partition wall height = 20 cm</p><p><xref ref-type="fig" rid="fig8">Figure 8</xref> shows the biodigestor constructed and instrumented with the sensors for data acquisition.</p></sec><sec id="s4_2_3"><title>4.2.3. Hardware Specification</title><p>・ For the proper functioning of the system for data acquisition, a determining factor is the type of hardware to be developed in detriment of the environmental factors of its place of operation. In anaerobic biodigesters, the places for monitoring are generally in open environments and at high temperatures, unprotected against rainfall and away from the power grid and the internet. These factors must be taken into account when specifying the hardware components used. Taking into account the objectives of the work to the detriment of environmental issues of application, the hardware to be developed must have some prerequisites:</p><p>・ Robustness: Inherent characteristics to the environment, such as the ability to withstand high temperatures and humidity, must be supported by the hardware, as well as restoration capacity in cases of failures, such as a momentary power interruption.</p><p>・ Self-management of data: The hardware must allow the acquisition of information from the sensor at defined intervals, so it can be acquired, processed and stored without human interference, and in the event of a failure, reorganize itself in a way that will not lose information, which are the most important assets of the application.</p><p>・ Storage: Information must be stored over long periods, which requires sufficient storage capacity to supply this demand for information according to the time defined.</p><p>・ Interoperability of protocols: The hardware must allow communication with peripherals (in this case, sensors) in various communication protocols to receive and process the information coming from them.</p><p>・ Internet communication: In order to access the information acquired in the biodigester in continuous monitoring, the hardware must allow this information to be sent over the internet, so that it can be made available to the application once the reading is carried out in the field.</p><p>・ To solve this problem in relation to the established points, there are several platforms and means to solve them, we could use a microcontroller, such as Arduino. However, some peripherals should be used to obtain all the proposals. It would be necessary to use Shields, as a Real Timer Clock (RTC) to determine the time, a GPRS, for internet connection, and a SD, to record information. We use a small computer, Raspberry Pi, in order to needs to be satisfied and still with some additional means, which give greater capacity to construction.</p><p>・ The RPI does not have an internal analog-to-digital converter, which is required for the application. For this, we include the MCP3008 analog-digital converter of the microchip.</p><p>・ All sensors were connected to the RPI, as shown in the electrical scheme defined in <xref ref-type="fig" rid="fig9">Figure 9</xref>. The DS18B20 temperature sensors communicate via the 1-wire bus with the RPI, each one of them has a specific address defined by the protocol for different readings of temperature values. The BMP180 pressure sensor communicates with the RPI via the I2 C protocol, and the analogue pH and methane gas sensors (MQ-4) are connected to the analog-to- digital converter MCP3008, which in turn communicates with the RPI via SPI, passing the information in digital values for treatment in the control system.</p></sec><sec id="s4_2_4"><title>4.2.4. Software Specifications</title><p>We take into consideration the construction of two platforms in the development of the software logic for this data acquisition system. One to acquire, process and deliver the data and another one to receive these data and to show in a customized interface to the user.</p><p>We used the python programming language for its development in the acquisition application. This is a high-level, object-oriented, dynamic typing, strong, interpreted, and interactive language. It favors readability and makes itself more productive with clear and concise syntax. It is open source and used in the creation of systems and also as a scripting language in various software [<xref ref-type="bibr" rid="scirp.79000-ref22">22</xref>] .</p><p>We have built a hybrid application from the mobile application framework, Ionic, to develop an agile, intuitive and efficient interface for monitoring the data by the user. It has an interface layout built to fit the devices natively and responsively.</p><p>Having a clean and efficient design when we run the application as a fundamental feature. Currently, there is a high demand for the creation of compatible applications with at least most of the various existing software platforms. In this context, platforms were created for hybrid application development, such as Phonegap. On these platforms, web applications that run within a browser on the device are created. The browser is included in the application, and it is adapted to each platform at the time of compilation. In this way, a single application can run on several platforms. This is how the Ionic Framework was created, in 2013 [<xref ref-type="bibr" rid="scirp.79000-ref23">23</xref>] .</p><p>The framework includes a set of visual elements that are identical to the native ones. Ionic is responsible for the interface and the way the data is shown. We used the AngulaJS language to receive data from the sensor, its treatment, interaction with the user and all the logic involved. This is a framework maintained by Google and works as an extension to the HTML document, which adds new parameters and interacts dynamically with various elements. This language makes use of directives to change the standard HTML behavior, it makes the connection between the visual created in Ionic and the logic that must be developed in the application [<xref ref-type="bibr" rid="scirp.79000-ref24">24</xref>] .</p></sec></sec></sec><sec id="s5"><title>5. Results</title><p>The monitoring of the parameters of anaerobic biodigestion is of fundamental importance, both for the process and to improve the results achieved, according to the literature. These parameters include: temperature, pressure and pH.</p><p>According to [<xref ref-type="bibr" rid="scirp.79000-ref25">25</xref>] , the monitoring and accompaniment of the data provide optimum conditions of activity, help in a better use of the organic residues and, consequently, improve the production of its by-products, biogas and biofertilizers, besides contributing in the fermentation process of the bacteria.</p><p>The temperature is the most relevant among the several factors that interfere with anaerobic biodigestion, as shown previously, due to the different ranges of microbial growth. According to Bischofsberger et al. (2005), fermentative bacteria reach a maximum growth rate of 100% in the mesophilic conditions, between 20˚C and 45˚C, considering 36.5˚C as the ideal temperature. On the other hand, thermophiles reach maximum growth at temperatures higher than 45˚C, being ideal around 56˚C.</p><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>0 an initial screen of the application was shown being run on an Android operating system tablet. It shows the location where the User must enter the address of the server where an application is hosted. After entering the information, the application receives the data that was acquired as representation in <xref ref-type="fig" rid="fig1">Figure 1</xref>1.</p><p>Analyzing the data obtained during the temperature monitoring both in the campanula and in the digestion chamber (<xref ref-type="table" rid="table1">Table 1</xref> and <xref ref-type="table" rid="table2">Table 2</xref>), it is noticeable that temperatures remained within the expected throughout the experiment, creating optimal conditions for the development of bacterial activities, contributing to the production of biogas and biofertilizer.</p><p>Given the data collected, we sketched a graphic with the minimum, average</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Temperature sensor values</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="8"  >Campanula temperature in ˚C</th></tr></thead><tr><td align="center" valign="middle"  colspan="8"  >Days</td></tr><tr><td align="center" valign="middle" >Time (h)</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >11</td><td align="center" valign="middle" >12</td><td align="center" valign="middle" >13</td><td align="center" valign="middle" >14</td><td align="center" valign="middle" >15</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >28.8</td><td align="center" valign="middle" >28.5</td><td align="center" valign="middle" >28.3</td><td align="center" valign="middle" >27.8</td><td align="center" valign="middle" >28.1</td><td align="center" valign="middle" >28.0</td><td align="center" valign="middle" >28.5</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >33.1</td><td align="center" valign="middle" >34.8</td><td align="center" valign="middle" >31.6</td><td align="center" valign="middle" >32.8</td><td align="center" valign="middle" >33.8</td><td align="center" valign="middle" >33.7</td><td align="center" valign="middle" >34.3</td></tr><tr><td align="center" valign="middle" >21</td><td align="center" valign="middle" >29.5</td><td align="center" valign="middle" >29.9</td><td align="center" valign="middle" >28.7</td><td align="center" valign="middle" >29.1</td><td align="center" valign="middle" >29.0</td><td align="center" valign="middle" >29.3</td><td align="center" valign="middle" >29.8</td></tr><tr><td align="center" valign="middle" >Average</td><td align="center" valign="middle" >30.5</td><td align="center" valign="middle" >31.0</td><td align="center" valign="middle" >29.5</td><td align="center" valign="middle" >30.1</td><td align="center" valign="middle" >30.3</td><td align="center" valign="middle" >30.3</td><td align="center" valign="middle" >30.8</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Temperature sensor values</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="8"  >Temperature in the Digestion Chamber in ˚C</th></tr></thead><tr><td align="center" valign="middle"  colspan="8"  >Days</td></tr><tr><td align="center" valign="middle" >Time (h)</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >11</td><td align="center" valign="middle" >12</td><td align="center" valign="middle" >13</td><td align="center" valign="middle" >14</td><td align="center" valign="middle" >15</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >36.4</td><td align="center" valign="middle" >35.8</td><td align="center" valign="middle" >30.9</td><td align="center" valign="middle" >31.3</td><td align="center" valign="middle" >34.5</td><td align="center" valign="middle" >32.1</td><td align="center" valign="middle" >31.8</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >33.8</td><td align="center" valign="middle" >35.1</td><td align="center" valign="middle" >34.8</td><td align="center" valign="middle" >35.6</td><td align="center" valign="middle" >35.0</td><td align="center" valign="middle" >35.3</td><td align="center" valign="middle" >36.5</td></tr><tr><td align="center" valign="middle" >21</td><td align="center" valign="middle" >27.3</td><td align="center" valign="middle" >27.5</td><td align="center" valign="middle" >27.3</td><td align="center" valign="middle" >26.9</td><td align="center" valign="middle" >26.8</td><td align="center" valign="middle" >27.6</td><td align="center" valign="middle" >28.1</td></tr><tr><td align="center" valign="middle" >Average</td><td align="center" valign="middle" >33.8</td><td align="center" valign="middle" >35.1</td><td align="center" valign="middle" >30.9</td><td align="center" valign="middle" >31.3</td><td align="center" valign="middle" >34.5</td><td align="center" valign="middle" >32.1</td><td align="center" valign="middle" >31.8</td></tr></tbody></table></table-wrap><p>and maximum values of temperature, during the 20 days of reading of the system. This graph is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2. It is possible to perceive the temperature variation in the two sensed locations in the biodigester throughout the day.</p><p>In <xref ref-type="table" rid="table1">Table 1</xref> and <xref ref-type="table" rid="table2">Table 2</xref>, we have the temperature values read by the sensors located in the campanula and digestion chamber, respectively, between June 9th and 15th, at 9:00 PM, 3:00 PM and 9:00 PM, according to Brasilia time and following the specifications of the WMO (World Meteorological Organization) of the ONU. Below the temperature readings, we have the average temperature in the day, taking into account the three times read.</p><p>These changes did not affect the capacity of methanogenic bacteria to produce biogas, although there is variation in temperature, as can be seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>2. We can observe that methane production already occurred at the beginning of the data collection, with its higher production in the fourth week of analysis, due to favorable weather conditions.</p><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>3, we have data on the temperature in the campanula of the monitored biodigestor, demonstrating the maximum, minimum and average values , as well as a graph of the temperature as a function of time.</p><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>4, we have the data on atmospheric pressure in the monitored biodigestor, which shows the maximum, minimum and average values, as well as a graph of temperature as a function of time.</p><p>The values read from the pressure in the campanula are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>5, with the maximum, average and minimum values during the 20th day of acquisition.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>6 shows a graph generated from the application and saved locally</p><p>from the weekly methane gas production summary. We can note that the production had a growth since the beginning of the data collection and that had its</p><p>greater production in the fourth week of production and monitoring of the biodigester.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>7 also shows a summary of the pH values in the monitoring period, which proved to be very stable, favoring the bacteria that perform the digestion of the biomass for biogas production.</p><p>Another factor that affects the bacteria involved in the process drastically is the pH. According to the literature, its value ranges from 6.0 to 8.0, with pH 7.0 as the optimum point. Analyzing the data obtained during the analyzes (<xref ref-type="fig" rid="fig1">Figure 1</xref>7), we can conclude that the pH remained within a range expected in the literature throughout the experiment. It is important to highlight that biogas production was very significant in the fourth week, in which the pH was closer to 7, as we can see in <xref ref-type="fig" rid="fig1">Figure 1</xref>6.</p><p>Analyzing all the graphs, we realized that it is possible to make an optimization of the system, due to the existence of a peak of biogas production in the fourth week of experiments. We believe that we would be able to further improve production if there was better control in the reactor under study (what the acquisition system allows), which enables us to study reactor control systems in future works.</p><p>On the other hand, the system showed an appropriate behavior in relation to the objectives set out in the development of the application, which was to monitor the data coming from a biodigester in a simple and efficient way. By sending this information to the internet, the continuous and uninterrupted monitoring of the information received from the RPI by the sensors installed in the biodigester became possible. We can have direct and momentary information with this continuous monitoring, according to the application interactions of the biomass and environmental factors, such as temperature.</p><p>The hardware presented efficient behavior when it comes to sensor data acquisition and restoration of normal functions, even in the face of power outages. The monitoring system built on a hybrid platform allowed the tracking of information, both in the web browser and on the Android mobile platform installed, making it easier for users to receive information. For the improvement of the system in future works, we must let it self-sufficient energetically by using batteries in order to avoid losing data in the event of a power outage.</p></sec><sec id="s6"><title>6. Conclusion</title><p>In general, we can say that all the objectives were achieved. Through this study, we built a functional data acquisition system with low cost materials and they are easy to acquire in the local market. Thus, we see the system as a feasible and easily implementable alternative for the experimental research on monitoring the anaerobic biodigestion process for the production of biogas from biomass, reducing the temporal and material cost of the research.</p></sec><sec id="s7"><title>Cite this paper</title><p>Teixeira, P.F.S., Moura, L.F., Lima, S.W.S., Albiero, D., Gondim, F.A. and de Alexandria, A.R. (2017) Development of a Low-Cost Data Acquisition System for Biodigester. Journal of Sustainable Bioenergy Systems, 7, 117-137. https://doi.org/10.4236/jsbs.2017.73009</p></sec></body><back><ref-list><title>References</title><ref id="scirp.79000-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Park, J. and Mackay, S. (2003) Practical Data Acquisition for Instrumentation and Control Systems. Elsevier Science.  
https://books.google.com.br/books?id=wyxXWV-hx3cC</mixed-citation></ref><ref id="scirp.79000-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Alves, M.C.S., Lima, T.F.O., Gonalves, M.T.T., Varasquim, F.M.F.A., Santiago, L.F.F., Varanda, L.D. and Bianchi, E.C. (2010) Desenvolvimento de um Sistema de Aquisi	&amp;atilde;o de dados a distanciaparaprocessos de usinagem. IV CongressoNacional de EngenhariaMecanica.</mixed-citation></ref><ref id="scirp.79000-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Mcphillips, T.M., Mcphillips, S.E., Chiu, H.-J., Cohen, A.E., Deacon, A.M., Ellis, P.J., Garman, E., Gonzalez, A., Sauter, N.K., Phizackerley, R.P., et al. (2002) Blu-Ice and the Distributed Control System: Software for Data Acquisition and Instrument Control at Macromolecular Crystallography Beamlines. Journal of Synchrotron Radiation, International Union of Crystallography, 9, 401-406.</mixed-citation></ref><ref id="scirp.79000-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Abbasi, R., Ackermann, M., Adams, J., Ahlers, M., Ahrens, J., Andeen, K., Auffenberg, J., Bai, X., Baker, M., Barwick, S., et al. (2009) The Icecube Data Acquisition System: Signal Capture, Digitization, and Time Stamping. Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment, 601, 294-316.</mixed-citation></ref><ref id="scirp.79000-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Serrano, L., Alcobia, C., Mateus, M. and Silva, M. (2004) Sistemas de aquisi&amp;atilde;o, processamento e armazenamento de dados. Spmet-Encontro Nacional, 1, 1.</mixed-citation></ref><ref id="scirp.79000-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Sampaio, M.H.K., Filho, J.F.D.S. and Almeida., J.F.D.(2010) Sistema de aquisi&amp;atilde;o remota de dados para detec&amp;atilde;o de comportamentos de variáveis ambientais em parques florestais da amaz&amp;ocirc;nia.</mixed-citation></ref><ref id="scirp.79000-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Chase, A.O., Sampaio, M.H.K., Almeida, J.F. and Brito-De-Souza, J.R. (2012) Data Acquisition System: An Approach to the Amazonian Environment. IEEE Latin America Transactions, 10, 1616-1621. https://doi.org/10.1109/TLA.2012.6187606</mixed-citation></ref><ref id="scirp.79000-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Integrated, M. (2015) DS18B20: Programmable Resolution 1-Wire Digital Thermometer. Maxim Integrated Products, Inc.</mixed-citation></ref><ref id="scirp.79000-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Sensortec, B. (2013) BMP180: Digital Pressure Sensor. Bosch Sensortec GmbH.  
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP180-DS000-121.pdf</mixed-citation></ref><ref id="scirp.79000-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Electronics, H. (2002) Technical Data Mq-4 Gas Sensor. Hanwei Electronics.  
https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-4.pdf</mixed-citation></ref><ref id="scirp.79000-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">LLC, A.S. (2015) Technical Data pH Probe. Atlas Scientific LLC.</mixed-citation></ref><ref id="scirp.79000-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Technology, M. (2008) MCP3004/3008: 2.7V 4-Channel/8-Channel 10-Bit A/D Converters with SPI Serial Interface. Microchip Technology Inc.  
https://cdn-shop.adafruit.com/datasheets/MCP3008.pdf</mixed-citation></ref><ref id="scirp.79000-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Alciatore, D.G. and Histand, M.B. (2014) Introdu&amp;atilde;o à Mecatr&amp;ocirc;nica e aos Sistemas de Medi&amp;otilde;es. AMGH Editora.</mixed-citation></ref><ref id="scirp.79000-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Richardson, M. and Wallace, S. (2012) Getting Started with Raspberry PI. O’Reilly Media, Inc.</mixed-citation></ref><ref id="scirp.79000-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Monk, S. and Zanolli, R. (2013) Programando O Raspberry PI: Primeiros Passos Com Python. Novatec. https://books.google.com.br/books?id=4VtzmwEACAAJi</mixed-citation></ref><ref id="scirp.79000-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Kroenke, D. (1999) Banco de dados: Fundamentos, projeto e implementa&amp;atilde;o. Livros Técnicos e Científicos.</mixed-citation></ref><ref id="scirp.79000-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Luiz, R. and Da, C.D. (2014) Plone 4: Administrando Servidores 4x naprática.</mixed-citation></ref><ref id="scirp.79000-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Goldemberg, J. and Lucon, O. (2008) Energia, meio ambiente e desenvolvimento. Editora da Universidade de S	&amp;atilde;o Paulo.</mixed-citation></ref><ref id="scirp.79000-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Kunz, A., Higarashi, M.M. and Oliveira, P.D. (2005) Tecnologias de manejo e Tratamento de dejetos de suínos estudadas no brasil. Cadernos de Ciência e Tecnologia, 22, 651-665.</mixed-citation></ref><ref id="scirp.79000-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Palhares, J.C.P. (2008) Biodigest&amp;atilde;o anaeróbia de dejetos de suinos: Aprendendo com o passado para entender o presente e garantir o futuro. Embrapa Suinnos e Aves, I Curso sobre Uso de Biodigestores no Tratamento de Dejetos de Suinnos. Concórdia, Sc, v. 20.</mixed-citation></ref><ref id="scirp.79000-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Silva, F.F.M., Bertini, L.M., Alves, L.A., Barbosa, P.T.,Moura, L.F. and Macêdo, C.S. (2015) Implica&amp;otilde;es e possibilidades para o ensino a partir da constru&amp;atilde;o de biodigestor no ifrn-campus apodi. HOLOS, 6, 315-327.  
https://doi.org/10.15628/holos.2015.3091</mixed-citation></ref><ref id="scirp.79000-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Borges, L. (2014) Python para Desenvolvedores. Novatec Editor.</mixed-citation></ref><ref id="scirp.79000-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Lopes, S. (2016) Aplica&amp;otilde;es mobile híbridas com Cordova e PhoneGap. Casa do Código.</mixed-citation></ref><ref id="scirp.79000-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Pereira, M. (2014) AngularJS: Uma abordagemprática e objetiva. NovatecEditora.  
https://books.google.com.br/books?id=MUelBQAAQBAJ</mixed-citation></ref><ref id="scirp.79000-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Arruda, Cesar Alessandro Oliveira, et al. (2010) Aplica&amp;atilde;o de dejetosuíno e estrutura de um LatossoloVermelho sob semeaduradireta. Ci. Agrotec, 34, 804-809.  
https://doi.org/10.1590/S1413-70542010000400002</mixed-citation></ref></ref-list></back></article>