PWM Projects

RGB Rotary Encoder

RGB Rotary Encoder with PWM and ISRs Using an ATmega328

Description A long time ago I bought a couple RGB rotary encoders from Sparkfun because they were cheap and I was already spending a bunch on other stuff.  I thought they would be neat for some interfaces since it includes a push button.  The interrupt service routine (ISR) for pin changes on the rotary encoder (for terminals […]

RGB Rotary Encoder with PWM and ISRs Using an ATmega328 Read More »

fast PWM Pulse Width Modulation

How to use fast PWM (Pulse Width Modulation) Mode of AVR microcontroller Timer Using Atmega

This article is in continuation of PWM generation using AVR timer. In the previous article, PWM generation using Phase correct PWM mode is described. However, there are some applications like DAC, power regulation and rectification etc. which require high frequency PWM wave. The PWM generation using Fast PWM mode is suitable for such applications. This article focuses on Fast

How to use fast PWM (Pulse Width Modulation) Mode of AVR microcontroller Timer Using Atmega Read More »

PWM Based DC Motor Speed Control

PWM Based DC Motor Speed Control using Microcontroller Using Atmega

In many applications, it is important to control the speed of DC motor where precision and protection are essence. Here we will use a technique called PWM (pulse width modulation) to control the speed of DC motor. We can achieve speed control of DC motor using mechanical or electrical techniques but they require large size

PWM Based DC Motor Speed Control using Microcontroller Using Atmega Read More »

Working with Atmel AVR Microcontroller

Working with Atmel AVR Microcontroller Basic Pulse Width Modulation (PWM) Peripheral

Pulse Width Modulation (PWM) is a technique widely used in modern switching circuit to control the amount of power given to the electrical device.  This method simply switches ON and OFF the power supplied to the electrical device rapidly. The average amount of energy received by the electrical device is corresponding to the ON and

Working with Atmel AVR Microcontroller Basic Pulse Width Modulation (PWM) Peripheral Read More »

Controlling DC motor

Controlling DC motor with AVR ATtiny13 PWM and ADC Project Using Atmega

It’s interesting to explore what we can do with this tiny 8 pins; 8-bit microcontroller. The ATtiny13 is the smallest and cheapest Atmel AVR 8-bit microcontroller families but yet, it’s loaded with sophisticated peripherals such as two 8-bit PWM channels and 4 channels 10-bit ADC. Although the memory is quite small; 1 K flash, 64 SRAM

Controlling DC motor with AVR ATtiny13 PWM and ADC Project Using Atmega Read More »

AVR Twinkle Twinkle

AVR Twinkle Twinkle Using PWM Project Using Atmega

Would be interesting if we could make our microcontroller to sing for us not just beeping or blinking; this project is all about using the powerful AVR ATmega168 16-bit PWM feature to produce accurate musical notes such as playing the child’s favorite Twinkle-Twinkle Little Star song or we could say beeping with style. The principal we

AVR Twinkle Twinkle Using PWM Project Using Atmega Read More »

Schematic Introduction to AVR

Introduction to AVR Microcontroller Pulse Width Modulation (PWM) Using Atmega

PWM is used in many industrial mostly for controlling the motor speed. The PWM is used because it’s the most efficient method comparing to the analog one. That’s why most of the modern microcontrollers today have this features build in. How does this PWM works will be described on the following circuits: On the figure 1A

Introduction to AVR Microcontroller Pulse Width Modulation (PWM) Using Atmega Read More »