SlideShare a Scribd company logo
1 of 5
Download to read offline
R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com
ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38
www.ijera.com 34 | P a g e
Dynamic Simulation of Chemical Kinetics in Microcontroller
Renato Dutra Pereira Filho*, Vitor Furlong**, Jorge Alberto Vieira Costa***
*(College of Chemistry and Food Engineering, Federal University of Rio Grande, Brazil)
** (College of Chemistry and Food Engineering, Federal University of Rio Grande, Brazil)
***(College of Chemistry and Food Engineering, Federal University of Rio Grande, Brazil)
ABSTRACT
Arduino boards are interesting computational tools due to low cost and power consumption, as well as I/O ports,
both analogs and digitals. Yet, small memory and clock frequency with truncation errors may disrupt numerical
processing. This study aimed to design and evaluate the performance of a dynamic simulation based on ODEs in
the Arduino, with three evaluated microprocessors; ATMEGA 328P and 2560, both 8 bits, and SAM3X8E
Atmel ARM CORTEX – 32 bits. The study case was a batch reactor dynamic simulation. The Runge-Kutta 4th
order algorithm was written in C++ and compiled for EPROM utilization. The output was a 115000bit/s serial
connection. Processing time was almost identical for 8 bits architectures, while 32 bits was 25% faster. Without
the serial connection the 8 bits architectures were 16 times faster and the 32 bits was 42 times faster. Error
truncation was similar, since the floating points are done through software. The Arduino platform, despite its
modest hardware, allows simple chemical systems simulation.
Keywords – Arduino, Chemical Reactions, Microcontrollers, Runge-Kutta
I. INTRODUCTION
Mathematical modeling of chemical processes
and digital simulation are useful tools when dealing
with daily chemical engineering situations. Enabling
not only to describe, analyze, evaluate and optimize
plant operations, but also to conceive new process
technologies and/or new industrial unities.
As microcomputers prices decreased and
miniaturization occurred, their popularization began.
This fact has enabled the use of chemical system
simulations analysis as a tool to a broader spectrum
of institutions.
In a similar manner to microcomputers
popularization during the 70's, the current
dissemination of microcontrollers, due to low cost
and energy consumption, as well as, processing
power comparable to earlier full microcomputers,
allows digital simulation in smaller hardware. It
generated a wider range of chemical engineering
simulation platforms for classes, research and
technological development.
However, memory limitations for data and
coding, as well as limitations in numerical precision
due to faulty floating point operations, in these
platforms, such as the Arduino Free Hardware
Platform, may pose as a treat for numerical methods,
inherent to most simulation algorithms.
The objective of this paper is to evaluate the
computational performance of Arduino Boards
regarding processing time, precision and accuracy
for implementations of Runge-Kutta 4th order
numerical solutions to ordinary differential
equations from simple systems with concentrated
parameters. More specifically, the first order
reaction kinetics of a batch reactor. Three Arduino
platforms were evaluated: ATMEGA 328P and
2560, both 8 bits, and SAM3X8E Atmel 32 bits
ARM CORTEX – M3.
The Arduino microcontroller is an open
hardware tool design to be easily integrated to
sensors and actuators. One of its most important
characteristics is how user friendly the coding is to
even non advance developers in hardware
development areas [1].
The platform was conceived in 2005 in the
Ivrea Institute by Barragan, Banzi, Cuartielles,
Mellis, Marino e Zambeti [2]. All moved by the
necessity of teaching basic electronics, in a short
period of time, to design students at the institute [3].
The board gained popularity among hobbyists,
hackers and scientists in small to medium projects.
This resulted in several extension boards (shields) to
enhance the Arduino capabilities [4].
Recently the platform has been applied in
several projects, encompassing fields such as
biomedicine, automation, robotics and engineering
[5,6,7]. A large number of applications are
registered, such as datalogging [8,9,10,11], and
bioprocess automation [12]. Also in a mechanical
engineering application, where Zeno [13] designed
and built a self-leveling platform utilizing low cost
hardware. By using Arduinos, the total cost was less
than US$ 100,00.
The cited applications main focuses are
monitoring, automation and development of
standalone devices, not in simulation. One point that
may explain this behavior is that the board is
RESEARCH ARTICLE OPEN ACCESS
R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com
ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38
www.ijera.com 35 | P a g e
optimized to deal with standalone applications, and
does not possess a I/O interface. Such visual output
must be programmed by the user for each
application. Thus, the utilization of microcontrollers
in digital simulation of chemical processes is
restricted. Especially when compared to other
computational hardware platforms.
The digital simulation field generally demands
a great computational effort, not only forced by the
mathematical system, but also due to the
requirement of running computational packages and
toolboxes alongside the algorithm. One example is
the necessity of running an Artificial Neural
Network Model toolbox with MatLab, such as in the
work of Khaouane et al. [14]. The toolbox provides
faster developments within the computational
application, since the packages are usually well
documented and user friendly, enabling its
utilization by an intermediate user. However,
loading the entire toolbox, even when all its features
are not applied, impairs computational speed.
Gödeke et al. [15] reports that computational
solutions based on ARM (Advanced Reduced
instructions set computer Machine) architectures are
more efficient under an energy utilization point of
view when compared with x86 platforms.
The Arduino platform has also been utilized in
entry level Chemical Engineering classes for
datalogging or small scale automation during
practical lectures [16].
The computing power, associated with the
flexibility of a multipurpose computational system
and standard interface, makes the general
architecture of microcomputers more attractive to
simulations. However, microcontrollers are far more
inexpensive and more robust [4].
.
II. MATERIALS AND METHODS
During the simulations, the performance of
three boards were evaluates; Arduinos Nano
(Provider: Funduino), Mega (Provider: Funduino) e
Due (Provider: Arduino Store). The three boards are
displayed in Fig. 1.
Figure 1 – (A) Arduino Nano, (B) Arduino Mega e
(C) Arduino Due.
The main characteristics of each board are
described on Table 1. The Nano board, is the
smallest of the three, and thus, the one with the least
hardware resources and also the most inexpensive.
The Mega board is an extension of the Arduino Uno
concept, with extra serial ports, more input/output
ports and approximately 8 times more memory than
a Nano board. The most recent board architecture,
among the evaluated, is the Due board. It has a 32
bit processor, more memory, and a clock speed 5
times higher than the 8 bit processors.
The interface was made through a serial
communication, by USB port in 115,000 bit/s.
A notebook was used solely as an output for the
numerical results developed by the Arduino
boards.
Table 1 – Main Characteristics from the Evaluated Arduino Boards
Board Arduino Nano Arduino Mega Arduino Due
Microcontroller ATmega328 ATmega2560 AT91SAM3X8E
Clock Speed (MHz) 16 16 84
Flash Memory (KB) 32 (2 used by boot loader) 256 (8 used by bootloader) 512
SRAM (KB) 2 8 96
EEPROM (KB) 1 4 -
Price (Brazilian
Market - US$)
20,00 40,00 100,00
Architecture 8 bit 8 bit 32 bit - Cortex
R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com
ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38
www.ijera.com 36 | P a g e
The study case was based in modeling an
elementary first-order reaction occurring in an
ideal batch reactor isothermal example [17],
following Equation 1.
A→B 1
The case is the first order differential
equation that describes the concentration
behavior of a generic chemical specie “A”,
according to Equation 2.
dCA= − k⋅ CA
2
Subject to the initial condition
represented by Equation 3.
0AA C=C=t 0 3
The exact solution to the problem was
calculated, according to Equation 4, in order to
evaluate the precision of the numerical solution.
CA= CA0
⋅ e− k⋅ t 4
The numerical method was a Runge-
Kutta 4th order method, according to Balsa
[18], displayed in Equation 5.
yk +1= yk +
hk
6
(K1+2⋅ K2+2⋅ K3+K4)
5
Where the four increments are calculated by Equations 6 through 9.
K1= f (tk , yk) 6
K2= f (tk+
hk
2
, yk+(
hk
2
)⋅K1)
7
K3= f (tk+
hk
2
, yk+(
hk
2
)⋅K2)
8
K4= f (tk+hk , yk+hk⋅ K3) 9
The coding was constructed using the Arduino interface,
version 1.5.4, according to Figure 2.
Figure 2 – Computational Experiment Dynamic Simulator Code
III. RESULTS AND DISCUSSION
Throughout the simulations, it was proven that
the utilization of the Serial interface for results
output greatly limits the processing capacities and
speed. A summary of the simulation speeds are
presented in Table 2. As it was expected, the Due
board was approximately 25% faster when executing
the code.
The memory allocation, even with the relative
small capacity for code and data in the Nano board,
R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com
ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38
www.ijera.com 37 | P a g e
was not a limitation. The entire experiment code
occupied 5572 bytes, with 240 bytes of memory
representing the program global variables
The percentage minimal and maximum errors,
respectively -2,2x10-3% e 5,1x10-3%, were
identical in all three boards.
The numerical solution was very similar among
the boards. The concentration profiles, as well as the
error percentage, were identical in the 8 bits boards,
but differed in the 32 bits board. The results shown
in Figure 3 confirm that the behavior of the
numerical solution in the ODE was very similar in
all Arduino boards.
Table 2 – Processing Times for the Simulations
Processing Time (s) Arduino Nano Arduino Mega Arduino Due
Without Serial Output 4,060 4,190 1,072
2 digits precision display 21,060 21,580 19,148
8 digits precision display 57,886 58,952 42,269
Figure 3 – (A) Concentration Profiles in Numeric Solution on Arduino Nano, Mega and Due; (B)
Numeric Error (%) Profiles on Arduino Nano, Mega and Due.
IV. CONCLUSION
The utilization of boards in rapid prototyping is
extremely welcome. Since its constructive
characteristics are prone to easy utilization, low
energy consumption, low cost, signal acquisition
capacities, digital outputs and the capacity of
emulating analog outputs, making the platform an
excellent experimentation platform.
Regarding the field of dynamic simulation,
even with small computing capacities, the use of
Arduinos boards is a feasible option to emulate
numerical solutions for ordinary differential
equations with concentrated parameters systems.
This is enabled since the deviation between the
numerical and exact solution of the problem was
acceptable, in spite of using simple precision and the
way the floating point is handled.
Processing time was almost identical for 8 bits
architectures, while 32 bits was 25% faster. Without
the serial connection the 8 bits architectures were 16
times faster and the 32 bits was 42 times faster.
These characteristics may represent a step
towards a new technology within process control.
An industrial plant where microcontrollers may be
responsible by not only controlling actuators, but
also by evaluating current state and tuning future
actuations based on predictions made by itself.
V – Nomenclature
A , B - Generic Species
C A - Generic Species A Concentration
k - Kinetic Constant
CA0
- Generic Species A Initial Concentration
R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com
ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38
www.ijera.com 38 | P a g e
yk +1 - Next Value
tk - Current Time
t - Time
yk - Current Value
hk - Iteration Step
K1 , K2 , K3 , K4 - Slope Increments
REFERENCES
[1] LEUNG, K. - A History of the Arduino
Microcontroller – avaliable in
http://www.kenleung.ca/portfolio/arduino-a-
brief-history-3/ (retrieved in 04/10/2014)
[2] GIBB, A. M., New Media Art, Design, And
The Arduino Microcontroller: A Malleable
Pool, Masterʼs Thesis, Pratt Institute, 2010.
[3] BANZI, M.; Getting Started with Arduino,
O'Reilly Media, 2009.
[4] VICENTE, M. J. P.; SARMENTO, M. H.
C.; DECT Shield for Arduino, IFT Lisboa,
2012.
[5] CELA, A., YEBES,J.J.,
ARROYO,R.,BERGASA,L.M.,BAREA,R.,
LÓPEZ,E., Complete low-cost
implementation of a teleoperated control
system for a humanoid robot. Sensors
v.13,2013.
[6] ORTEGA-ZAMORANO, F.,SUBIRATS,
J.L.,JEREZ,J.M.,MOLINA,I., FRANCO,L.,
Implementation of the C-Mantec neural
network constructive algorithm in an arduino
UNO microcontroller. Lect. Notes Comput.
Sci. 7902,80–87, 2013.
[7] KORNUTA,J.A.,NIPPER,M.E.,DIXON,B. ,
Low-cost microcontroller platform for
studying lymphatic biomechanics in
vitro.J.Biomech.46(1),183–186, 2013..
[8] ELMEHRAZ, N.; Design of a Highly
Portable Data Logging Embedded System
for Naturalistic Motorcycle Study,
University of South Florida, 2013;
[9] PURVIS, M.; REMOTE DATA LOGGER
For Photo-Voltaic Research, Murdoch
University, 2013.
[10] BORKAR, C. & XINRONG, L. ;
Development of wireless sensor network
system for indoor air quality monitoring,
North Texas University, 2012,
[11] HLOUPIS, G.; STAVRAKAS, I.;
MOUTZOURIS, K.; ALEXANDRIDIS, A.;
TRIANTIS, D.; WSN Open Source
Development Platform: Application to Green
Learning, Procedia Engineering 25, 1049 –
1052, 2011.
[12] FALK, H.M.; BENZ, H.C.; Monitoring the
anaerobic digestion process, Jacobs
University, 2011.
[13] ZENO, M.J. & GUTIERREZ, E.; Design of
an Autonomous Self Correcting Platform
Using Open Source Hardware, Faculty of
Rensselaer Polytechnic Institute, 2011.
[14] KHAOUANE, L.; BENKORTBI, O.;
HANINI, S. and SI-MOUSSA, C..
Modeling of an industrial process of
pleuromutilin fermentation using feed-
forward neural networks. Brazilian Journal
of Chemical Engineering, vol.30, n.1, pp.
105-116, 2013.
[15] GÖDDEKE, D.; KOMATITSCH, D. ;
GEVELER, M.; RIBBROCK, D.;
RAJOVIC, N.; PUZOVIC, N.; RAMIREZ,
A.; Energy efficiency vs. performance of the
numerical solution of PDEs: An application
study on a low-power ARM-based cluster,
Journal of Computational Physics, Vol. 237,
pp 132-150, 2013
[16] BUTTERFIELD, A.; Use of Arduino
Microcontrollers in Chemical Engineering
Curricula, Proceedings of AICHE Annual
Meeting, 2013.
[17] LUYBEN, W.L.; Process Modeling,
Simulation and Control for Chemical
Engineers, Second edition, McGraw-Hill,
1990.
[18] BALSA, C. – ODE - Equações Diferenciais
Ordinárias (in portuguese) , University of
Bragança
http://www.ipb.pt/~balsa/teaching/MN08/E
DOs_PVI.pdf (retrieved in 04/10/2014).

More Related Content

What's hot

Digital System Design Basics
Digital System Design BasicsDigital System Design Basics
Digital System Design Basicsanishgoel
 
Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1kavya R
 
Designing of telecommand system using system on chip soc for spacecraft contr...
Designing of telecommand system using system on chip soc for spacecraft contr...Designing of telecommand system using system on chip soc for spacecraft contr...
Designing of telecommand system using system on chip soc for spacecraft contr...IAEME Publication
 
FPGA Implementation of Higher Order FIR Filter
FPGA Implementation of Higher Order FIR Filter FPGA Implementation of Higher Order FIR Filter
FPGA Implementation of Higher Order FIR Filter IJECEIAES
 
Smartphone fpga based balloon payload using cots components
Smartphone fpga based balloon payload using cots componentsSmartphone fpga based balloon payload using cots components
Smartphone fpga based balloon payload using cots componentseSAT Journals
 
Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.
Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.
Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.li50916ku
 
RISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPRISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPiosrjce
 
Fpga implementation of multilayer feed forward neural network architecture us...
Fpga implementation of multilayer feed forward neural network architecture us...Fpga implementation of multilayer feed forward neural network architecture us...
Fpga implementation of multilayer feed forward neural network architecture us...Ece Rljit
 

What's hot (9)

Digital System Design Basics
Digital System Design BasicsDigital System Design Basics
Digital System Design Basics
 
Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1
 
Designing of telecommand system using system on chip soc for spacecraft contr...
Designing of telecommand system using system on chip soc for spacecraft contr...Designing of telecommand system using system on chip soc for spacecraft contr...
Designing of telecommand system using system on chip soc for spacecraft contr...
 
FPGA Implementation of Higher Order FIR Filter
FPGA Implementation of Higher Order FIR Filter FPGA Implementation of Higher Order FIR Filter
FPGA Implementation of Higher Order FIR Filter
 
Smartphone fpga based balloon payload using cots components
Smartphone fpga based balloon payload using cots componentsSmartphone fpga based balloon payload using cots components
Smartphone fpga based balloon payload using cots components
 
Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.
Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.
Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.
 
186 193
186 193186 193
186 193
 
RISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSPRISC Implementation Of Digital IIR Filter in DSP
RISC Implementation Of Digital IIR Filter in DSP
 
Fpga implementation of multilayer feed forward neural network architecture us...
Fpga implementation of multilayer feed forward neural network architecture us...Fpga implementation of multilayer feed forward neural network architecture us...
Fpga implementation of multilayer feed forward neural network architecture us...
 

Viewers also liked

Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...
Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...
Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...IJERA Editor
 
Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...
Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...
Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...IJERA Editor
 
Modeling and Fluid Flow Analysis of Wavy Fin Based Automotive Radiator
Modeling and Fluid Flow Analysis of Wavy Fin Based Automotive RadiatorModeling and Fluid Flow Analysis of Wavy Fin Based Automotive Radiator
Modeling and Fluid Flow Analysis of Wavy Fin Based Automotive RadiatorIJERA Editor
 
Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...
Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...
Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...IJERA Editor
 
Defining your-target-product-profile in-vitro-diagnostic-products
Defining your-target-product-profile in-vitro-diagnostic-productsDefining your-target-product-profile in-vitro-diagnostic-products
Defining your-target-product-profile in-vitro-diagnostic-productsNational Institute of Biologics
 
worlwide activities
worlwide activitiesworlwide activities
worlwide activitiesRonald Leske
 
Challenges and Proposed Solutions for Cloud Forensic
Challenges and Proposed Solutions for Cloud ForensicChallenges and Proposed Solutions for Cloud Forensic
Challenges and Proposed Solutions for Cloud ForensicIJERA Editor
 
Echando Raices: Hispanics Building a Life and Legacy in Western New York
Echando Raices: Hispanics Building a Life and Legacy in Western New YorkEchando Raices: Hispanics Building a Life and Legacy in Western New York
Echando Raices: Hispanics Building a Life and Legacy in Western New YorkThe Buffalo History Museum
 
The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...
The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...
The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...IJERA Editor
 
The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...
The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...
The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...IJERA Editor
 
μυστράς στοιχεία αρχιτεκτονικής
μυστράς στοιχεία αρχιτεκτονικήςμυστράς στοιχεία αρχιτεκτονικής
μυστράς στοιχεία αρχιτεκτονικήςTheod13
 
Bamboo Reinforced Concrete Truss Bridge for Rural Infrastructure
Bamboo Reinforced Concrete Truss Bridge for Rural InfrastructureBamboo Reinforced Concrete Truss Bridge for Rural Infrastructure
Bamboo Reinforced Concrete Truss Bridge for Rural InfrastructureIJERA Editor
 
Growth Processes for a pulse of leptin in fasting human subjects
Growth Processes for a pulse of leptin in fasting human subjectsGrowth Processes for a pulse of leptin in fasting human subjects
Growth Processes for a pulse of leptin in fasting human subjectsIJERA Editor
 

Viewers also liked (20)

Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...
Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...
Cost Comparative Study On Steel Frame Folded Plate Roofing System Vs Conventi...
 
Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...
Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...
Mathematical Modeling of Bingham Plastic Model of Blood Flow Through Stenotic...
 
Modeling and Fluid Flow Analysis of Wavy Fin Based Automotive Radiator
Modeling and Fluid Flow Analysis of Wavy Fin Based Automotive RadiatorModeling and Fluid Flow Analysis of Wavy Fin Based Automotive Radiator
Modeling and Fluid Flow Analysis of Wavy Fin Based Automotive Radiator
 
Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...
Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...
Identification Of Soil Erosion Prone Zones Using Geomatics Technology In Part...
 
Defining your-target-product-profile in-vitro-diagnostic-products
Defining your-target-product-profile in-vitro-diagnostic-productsDefining your-target-product-profile in-vitro-diagnostic-products
Defining your-target-product-profile in-vitro-diagnostic-products
 
Fais Credits 1
Fais Credits 1Fais Credits 1
Fais Credits 1
 
worlwide activities
worlwide activitiesworlwide activities
worlwide activities
 
Locii
LociiLocii
Locii
 
Challenges and Proposed Solutions for Cloud Forensic
Challenges and Proposed Solutions for Cloud ForensicChallenges and Proposed Solutions for Cloud Forensic
Challenges and Proposed Solutions for Cloud Forensic
 
Echando Raices: Hispanics Building a Life and Legacy in Western New York
Echando Raices: Hispanics Building a Life and Legacy in Western New YorkEchando Raices: Hispanics Building a Life and Legacy in Western New York
Echando Raices: Hispanics Building a Life and Legacy in Western New York
 
The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...
The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...
The Inherent Reactor Kinetics for Transformation of Geniposidic Acid from Gen...
 
The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...
The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...
The Investigation Of Utilizing Rapeseed Flowers Oil As A Reliable Feedstock T...
 
μυστράς στοιχεία αρχιτεκτονικής
μυστράς στοιχεία αρχιτεκτονικήςμυστράς στοιχεία αρχιτεκτονικής
μυστράς στοιχεία αρχιτεκτονικής
 
Opuscolo-ART-BONUS
Opuscolo-ART-BONUSOpuscolo-ART-BONUS
Opuscolo-ART-BONUS
 
Bamboo Reinforced Concrete Truss Bridge for Rural Infrastructure
Bamboo Reinforced Concrete Truss Bridge for Rural InfrastructureBamboo Reinforced Concrete Truss Bridge for Rural Infrastructure
Bamboo Reinforced Concrete Truss Bridge for Rural Infrastructure
 
Growth Processes for a pulse of leptin in fasting human subjects
Growth Processes for a pulse of leptin in fasting human subjectsGrowth Processes for a pulse of leptin in fasting human subjects
Growth Processes for a pulse of leptin in fasting human subjects
 
Appendix 11
Appendix 11Appendix 11
Appendix 11
 
белашов
белашовбелашов
белашов
 
Laos ulke raporu_2013
Laos ulke raporu_2013Laos ulke raporu_2013
Laos ulke raporu_2013
 
Kosova ulke raporu_2013
Kosova ulke raporu_2013Kosova ulke raporu_2013
Kosova ulke raporu_2013
 

Similar to Dynamic Simulation of Chemical Kinetics in Microcontroller

Casp report
Casp reportCasp report
Casp reportqudhuqdh
 
Freertos based environmental data acquisition using arm cortex m4 f core
Freertos based environmental data acquisition using arm cortex m4 f coreFreertos based environmental data acquisition using arm cortex m4 f core
Freertos based environmental data acquisition using arm cortex m4 f coreeSAT Journals
 
The Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging SystemThe Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging SystemMelissa Luster
 
Design Efficient Wireless Monitoring Platform for Recycling Point Spots
Design Efficient Wireless Monitoring Platform for Recycling Point SpotsDesign Efficient Wireless Monitoring Platform for Recycling Point Spots
Design Efficient Wireless Monitoring Platform for Recycling Point SpotsIJMTST Journal
 
Iaetsd rtos based electronics industrial
Iaetsd rtos based electronics industrialIaetsd rtos based electronics industrial
Iaetsd rtos based electronics industrialIaetsd Iaetsd
 
Design & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOTDesign & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOTIRJET Journal
 
Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...IRJET Journal
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...ecwayerode
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...Ecwaytech
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...Ecwayt
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...Ecway2004
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...Ecwaytech
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...Ecwaytechnoz
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...Ecwaytechnoz
 
Driving cycle tracking device big data storing and management
Driving cycle tracking device big data storing and managementDriving cycle tracking device big data storing and management
Driving cycle tracking device big data storing and managementIJECEIAES
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Editor IJARCET
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Editor IJARCET
 
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET Journal
 

Similar to Dynamic Simulation of Chemical Kinetics in Microcontroller (20)

CEAZA mega board: an open-source data logger for scientists
CEAZA mega board: an open-source data logger for scientistsCEAZA mega board: an open-source data logger for scientists
CEAZA mega board: an open-source data logger for scientists
 
Casp report
Casp reportCasp report
Casp report
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Freertos based environmental data acquisition using arm cortex m4 f core
Freertos based environmental data acquisition using arm cortex m4 f coreFreertos based environmental data acquisition using arm cortex m4 f core
Freertos based environmental data acquisition using arm cortex m4 f core
 
The Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging SystemThe Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging System
 
Design Efficient Wireless Monitoring Platform for Recycling Point Spots
Design Efficient Wireless Monitoring Platform for Recycling Point SpotsDesign Efficient Wireless Monitoring Platform for Recycling Point Spots
Design Efficient Wireless Monitoring Platform for Recycling Point Spots
 
Iaetsd rtos based electronics industrial
Iaetsd rtos based electronics industrialIaetsd rtos based electronics industrial
Iaetsd rtos based electronics industrial
 
Design & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOTDesign & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOT
 
Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...An embedded systems laboratory to support rapid prototyping of robotics and t...
An embedded systems laboratory to support rapid prototyping of robotics and t...
 
Driving cycle tracking device big data storing and management
Driving cycle tracking device big data storing and managementDriving cycle tracking device big data storing and management
Driving cycle tracking device big data storing and management
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397
 
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
 

Recently uploaded

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Dynamic Simulation of Chemical Kinetics in Microcontroller

  • 1. R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38 www.ijera.com 34 | P a g e Dynamic Simulation of Chemical Kinetics in Microcontroller Renato Dutra Pereira Filho*, Vitor Furlong**, Jorge Alberto Vieira Costa*** *(College of Chemistry and Food Engineering, Federal University of Rio Grande, Brazil) ** (College of Chemistry and Food Engineering, Federal University of Rio Grande, Brazil) ***(College of Chemistry and Food Engineering, Federal University of Rio Grande, Brazil) ABSTRACT Arduino boards are interesting computational tools due to low cost and power consumption, as well as I/O ports, both analogs and digitals. Yet, small memory and clock frequency with truncation errors may disrupt numerical processing. This study aimed to design and evaluate the performance of a dynamic simulation based on ODEs in the Arduino, with three evaluated microprocessors; ATMEGA 328P and 2560, both 8 bits, and SAM3X8E Atmel ARM CORTEX – 32 bits. The study case was a batch reactor dynamic simulation. The Runge-Kutta 4th order algorithm was written in C++ and compiled for EPROM utilization. The output was a 115000bit/s serial connection. Processing time was almost identical for 8 bits architectures, while 32 bits was 25% faster. Without the serial connection the 8 bits architectures were 16 times faster and the 32 bits was 42 times faster. Error truncation was similar, since the floating points are done through software. The Arduino platform, despite its modest hardware, allows simple chemical systems simulation. Keywords – Arduino, Chemical Reactions, Microcontrollers, Runge-Kutta I. INTRODUCTION Mathematical modeling of chemical processes and digital simulation are useful tools when dealing with daily chemical engineering situations. Enabling not only to describe, analyze, evaluate and optimize plant operations, but also to conceive new process technologies and/or new industrial unities. As microcomputers prices decreased and miniaturization occurred, their popularization began. This fact has enabled the use of chemical system simulations analysis as a tool to a broader spectrum of institutions. In a similar manner to microcomputers popularization during the 70's, the current dissemination of microcontrollers, due to low cost and energy consumption, as well as, processing power comparable to earlier full microcomputers, allows digital simulation in smaller hardware. It generated a wider range of chemical engineering simulation platforms for classes, research and technological development. However, memory limitations for data and coding, as well as limitations in numerical precision due to faulty floating point operations, in these platforms, such as the Arduino Free Hardware Platform, may pose as a treat for numerical methods, inherent to most simulation algorithms. The objective of this paper is to evaluate the computational performance of Arduino Boards regarding processing time, precision and accuracy for implementations of Runge-Kutta 4th order numerical solutions to ordinary differential equations from simple systems with concentrated parameters. More specifically, the first order reaction kinetics of a batch reactor. Three Arduino platforms were evaluated: ATMEGA 328P and 2560, both 8 bits, and SAM3X8E Atmel 32 bits ARM CORTEX – M3. The Arduino microcontroller is an open hardware tool design to be easily integrated to sensors and actuators. One of its most important characteristics is how user friendly the coding is to even non advance developers in hardware development areas [1]. The platform was conceived in 2005 in the Ivrea Institute by Barragan, Banzi, Cuartielles, Mellis, Marino e Zambeti [2]. All moved by the necessity of teaching basic electronics, in a short period of time, to design students at the institute [3]. The board gained popularity among hobbyists, hackers and scientists in small to medium projects. This resulted in several extension boards (shields) to enhance the Arduino capabilities [4]. Recently the platform has been applied in several projects, encompassing fields such as biomedicine, automation, robotics and engineering [5,6,7]. A large number of applications are registered, such as datalogging [8,9,10,11], and bioprocess automation [12]. Also in a mechanical engineering application, where Zeno [13] designed and built a self-leveling platform utilizing low cost hardware. By using Arduinos, the total cost was less than US$ 100,00. The cited applications main focuses are monitoring, automation and development of standalone devices, not in simulation. One point that may explain this behavior is that the board is RESEARCH ARTICLE OPEN ACCESS
  • 2. R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38 www.ijera.com 35 | P a g e optimized to deal with standalone applications, and does not possess a I/O interface. Such visual output must be programmed by the user for each application. Thus, the utilization of microcontrollers in digital simulation of chemical processes is restricted. Especially when compared to other computational hardware platforms. The digital simulation field generally demands a great computational effort, not only forced by the mathematical system, but also due to the requirement of running computational packages and toolboxes alongside the algorithm. One example is the necessity of running an Artificial Neural Network Model toolbox with MatLab, such as in the work of Khaouane et al. [14]. The toolbox provides faster developments within the computational application, since the packages are usually well documented and user friendly, enabling its utilization by an intermediate user. However, loading the entire toolbox, even when all its features are not applied, impairs computational speed. Gödeke et al. [15] reports that computational solutions based on ARM (Advanced Reduced instructions set computer Machine) architectures are more efficient under an energy utilization point of view when compared with x86 platforms. The Arduino platform has also been utilized in entry level Chemical Engineering classes for datalogging or small scale automation during practical lectures [16]. The computing power, associated with the flexibility of a multipurpose computational system and standard interface, makes the general architecture of microcomputers more attractive to simulations. However, microcontrollers are far more inexpensive and more robust [4]. . II. MATERIALS AND METHODS During the simulations, the performance of three boards were evaluates; Arduinos Nano (Provider: Funduino), Mega (Provider: Funduino) e Due (Provider: Arduino Store). The three boards are displayed in Fig. 1. Figure 1 – (A) Arduino Nano, (B) Arduino Mega e (C) Arduino Due. The main characteristics of each board are described on Table 1. The Nano board, is the smallest of the three, and thus, the one with the least hardware resources and also the most inexpensive. The Mega board is an extension of the Arduino Uno concept, with extra serial ports, more input/output ports and approximately 8 times more memory than a Nano board. The most recent board architecture, among the evaluated, is the Due board. It has a 32 bit processor, more memory, and a clock speed 5 times higher than the 8 bit processors. The interface was made through a serial communication, by USB port in 115,000 bit/s. A notebook was used solely as an output for the numerical results developed by the Arduino boards. Table 1 – Main Characteristics from the Evaluated Arduino Boards Board Arduino Nano Arduino Mega Arduino Due Microcontroller ATmega328 ATmega2560 AT91SAM3X8E Clock Speed (MHz) 16 16 84 Flash Memory (KB) 32 (2 used by boot loader) 256 (8 used by bootloader) 512 SRAM (KB) 2 8 96 EEPROM (KB) 1 4 - Price (Brazilian Market - US$) 20,00 40,00 100,00 Architecture 8 bit 8 bit 32 bit - Cortex
  • 3. R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38 www.ijera.com 36 | P a g e The study case was based in modeling an elementary first-order reaction occurring in an ideal batch reactor isothermal example [17], following Equation 1. A→B 1 The case is the first order differential equation that describes the concentration behavior of a generic chemical specie “A”, according to Equation 2. dCA= − k⋅ CA 2 Subject to the initial condition represented by Equation 3. 0AA C=C=t 0 3 The exact solution to the problem was calculated, according to Equation 4, in order to evaluate the precision of the numerical solution. CA= CA0 ⋅ e− k⋅ t 4 The numerical method was a Runge- Kutta 4th order method, according to Balsa [18], displayed in Equation 5. yk +1= yk + hk 6 (K1+2⋅ K2+2⋅ K3+K4) 5 Where the four increments are calculated by Equations 6 through 9. K1= f (tk , yk) 6 K2= f (tk+ hk 2 , yk+( hk 2 )⋅K1) 7 K3= f (tk+ hk 2 , yk+( hk 2 )⋅K2) 8 K4= f (tk+hk , yk+hk⋅ K3) 9 The coding was constructed using the Arduino interface, version 1.5.4, according to Figure 2. Figure 2 – Computational Experiment Dynamic Simulator Code III. RESULTS AND DISCUSSION Throughout the simulations, it was proven that the utilization of the Serial interface for results output greatly limits the processing capacities and speed. A summary of the simulation speeds are presented in Table 2. As it was expected, the Due board was approximately 25% faster when executing the code. The memory allocation, even with the relative small capacity for code and data in the Nano board,
  • 4. R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38 www.ijera.com 37 | P a g e was not a limitation. The entire experiment code occupied 5572 bytes, with 240 bytes of memory representing the program global variables The percentage minimal and maximum errors, respectively -2,2x10-3% e 5,1x10-3%, were identical in all three boards. The numerical solution was very similar among the boards. The concentration profiles, as well as the error percentage, were identical in the 8 bits boards, but differed in the 32 bits board. The results shown in Figure 3 confirm that the behavior of the numerical solution in the ODE was very similar in all Arduino boards. Table 2 – Processing Times for the Simulations Processing Time (s) Arduino Nano Arduino Mega Arduino Due Without Serial Output 4,060 4,190 1,072 2 digits precision display 21,060 21,580 19,148 8 digits precision display 57,886 58,952 42,269 Figure 3 – (A) Concentration Profiles in Numeric Solution on Arduino Nano, Mega and Due; (B) Numeric Error (%) Profiles on Arduino Nano, Mega and Due. IV. CONCLUSION The utilization of boards in rapid prototyping is extremely welcome. Since its constructive characteristics are prone to easy utilization, low energy consumption, low cost, signal acquisition capacities, digital outputs and the capacity of emulating analog outputs, making the platform an excellent experimentation platform. Regarding the field of dynamic simulation, even with small computing capacities, the use of Arduinos boards is a feasible option to emulate numerical solutions for ordinary differential equations with concentrated parameters systems. This is enabled since the deviation between the numerical and exact solution of the problem was acceptable, in spite of using simple precision and the way the floating point is handled. Processing time was almost identical for 8 bits architectures, while 32 bits was 25% faster. Without the serial connection the 8 bits architectures were 16 times faster and the 32 bits was 42 times faster. These characteristics may represent a step towards a new technology within process control. An industrial plant where microcontrollers may be responsible by not only controlling actuators, but also by evaluating current state and tuning future actuations based on predictions made by itself. V – Nomenclature A , B - Generic Species C A - Generic Species A Concentration k - Kinetic Constant CA0 - Generic Species A Initial Concentration
  • 5. R. Dutra Pereira Filho et al. Int. Journal of Engineering Research and Applications www.ijera.com ISSN : 2248-9622, Vol. 4, Issue 12( Part 6), December 2014, pp.34-38 www.ijera.com 38 | P a g e yk +1 - Next Value tk - Current Time t - Time yk - Current Value hk - Iteration Step K1 , K2 , K3 , K4 - Slope Increments REFERENCES [1] LEUNG, K. - A History of the Arduino Microcontroller – avaliable in http://www.kenleung.ca/portfolio/arduino-a- brief-history-3/ (retrieved in 04/10/2014) [2] GIBB, A. M., New Media Art, Design, And The Arduino Microcontroller: A Malleable Pool, Masterʼs Thesis, Pratt Institute, 2010. [3] BANZI, M.; Getting Started with Arduino, O'Reilly Media, 2009. [4] VICENTE, M. J. P.; SARMENTO, M. H. C.; DECT Shield for Arduino, IFT Lisboa, 2012. [5] CELA, A., YEBES,J.J., ARROYO,R.,BERGASA,L.M.,BAREA,R., LÓPEZ,E., Complete low-cost implementation of a teleoperated control system for a humanoid robot. Sensors v.13,2013. [6] ORTEGA-ZAMORANO, F.,SUBIRATS, J.L.,JEREZ,J.M.,MOLINA,I., FRANCO,L., Implementation of the C-Mantec neural network constructive algorithm in an arduino UNO microcontroller. Lect. Notes Comput. Sci. 7902,80–87, 2013. [7] KORNUTA,J.A.,NIPPER,M.E.,DIXON,B. , Low-cost microcontroller platform for studying lymphatic biomechanics in vitro.J.Biomech.46(1),183–186, 2013.. [8] ELMEHRAZ, N.; Design of a Highly Portable Data Logging Embedded System for Naturalistic Motorcycle Study, University of South Florida, 2013; [9] PURVIS, M.; REMOTE DATA LOGGER For Photo-Voltaic Research, Murdoch University, 2013. [10] BORKAR, C. & XINRONG, L. ; Development of wireless sensor network system for indoor air quality monitoring, North Texas University, 2012, [11] HLOUPIS, G.; STAVRAKAS, I.; MOUTZOURIS, K.; ALEXANDRIDIS, A.; TRIANTIS, D.; WSN Open Source Development Platform: Application to Green Learning, Procedia Engineering 25, 1049 – 1052, 2011. [12] FALK, H.M.; BENZ, H.C.; Monitoring the anaerobic digestion process, Jacobs University, 2011. [13] ZENO, M.J. & GUTIERREZ, E.; Design of an Autonomous Self Correcting Platform Using Open Source Hardware, Faculty of Rensselaer Polytechnic Institute, 2011. [14] KHAOUANE, L.; BENKORTBI, O.; HANINI, S. and SI-MOUSSA, C.. Modeling of an industrial process of pleuromutilin fermentation using feed- forward neural networks. Brazilian Journal of Chemical Engineering, vol.30, n.1, pp. 105-116, 2013. [15] GÖDDEKE, D.; KOMATITSCH, D. ; GEVELER, M.; RIBBROCK, D.; RAJOVIC, N.; PUZOVIC, N.; RAMIREZ, A.; Energy efficiency vs. performance of the numerical solution of PDEs: An application study on a low-power ARM-based cluster, Journal of Computational Physics, Vol. 237, pp 132-150, 2013 [16] BUTTERFIELD, A.; Use of Arduino Microcontrollers in Chemical Engineering Curricula, Proceedings of AICHE Annual Meeting, 2013. [17] LUYBEN, W.L.; Process Modeling, Simulation and Control for Chemical Engineers, Second edition, McGraw-Hill, 1990. [18] BALSA, C. – ODE - Equações Diferenciais Ordinárias (in portuguese) , University of Bragança http://www.ipb.pt/~balsa/teaching/MN08/E DOs_PVI.pdf (retrieved in 04/10/2014).