Page 1 of 1

Regulator with ATMEGA16

Posted: Mon Jun 28, 2010 10:46 pm
by Ibanitescu
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.

Re: Regulator with ATMEGA16

Posted: Tue Jun 29, 2010 9:14 am
by Shane
See following video tutorial.

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

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