Regulator with ATMEGA16

Microcontroller Topics
Post Reply
Ibanitescu
Corporal
Corporal
Posts: 7
Joined: Mon Jun 28, 2010 10:25 pm

Regulator with ATMEGA16

Post by Ibanitescu » Mon Jun 28, 2010 10:46 pm

Hello,

I have a PID regulator with ATMEGA16 with two inputs: a bulb and a cpu fan. I must control them using PWM. I understand what PWM means, but i don't understand how to make space factor (pulse duty factor) to be variable, because I setonce the register OCR1A and then I don't increment it neither decrement. Temperature should be between two level a superior one and an inferior, and should have a rise with a proportional. Thank you.
User avatar
Shane
Captain
Captain
Posts: 226
Joined: Sun Jul 19, 2009 9:59 pm
Location: Jönköping, Sweden

Re: Regulator with ATMEGA16

Post by Shane » Tue Jun 29, 2010 9:14 am

See following video tutorial.

[media]http://www.youtube.com/watch?v=YmPziPfaByw[/media]

LED Control
PWMcircuit.jpg
PWMcircuit.jpg (53.86 KiB) Viewed 3682 times
Motor Control
PWMcircuitwithmotor.jpg
PWMcircuitwithmotor.jpg (53.75 KiB) Viewed 3682 times
Once you have the basic background knowledge, we can discuss further if you want.
Post Reply

Return to “Microcontrollers”