scholarly journals Unjuk Kerja GPIO, PWM, ADC dan Timer pada Mikrokontroler STM32F103, ESP32S dan ATMega328

JURNAL ELTEK ◽  
2021 ◽  
Vol 19 (2) ◽  
pp. 73
Author(s):  
Fatkhur Rohman ◽  
Nurhadi Nurhadi ◽  
Mira Esculenta Martawati

Perangkat embedded system pada masa sekarang memiliki banyak pilihan terhadap jenis mikrokontroler yang sesuai dengan kebutuhan. Hal ini menjadi tantangan tersendiri bagi pengguna ketika diharuskan untuk memilih salah satu jenis mikrokontroler tersebut. Sebagai contoh permasalahan apakah mikrokontroler yang telah dipilih tersebut memiliki sejumlah pin GPIO yang diinginkan, dengan frekuensi switching yang tinggi, berapakah jumlah kanal, resolusi, linieritas dan durasi konversi ADC, bagaimana kemampuan peripheral internal DAC, Timer dan PWM yang bisa dibangkitkan dari mikrokontroler tersebut. Penelitian ini telah membandingkan setidaknya 4 peripheral internal utama yang dimiliki oleh 3 jenis mikrokontroler. Metode yang dilakukan adalah dengan menguji karakteristik GPIO, PWM, TIMER dan ADC pada 3 jenis mikrokontroler yaitu Arduino ATMega328, STM32F103C8 dan ESP32. Eksperiment dilakukan dengan mengevaluasi frekuensi switching digital ouput, mengevaluasi resolusi sinyal hasil konversi ADC, mengevaluasi ketepatan hasil instruksi delay berkaitan dengan timer program dan waktu konversi sinyal DAC semuanya dilakukan pada masing-masing mikrokontroler. Hasil akhir dari penelitian ini menunjukkan, mikrokontroler ESP32 memiliki unjuk kerja GPIO, PWM, TIMER dan ADC terbaik apabila dibandingkan dengan jenis lainnya. Penelitian ini juga membuktikan integrasi FreeRTOS pada Framework Arduino bisa berfungsi dengan optimal meskipun mikrokontroler berjalan pada 2 task yang berbeda di 2 core CPU yang bekerja secara pararel. Frekuensi switching digital output pada ESP32 mampu mencapai 3MHz, waktu konversi ADC hanya 5,7us dan DAC hanya 3,7us.   Today's embedded systems have many choices for the type of microcontroller that suits the needs. This is a challenge in itself for users when required to choose one type of microcontroller. For example, the problem of whether the selected microcontroller has the desired number of GPIO pins, with a high switching frequency, what is the number of channels, resolution, linearity, and duration of the ADC conversion, what is the ability of the internal DAC, Timer and PWM peripherals that can be generated from the microcontroller. This study has compared at least 4 main internal peripherals owned by 3 types of microcontrollers. The method used is to test the characteristics of the GPIO, PWM, TIMER, and ADC on 3 types of microcontrollers, namely Arduino ATMega328, STM32F103C8, and ESP32. The experiment was carried out by evaluating the digital output switching frequency, evaluating the signal resolution of the ADC conversion result, evaluating the accuracy of the delay instruction results related to the program timer and DAC signal conversion time, all of which were carried out on each microcontroller. The final results of this study indicate that the ESP32 microcontroller has the best GPIO, PWM, TIMER, and ADC performance when compared to other types. This research also proves that the FreeRTOS integration on the Arduino Framework can function optimally even though the microcontroller runs on 2 different tasks on 2 CPU cores that work in parallel. The digital output switching frequency on the ESP32 is capable of reaching 3MHz, the ADC conversion time is only 5.7us and the DAC is the only 3.7us.

10.28945/3391 ◽  
2009 ◽  
Author(s):  
Moshe Pelleh

In our world, where most systems become embedded systems, the approach of designing embedded systems is still frequently similar to the approach of designing organic systems (or not embedded systems). An organic system, like a personal computer or a work station, must be able to run any task submitted to it at any time (with certain constrains depending on the machine). Consequently, it must have a sophisticated general purpose Operating System (OS) to schedule, dispatch, maintain and monitor the tasks and assist them in special cases (particularly communication and synchronization between them and with external devices). These OSs require an overhead on the memory, on the cache and on the run time. Moreover, generally they are task oriented rather than machine oriented; therefore the processor's throughput is penalized. On the other hand, an embedded system, like an Anti-lock Braking System (ABS), executes always the same software application. Frequently it is a small or medium size system, or made up of several such systems. Many small or medium size embedded systems, with limited number of tasks, can be scheduled by our proposed hardware architecture, based on the Motorola 500MHz MPC7410 processor, enhancing its throughput and avoiding the software OS overhead, complexity, maintenance and price. Encouraged by our experimental results, we shall develop a compiler to assist our method. In the meantime we will present here our proposal and the experimental results.


Electronics ◽  
2020 ◽  
Vol 10 (1) ◽  
pp. 13
Author(s):  
Balaji M ◽  
Chandrasekaran M ◽  
Vaithiyanathan Dhandapani

A Novel Rail-Network Hardware with simulation facilities is presented in this paper. The hardware is designed to facilitate the learning of application-oriented, logical, real-time programming in an embedded system environment. The platform enables the creation of multiple unique programming scenarios with variability in complexity without any hardware changes. Prior experimental hardware comes with static programming facilities that focus the students’ learning on hardware features and programming basics, leaving them ill-equipped to take up practical applications with more real-time constraints. This hardware complements and completes their learning to help them program real-world embedded systems. The hardware uses LEDs to simulate the movement of trains in a network. The network has train stations, intersections and parking slots where the train movements can be controlled by using a 16-bit Renesas RL78/G13 microcontroller. Additionally, simulating facilities are provided to enable the students to navigate the trains by manual controls using switches and indicators. This helps them get an easy understanding of train navigation functions before taking up programming. The students start with simple tasks and gradually progress to more complicated ones with real-time constraints, on their own. During training, students’ learning outcomes are evaluated by obtaining their feedback and conducting a test at the end to measure their knowledge acquisition during the training. Students’ Knowledge Enhancement Index is originated to measure the knowledge acquired by the students. It is observed that 87% of students have successfully enhanced their knowledge undergoing training with this rail-network simulator.


Sensors ◽  
2021 ◽  
Vol 21 (4) ◽  
pp. 1031
Author(s):  
Joseba Gorospe ◽  
Rubén Mulero ◽  
Olatz Arbelaitz ◽  
Javier Muguerza ◽  
Miguel Ángel Antón

Deep learning techniques are being increasingly used in the scientific community as a consequence of the high computational capacity of current systems and the increase in the amount of data available as a result of the digitalisation of society in general and the industrial world in particular. In addition, the immersion of the field of edge computing, which focuses on integrating artificial intelligence as close as possible to the client, makes it possible to implement systems that act in real time without the need to transfer all of the data to centralised servers. The combination of these two concepts can lead to systems with the capacity to make correct decisions and act based on them immediately and in situ. Despite this, the low capacity of embedded systems greatly hinders this integration, so the possibility of being able to integrate them into a wide range of micro-controllers can be a great advantage. This paper contributes with the generation of an environment based on Mbed OS and TensorFlow Lite to be embedded in any general purpose embedded system, allowing the introduction of deep learning architectures. The experiments herein prove that the proposed system is competitive if compared to other commercial systems.


Electronics ◽  
2020 ◽  
Vol 10 (1) ◽  
pp. 34
Author(s):  
Michele Alessandrini ◽  
Giorgio Biagetti ◽  
Paolo Crippa ◽  
Laura Falaschetti ◽  
Lorenzo Manoni ◽  
...  

Singular value decomposition (SVD) is a central mathematical tool for several emerging applications in embedded systems, such as multiple-input multiple-output (MIMO) systems, data analytics, sparse representation of signals. Since SVD algorithms reduce to solve an eigenvalue problem, that is computationally expensive, both specific hardware solutions and parallel implementations have been proposed to overcome this bottleneck. However, as those solutions require additional hardware resources that are not in general available in embedded systems, optimized algorithms are demanded in this context. The aim of this paper is to present an efficient implementation of the SVD algorithm on ARM Cortex-M. To this end, we proceed to (i) present a comprehensive treatment of the most common algorithms for SVD, providing a fairly complete and deep overview of these algorithms, with a common notation, (ii) implement them on an ARM Cortex-M4F microcontroller, in order to develop a library suitable for embedded systems without an operating system, (iii) find, through a comparative study of the proposed SVD algorithms, the best implementation suitable for a low-resource bare-metal embedded system, (iv) show a practical application to Kalman filtering of an inertial measurement unit (IMU), as an example of how SVD can improve the accuracy of existing algorithms and of its usefulness on a such low-resources system. All these contributions can be used as guidelines for embedded system designers. Regarding the second point, the chosen algorithms have been implemented on ARM Cortex-M4F microcontrollers with very limited hardware resources with respect to more advanced CPUs. Several experiments have been conducted to select which algorithms guarantee the best performance in terms of speed, accuracy and energy consumption.


Electronics ◽  
2021 ◽  
Vol 10 (4) ◽  
pp. 469
Author(s):  
Hyun Woo Oh ◽  
Ji Kwang Kim ◽  
Gwan Beom Hwang ◽  
Seung Eun Lee

Recently, advances in technology have enabled embedded systems to be adopted for a variety of applications. Some of these applications require real-time 2D graphics processing running on limited design specifications such as low power consumption and a small area. In order to satisfy such conditions, including a specific 2D graphics accelerator in the embedded system is an effective method. This method reduces the workload of the processor in the embedded system by exploiting the accelerator. The accelerator assists the system to perform 2D graphics processing in real-time. Therefore, a variety of applications that require 2D graphics processing can be implemented with an embedded processor. In this paper, we present a 2D graphics accelerator for tiny embedded systems. The accelerator includes an optimized line-drawing operation based on Bresenham’s algorithm. The optimized operation enables the accelerator to deal with various kinds of 2D graphics processing and to perform the line-drawing instead of the system processor. Moreover, the accelerator also distributes the workload of the processor core by removing the need for the core to access the frame buffer memory. We measure the performance of the accelerator by implementing the processor, including the accelerator, on a field-programmable gate array (FPGA), and ascertaining the possibility of realization by synthesizing using the 180 nm CMOS process.


Energies ◽  
2021 ◽  
Vol 14 (6) ◽  
pp. 1738
Author(s):  
Vanessa Neves Höpner ◽  
Volmir Eugênio Wilhelm

The use of static frequency converters, which have a high switching frequency, generates voltage pulses with a high rate of change over time. In combination with cable and motor impedance, this generates repetitive overvoltage at the motor terminals, influencing the occurrence of partial discharges between conductors, causing degradation of the insulation of electric motors. Understanding the effects resulting from the frequency converter–electric motor interaction is essential for developing and implementing insulation systems with characteristics that support the most diverse applications, have an operating life under economically viable conditions, and promote energy efficiency. With this objective, a search was carried out in three recognized databases. Duplicate articles were eliminated, resulting in 1069 articles, which were systematically categorized and reviewed, resulting in 481 articles discussing the causes of degradation in the insulation of electric motors powered by frequency converters. A bibliographic portfolio was built and evaluated, with 230 articles that present results on the factors that can be used in estimating the life span of electric motor insulation. In this structure, the historical evolution of the collected information, the authors who conducted the most research on the theme, and the relevance of the knowledge presented in the works were considered.


Sign in / Sign up

Export Citation Format

Share Document