**2. Biomedical application of embedded systems**

Embedded System Programming Tools can be listed as follows;


Embedded System Programming differs from other programming systems due to some features. Embedded software should use minimum program memory. Embedded software should not run slower than the system requires. It should be easy to interfere with embedded software and have high readability [4–12].

The most popular Embedded system medical applications are Imaging Devices. Although the working principles differ from each other, the common feature of imaging units such as MR, CT, PET (positron emission Tomography), US is that they are an embedded system.

Another example of medical applications of embedded systems is defibrillators. Defibrillators, a machine used to monitor a patient's heartbeat for an irregular pattern, and usually return the heartbeat to a normal pattern when an abnormal heartbeat is detected, are a useful example of biomedical applications of embedded systems.

Digital Flow sensors that monitor a patient's respiratory system, Blood pressure device and glucose test set, which is effective in detecting systolic and diastolic pressure of the human body, Fetal heart monitoring machine used during pregnancy, childbirth and childbirth to monitor the pulse of babies, device designs that allow users to monitor values such as heart rate, blood pressure, glucoses is an example of embedded systems.

**95**

**Figure 1.**

*NVIDIA Jetson solutions [8].*

*Biomedical Applications with Using Embedded Systems DOI: http://dx.doi.org/10.5772/intechopen.96070*

reduction in size and increase in processing power.

can help provide better treatments and medications to patients.

there is no extra product expense other than the purchased kit.

"embedded" computers there.

urgent need.

found practically.

other areas (**Figure 1**).

**2.1 Embedded systems hardware**

can do many tasks at the same time.

It would not be wrong to say that there are computers in all devices. All into

patient data and provide data processing with overwritten software, with the

Small devices with embedded systems such as Raspberry pi, Ardunio can collect

Similar small devices with embedded systems can make control decisions that

Small designs with microcontrollers, sensors, motor drivers, sensors are also increasing. It provides practical and inexpensive solutions applied in case of any

For example, studies such as 'the camera application that monitors social distance' has led us to better understand the importance of "social distance" that should exist between people, as it is transmitted by contact such as Covid19 and other infectious diseases. The progress, which has improved with vaccination studies all over the world, has now brought the quarantine process to an end and the return to social life. However, if the social distance is not maintained for infectious diseases, which are added every year, unfortunately, there will always be the risk of suffering from such diseases. Therefore, it is very important that we can maintain social distance in areas with high human density. For the solution of the problem, the first products used where practical solutions based on embedded system solutions such as smart phone application applications and smart wristband have been

Another solution to this problem is a software solutions via platform such as web API. But the disadvantage of these is their high cost. Thanks to the program overwritten using solutions such as NVIDIA, integrating the low-cost Intelligent Artificial Intelligence, Computer the existing cameras of the workplaces and providing real-time monitoring of social distance is another embedded system solution of the problem. Since it will be a product that can be mounted on existing cameras,

Embedded system solutions offer fast, cheap and easily accessible solutions in

Embedded systems have already exceeded the limits of their name. Nowadays everything from smartphones to smart TVs, set top boxes to washing machines is actually an embedded system. They no longer have to perform certain tasks, they

They are electronic systems designed to perform a certain function, microprocessors are used for the central processing unit in systems with low processing load (fire alarm, etc.), while in systems we call hard-real time (systems that will result in the transition from life to death at the smallest delay), micro-processors are used for *Data Acquisition - Recent Advances and Applications in Biomedical Engineering*

constraint dedicated systems [1].

sors, actuators and other interfaces [3].

• Compiler

• Emulators

• Support Software

they are an embedded system.

example of embedded systems.

**2. Biomedical application of embedded systems**

• Integrated Development Environments (IDE)

• Debug Devices and Software (Debugger)

• Testing Software and Devices

Embedded System Programming Tools can be listed as follows;

modules such as memory, input and output modules, sensors, physical output. It is an event that should not be confused with the dedicated system. Embedded systems that are generally smaller size and operate with smaller processor powers. Besides, the dedicated system is a system chosen to do a single work. For example, the library's web server and database server can be kept on separate machines, and if the task of these machines is to host only the web server, or only to provide the database, this is called a dedicated system. There is no size, processor or capacity

Is a programmable device, a combination of development hardware &software; that forms a component of an electrical device [2]. Medical applications of embedded systems are preferred because they are real-time and very fast. Embedded systems are computer systems and we need to know and control all the details and features of this computer system. An embedded system is a combination of both hardware and software, consisting of a microprocessor, memory for storing data and programs, converters microcontroller or digital signal processors (DSP), sen-

Embedded System Programming differs from other programming systems due to some features. Embedded software should use minimum program memory. Embedded software should not run slower than the system requires. It should be easy to interfere with embedded software and have high readability [4–12].

The most popular Embedded system medical applications are Imaging Devices. Although the working principles differ from each other, the common feature of imaging units such as MR, CT, PET (positron emission Tomography), US is that

Another example of medical applications of embedded systems is defibrillators. Defibrillators, a machine used to monitor a patient's heartbeat for an irregular pattern, and usually return the heartbeat to a normal pattern when an abnormal heartbeat is detected, are a useful example of biomedical applications of embedded

Digital Flow sensors that monitor a patient's respiratory system, Blood pressure device and glucose test set, which is effective in detecting systolic and diastolic pressure of the human body, Fetal heart monitoring machine used during pregnancy, childbirth and childbirth to monitor the pulse of babies, device designs that allow users to monitor values such as heart rate, blood pressure, glucoses is an

**94**

systems.

It would not be wrong to say that there are computers in all devices. All into "embedded" computers there.

Small devices with embedded systems such as Raspberry pi, Ardunio can collect patient data and provide data processing with overwritten software, with the reduction in size and increase in processing power.

Similar small devices with embedded systems can make control decisions that can help provide better treatments and medications to patients.

Small designs with microcontrollers, sensors, motor drivers, sensors are also increasing. It provides practical and inexpensive solutions applied in case of any urgent need.

For example, studies such as 'the camera application that monitors social distance' has led us to better understand the importance of "social distance" that should exist between people, as it is transmitted by contact such as Covid19 and other infectious diseases. The progress, which has improved with vaccination studies all over the world, has now brought the quarantine process to an end and the return to social life. However, if the social distance is not maintained for infectious diseases, which are added every year, unfortunately, there will always be the risk of suffering from such diseases. Therefore, it is very important that we can maintain social distance in areas with high human density. For the solution of the problem, the first products used where practical solutions based on embedded system solutions such as smart phone application applications and smart wristband have been found practically.

Another solution to this problem is a software solutions via platform such as web API. But the disadvantage of these is their high cost. Thanks to the program overwritten using solutions such as NVIDIA, integrating the low-cost Intelligent Artificial Intelligence, Computer the existing cameras of the workplaces and providing real-time monitoring of social distance is another embedded system solution of the problem. Since it will be a product that can be mounted on existing cameras, there is no extra product expense other than the purchased kit.

Embedded system solutions offer fast, cheap and easily accessible solutions in other areas (**Figure 1**).

#### **2.1 Embedded systems hardware**

Embedded systems have already exceeded the limits of their name. Nowadays everything from smartphones to smart TVs, set top boxes to washing machines is actually an embedded system. They no longer have to perform certain tasks, they can do many tasks at the same time.

They are electronic systems designed to perform a certain function, microprocessors are used for the central processing unit in systems with low processing load (fire alarm, etc.), while in systems we call hard-real time (systems that will result in the transition from life to death at the smallest delay), micro-processors are used for

**Figure 1.** *NVIDIA Jetson solutions [8].*

the central processing unit. Systems used for reading sensors such as temperature, humidity, gas, flow, ultrasonic. B, etc. are also embedded systems. This world can be stepped into with affordable and easy-to-use embedded systems (Arduino) for hobbyists.

Embedded systems are systems that host low power processors within high frequency processors, have an operating system or direct, real-time management infrastructure within their related processes, and provide control of sensors and trainers. Although the volume of transactions generally remains lower than computer systems, it has started to close this gap in the development of today's technology and industry 4.0 studies. Embedded system design takes up a lot of space at the point of performing operations-based activities such as rationalizing robotic systems, artificial intelligence and machine learning.

Survey studies have shown that the most important software/hardware tools are, respectively; Oscilloscope, Debugger, Compiler/assembler, IDE, Logic analyzer, JTAG/BDM, Software libraries, Linux tools, ICE, Configuration Management tools, Static Analysis tools, Software drivers etc. It is necessary to know very well about digital electronics hardware. The devices studied have been created with logic gates and every subject of digital electronics, every basic circuit is located on microcontrollers and digital devices. Since the devices used are not simple devices, it is not possible to understand them with half information.

Embedded systems are computer systems and it is necessary to know and control all the details and features of this computer system. We see that many of them are indexed to a hardware and describe embedded systems through that hardware.

Hardware components are basically as follows;


Microcontrollers, one of the basic parts of embedded systems, can be defined as a single chip computer. They contain a microprocessor, memory, digital inputsoutputs and other peripherals (timer, interrupt, ADC etc.). Some of well known microcontrollers are; RX Family, RL78, 78 K, H8 Family, V850, RH850, STM8, STM32, RA, Synergy, RE R8C.

Advanced embedded systems as it may seem there is no need for an analog electronic information. Basic and practical electronic knowledge can be sufficient.

The software parts are basically collected under 3 main headings; Real time operating system (RTOS), Third party software libraries and Software applications.

A table about the boards used in the design of the embedded system, included in the survey conducted by the Aspencore group in 2017, is below (**Table 1**).

There are indispensable Measuring Instruments for embedded system laboratories in both Biomedical and other fields. These are for example; Digital Oscilloscope, Function Generator, Tabletop Digital Multimeter, Power Supply, Computer, Projector etc. Depending on the design work and studied, needed help tools and measuring instruments varies. For example, while working with **Arduino**, which is a simplified framework designed for artists and designers who are not very interested in electronics and computer science, the measuring instruments needed and those working with sensors may differ (**Figure 2**).

**97**

**Figure 2.**

*Arduino Uno SMD R3 [14].*

**Table 1.**

*Aspencore 2017 survey [13].*

The main factor in Arduino spreading this much is the software part. The Integrated Development Environment (**IDE**) required to develop software on Arduino can be downloaded free from the website. It can be developed easily with the development environment that can run on Windows, Mac and Linux platforms.

*Answers to the question of "Did you start your current embedded design with a development board?" in* 

*Biomedical Applications with Using Embedded Systems DOI: http://dx.doi.org/10.5772/intechopen.96070*

**Development Board Started With (Write-in Answers Only) N = 356 Percent** ST Microelectronics 38 10.7% TI (LaunchPad = 5) 38 10.7% Xilinx 29 8.1% NXP 26 7.3% Microchip 21 5.9% Arduino 20 5.6% Rasberry Pi 15 4.2% BeagleBoard Bone Black 12 3.4% Atmel 10 2.8% Freescale (NXP) 10 2.8% Cypress kits 6 1.7% Renasas 6 1.7% Altera Stratix V DSP Kit 5 1.4% Avnet 5 1.4% Intel Edison 5 1.4% Silicon Labs 4 1.1% Digi 3 0.8% ESP32 3 0.8% MSP430 – TI 3 0.8% Nordic/nRF52-DK 3 0.8%


#### *Biomedical Applications with Using Embedded Systems DOI: http://dx.doi.org/10.5772/intechopen.96070*

#### **Table 1.**

*Data Acquisition - Recent Advances and Applications in Biomedical Engineering*

systems, artificial intelligence and machine learning.

it is not possible to understand them with half information.

Hardware components are basically as follows;

• MCU (MicroController Unit), FPGA, ASIC etc.

• General purpose input–output units (GPIO)

• Communication units

STM32, RA, Synergy, RE R8C.

• System-specific components

hobbyists.

the central processing unit. Systems used for reading sensors such as temperature, humidity, gas, flow, ultrasonic. B, etc. are also embedded systems. This world can be stepped into with affordable and easy-to-use embedded systems (Arduino) for

Embedded systems are systems that host low power processors within high frequency processors, have an operating system or direct, real-time management infrastructure within their related processes, and provide control of sensors and trainers. Although the volume of transactions generally remains lower than computer systems, it has started to close this gap in the development of today's technology and industry 4.0 studies. Embedded system design takes up a lot of space at the point of performing operations-based activities such as rationalizing robotic

Survey studies have shown that the most important software/hardware tools are, respectively; Oscilloscope, Debugger, Compiler/assembler, IDE, Logic analyzer, JTAG/BDM, Software libraries, Linux tools, ICE, Configuration Management tools, Static Analysis tools, Software drivers etc. It is necessary to know very well about digital electronics hardware. The devices studied have been created with logic gates and every subject of digital electronics, every basic circuit is located on microcontrollers and digital devices. Since the devices used are not simple devices,

Embedded systems are computer systems and it is necessary to know and control all the details and features of this computer system. We see that many of them are indexed to a hardware and describe embedded systems through that hardware.

Microcontrollers, one of the basic parts of embedded systems, can be defined as a single chip computer. They contain a microprocessor, memory, digital inputsoutputs and other peripherals (timer, interrupt, ADC etc.). Some of well known microcontrollers are; RX Family, RL78, 78 K, H8 Family, V850, RH850, STM8,

Advanced embedded systems as it may seem there is no need for an analog electronic information. Basic and practical electronic knowledge can be sufficient. The software parts are basically collected under 3 main headings; Real time operating system (RTOS), Third party software libraries and Software applications. A table about the boards used in the design of the embedded system, included in

the survey conducted by the Aspencore group in 2017, is below (**Table 1**). There are indispensable Measuring Instruments for embedded system laboratories in both Biomedical and other fields. These are for example; Digital Oscilloscope, Function Generator, Tabletop Digital Multimeter, Power Supply, Computer, Projector etc. Depending on the design work and studied, needed help tools and measuring instruments varies. For example, while working with **Arduino**, which is a simplified framework designed for artists and designers who are not very interested in electronics and computer science, the measuring instruments needed

and those working with sensors may differ (**Figure 2**).

**96**

*Answers to the question of "Did you start your current embedded design with a development board?" in Aspencore 2017 survey [13].*

**Figure 2.** *Arduino Uno SMD R3 [14].*

The main factor in Arduino spreading this much is the software part. The Integrated Development Environment (**IDE**) required to develop software on Arduino can be downloaded free from the website. It can be developed easily with the development environment that can run on Windows, Mac and Linux platforms.

The Arduino IDE is based on a programming language called Processing and a project called Wiring. In the development environment, which is very easy to use, you can easily compile Arduino programs (called sketch) and upload them to your card. A language similar to C ++ is used as the programming language. Thanks to the existing libraries, many operations and communication between peripherals can be performed easily. One of the Arduino's most powerful features is that it has an extensible library system. Thus, libraries written for new peripherals can be easily integrated.

One of the most beautiful features of the Arduino is that new hardware features can be added with additional cards called "shield". Thanks to these additional cards that are compatible with the Arduino board, it is possible to realize many different projects. Examples of these attachments are modules such as Bluetooth, wifi, motor driver, LCD screen.

**Sensors,** which are another hardware in embedded systems, are designed that can serve many different purposes with the developing technology. These are advanced technology embedded sensor systems such as MEMS/NEMS and optical technologies to be used in Internet applications of objects, Sensors resistant to extreme conditions, Sensors with innovative features (according to which high sensitivity and resolution, cost effective, reliable (robust), Self-calibrating; resistant to errors, losses, deterioration), Intelligent sensor technologies that can be used in the production process, Packaged, long-lasting, directly connected to the cloud, capable of running multiple applications, expandable, easily configurable sensors and components.

#### **2.2 Embedded systems software**

Electronics about to have a lot of information, even to design eye fabulous indoor circuit cards unless you know the computer science genius, will not be a nice software in embedded systems. In fact, the software is now being used for other circuits in embedded system control software. Applications such as image processing, web server, user interface, operating system are now also written for embedded systems.

While working on embedded systems will need to use a high percentage of the C language. Although languages such as Java and C ++ are used in some different areas, and the Assembly is used in applications of hardware that require performance or that do not have a C compiler, generally no language other than C is used. The results of the embedded systems market research conducted by the Aspencore group in 2017, the survey conducted with companies and engineers working in the field of embedded systems showed that the most used languages (**Figure 3**);

The C language is the most preferred because it has both medium and high-level features, increases efficiency by producing less code, is quite common in embedded software libraries, is very well-known, is a compiler for almost all microcontrollers, and access to resources is high.

The most used operating systems in embedded systems are; Embedded Linux, FreeRTOS, In-house/custom, Android, Debian (Linux), Ubuntu, Microsoft (Windows Embedded 7 / Standard), Texas Instruments RTOS, Texas Instruments (DSP/BIOS), Micrium (uC/OS-III), Microsoft (Windows 7 Compact or earlier…), and also Integrity, OSE, SCIOPTA, seL4, Pharos, FreeRTOS, QNX.

Embedded system development is also changing rapidly. While working with microcontrollers with small-sized resources in the past, it is possible to talk about products that reach very high speeds today. Nowadays, subjects such as internet protocols and encryption algorithms appear as new study areas. Naturally, it is

**99**

standard protocols.

**Figure 3.**

(mobile, etc.).

**2.3 Medical device design**

*Biomedical Applications with Using Embedded Systems DOI: http://dx.doi.org/10.5772/intechopen.96070*

becoming a necessity to use ready-made modules on the platforms we work with. As programming becomes increasingly complex, we now need platforms that support us. The structure known as Internet of Things (**IOT**) has modules called "gateways"

*Answers to the question of "My current embedded project is programmed mostly in" in Aspencore 2017 survey [13].*

With the development of new generation communication infrastructure and standards, it is ensured that high value added, user-friendly service, analysis, monitoring, decision-making and control applications are developed by developing equipment that can work with new generation protocol structures and also adapt to

At the same time, these IOT structures have implemented and comply with the standards required to develop manageable, controllable and secure system architectures, to communicate safely with the sensor, to have a high level of service in order not to cause a disruption in production, to support local and foreign standards, to work openly with different platforms when necessary, to have programming intermediates for different applications, to have a scalable and traceable structure, to perform system health monitoring of end units and platform components when necessary must be able to work in all kinds of environments and operating systems

Another attractive point in embedded system software is coding. The minimum area, minimum time, writing is the most appropriate considering the principle of maximum benefit. It is the most appropriate to write with the principle of mini-

Medical device technology, one of the most practical field of embedded hardware and software technology. In addition to the previously mentioned medical imaging systems, Biomedical power units, Clinical and Biotechnological Analyzers, Portable Diagnostic Systems, Mobile Patient Monitoring Systems, Nurse Call

that will connect other modules and devices to the network.

mum space, minimum time and maximum benefit.

*Biomedical Applications with Using Embedded Systems DOI: http://dx.doi.org/10.5772/intechopen.96070*

#### **Figure 3.**

*Data Acquisition - Recent Advances and Applications in Biomedical Engineering*

easily integrated.

driver, LCD screen.

and components.

systems.

**2.2 Embedded systems software**

and access to resources is high.

The Arduino IDE is based on a programming language called Processing and a project called Wiring. In the development environment, which is very easy to use, you can easily compile Arduino programs (called sketch) and upload them to your card. A language similar to C ++ is used as the programming language. Thanks to the existing libraries, many operations and communication between peripherals can be performed easily. One of the Arduino's most powerful features is that it has an extensible library system. Thus, libraries written for new peripherals can be

One of the most beautiful features of the Arduino is that new hardware features can be added with additional cards called "shield". Thanks to these additional cards that are compatible with the Arduino board, it is possible to realize many different projects. Examples of these attachments are modules such as Bluetooth, wifi, motor

**Sensors,** which are another hardware in embedded systems, are designed that

can serve many different purposes with the developing technology. These are advanced technology embedded sensor systems such as MEMS/NEMS and optical technologies to be used in Internet applications of objects, Sensors resistant to extreme conditions, Sensors with innovative features (according to which high sensitivity and resolution, cost effective, reliable (robust), Self-calibrating; resistant to errors, losses, deterioration), Intelligent sensor technologies that can be used in the production process, Packaged, long-lasting, directly connected to the cloud, capable of running multiple applications, expandable, easily configurable sensors

Electronics about to have a lot of information, even to design eye fabulous indoor circuit cards unless you know the computer science genius, will not be a nice software in embedded systems. In fact, the software is now being used for other circuits in embedded system control software. Applications such as image processing, web server, user interface, operating system are now also written for embedded

While working on embedded systems will need to use a high percentage of the C language. Although languages such as Java and C ++ are used in some different areas, and the Assembly is used in applications of hardware that require performance or that do not have a C compiler, generally no language other than C is used. The results of the embedded systems market research conducted by the Aspencore group in 2017, the survey conducted with companies and engineers working in the field of embedded systems showed that the most used languages (**Figure 3**);

The C language is the most preferred because it has both medium and high-level features, increases efficiency by producing less code, is quite common in embedded software libraries, is very well-known, is a compiler for almost all microcontrollers,

The most used operating systems in embedded systems are; Embedded Linux,

Embedded system development is also changing rapidly. While working with microcontrollers with small-sized resources in the past, it is possible to talk about products that reach very high speeds today. Nowadays, subjects such as internet protocols and encryption algorithms appear as new study areas. Naturally, it is

FreeRTOS, In-house/custom, Android, Debian (Linux), Ubuntu, Microsoft (Windows Embedded 7 / Standard), Texas Instruments RTOS, Texas Instruments (DSP/BIOS), Micrium (uC/OS-III), Microsoft (Windows 7 Compact or earlier…),

and also Integrity, OSE, SCIOPTA, seL4, Pharos, FreeRTOS, QNX.

**98**

*Answers to the question of "My current embedded project is programmed mostly in" in Aspencore 2017 survey [13].*

becoming a necessity to use ready-made modules on the platforms we work with. As programming becomes increasingly complex, we now need platforms that support us. The structure known as Internet of Things (**IOT**) has modules called "gateways" that will connect other modules and devices to the network.

With the development of new generation communication infrastructure and standards, it is ensured that high value added, user-friendly service, analysis, monitoring, decision-making and control applications are developed by developing equipment that can work with new generation protocol structures and also adapt to standard protocols.

At the same time, these IOT structures have implemented and comply with the standards required to develop manageable, controllable and secure system architectures, to communicate safely with the sensor, to have a high level of service in order not to cause a disruption in production, to support local and foreign standards, to work openly with different platforms when necessary, to have programming intermediates for different applications, to have a scalable and traceable structure, to perform system health monitoring of end units and platform components when necessary must be able to work in all kinds of environments and operating systems (mobile, etc.).

Another attractive point in embedded system software is coding. The minimum area, minimum time, writing is the most appropriate considering the principle of maximum benefit. It is the most appropriate to write with the principle of minimum space, minimum time and maximum benefit.

#### **2.3 Medical device design**

Medical device technology, one of the most practical field of embedded hardware and software technology. In addition to the previously mentioned medical imaging systems, Biomedical power units, Clinical and Biotechnological Analyzers, Portable Diagnostic Systems, Mobile Patient Monitoring Systems, Nurse Call

Systems, Patient Queue Systems and their designs are also made with embedded system applications.

Apart from academic studies, there is also a large business area in the biomedical field. These medical embedded systems, embedded computing or customer needs for projects should be ready for SBC (Single Board Computer) use. They offer high performance and low cost effective solutions to entrepreneurs, medical staff and patients in the medical sector. Low-power and high-performance portable embedded systems offer many diagnostic functions, save time, aim to reduce overall diagnostic costs.

There is another card that is frequently used in electronic, robotic and biomedical designs like Arduino, it is Raspberry Pi. Arduino does not have an operating system. It can only run programs compiled for the Arduino platform, which means programs, mostly written in C ++. Raspberry Pi usually runs an operating system that is Linux. In other words, it can be called a mini computer with this feature. The Raspberry Pi is the smallest computer. They look quite similar at first glance. Pins, connectors, screw holes etc. In fact, both cards are very, very different from each other. The fact that the ram and microprocessors are much larger makes the Raspberry pi stand out in terms of software. It is an alternative portable computer especially image processing applications in biomedical studies (**Figure 4**).

Medical devices that can perform image processing and many other operations are developed especially with software such as opencv simplecv. For example, working on an image taken with a medical modality is also possible with embedded system solutions. You can perform the software you make on a normal computer on image processing with an embedded system tool such as raspberry pi, arduino, nvidia or a more advanced mini computer or cards. For example, you can perform image processing such as edge detection over the image, thanks to the related software you wrote on the Raspberry pi and a monitor connected to it [16–19].
