There are two main parts of the software structure and they
are device layer and application layer. The device layer is used
to drive hardware and the application layer is for user to
visualize the ECG signal. For programming the
microcontroller, integrated development environment provided
by the Arduino platform is used. An Android application and a
software for laptop is developed by processing which is an
open source programming language and integrated
development environment IDE. We used Processing IDE of
version 2.21. For receiving serial data from Bluetooth module,
BtSerial and Ketai library was used [14-16]. For developing the
software used in laptop serial library of processing was used to
receive the data from Arduino Uno. ECG signal is visualized
using line() function [14-15]. For storing the ECG signal
println() function was used, which creates a txt file and save
the values received from Arduino ADC