Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega

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 a...

Full description

Bibliographic Details
Main Authors: Firdaus firdaus, Rivanol Chadri, Nasrullah Nasrullah
Format: Article
Language:Indonesian
Published: Jurusan Teknik Elektro Politeknik Negeri Padang 2020-12-01
Series:Elektron
Subjects:
Online Access:https://jie.pnp.ac.id/index.php/jie/article/view/171
id doaj-0a0fe9be6bcb459d9b20364102382446
record_format Article
spelling doaj-0a0fe9be6bcb459d9b203641023824462021-07-28T08:06:48ZindJurusan Teknik Elektro Politeknik Negeri PadangElektron2085-69892654-47332020-12-01616610.30630/eji.12.2.171171Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmegaFirdaus firdaus0Rivanol Chadri1Nasrullah Nasrullah2politeknik negeri padangPoliteknik Negeri PadangPoliteknik Negeri PadangPWM 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 realizedhttps://jie.pnp.ac.id/index.php/jie/article/view/171pwm, microcontroller, avr, timer, counter
collection DOAJ
language Indonesian
format Article
sources DOAJ
author Firdaus firdaus
Rivanol Chadri
Nasrullah Nasrullah
spellingShingle Firdaus firdaus
Rivanol Chadri
Nasrullah Nasrullah
Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega
Elektron
pwm, microcontroller, avr, timer, counter
author_facet Firdaus firdaus
Rivanol Chadri
Nasrullah Nasrullah
author_sort Firdaus firdaus
title Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega
title_short Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega
title_full Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega
title_fullStr Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega
title_full_unstemmed Rancang Bangun Generator PWM Berbasis Mikrokontroler AVR ATmega
title_sort rancang bangun generator pwm berbasis mikrokontroler avr atmega
publisher Jurusan Teknik Elektro Politeknik Negeri Padang
series Elektron
issn 2085-6989
2654-4733
publishDate 2020-12-01
description 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
topic pwm, microcontroller, avr, timer, counter
url https://jie.pnp.ac.id/index.php/jie/article/view/171
work_keys_str_mv AT firdausfirdaus rancangbangungeneratorpwmberbasismikrokontroleravratmega
AT rivanolchadri rancangbangungeneratorpwmberbasismikrokontroleravratmega
AT nasrullahnasrullah rancangbangungeneratorpwmberbasismikrokontroleravratmega
_version_ 1721278870198419456