Elektron Jurnal Ilmiah
Volume 12 Nomor 2 Tahun 2020

Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega

Firdaus firdaus (politeknik negeri padang)
Rivanol Chadri (Politeknik Negeri Padang)
Nasrullah Nasrullah (Politeknik Negeri Padang)



Article Info

Publish Date
02 Dec 2020

Abstract

PWM is widely used in the fields of automatic control, power electronics and cellular communications. Previous research designed a PWM generator using the OMAP-L138 chip to produce a simple, high-precision, flexible and portable circuit. Another generator uses a single board computer FEZ Panda III and an Arduino board for power inverters. While the FPGA Spartan 3 is also used to generate PWM signals that can vary the duty cycle. In this paper, the PWM signal generator is made using the AVR ATmega8535 microcontroller where the frequency parameters and the output signal duty cycle can be adjusted via the keypad. The signal is tested using a measuring instrument for its accuracy. The ATmega AVR microcontroller family has a timer / counter with one of its operating modes, namely fast PWM. In order to change the frequency and duty cycle as desired, the ICR register is used to store the TOP value and the OCR register for the MAX value. The OCR value determine the duty cycle and the ICR value specify the frequency. The results are the higher the PWM frequency, the greater the value of the measured and desired frequency difference, this is because the large frequency makes ICR register value becomes small even though the frequency divider at minimum value. The difference between measurements and calculations on the Duty Cycle gives the result under 1%. This difference also occurs due to the rounding of the ICR and OCR values, but at a frequency of 20 kHz and a 25% Duty Cycle where the ICR value is 599 and OCR is 116 resulting in the minimum difference in frequency and Duty Cycle. From the experiments that have been carried out, the design of the PWM generator based on the AVR ATmega microcontroller has been successfully realized

Copyrights © 2020






Journal Info

Abbrev

JIE

Publisher

Subject

Computer Science & IT Control & Systems Engineering Electrical & Electronics Engineering Engineering

Description

Elektron Jurnal Ilmiah (EJI) is a peer-reviewed journal which is published by Department of Electrical Engineering, Politeknik Negeri Padang. The ISSN number is 2085-6989. EJI published the first edition in 2009 and since 2014, EJI publishes in Juni and December. The scopes of the journal are: ...