Question about control theory

Status
Not open for further replies.

Manchested

Member level 5
Joined
Apr 25, 2011
Messages
87
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
0
Hi,

I wanted to control the brighhtness of lamp with mega8 by adjusting the pwm. If the measured brightness has a deviation from the desired brightness, then the program will increment or decrement the OCR value, meaning varying 1/255% duty a time (note this change isn't proportional to the error). This will go into a infinite loop until the error drops close to zero. Does anyone know what type of control action this is?
 

changing the output based on the input in an endless loop resembles feedback.
 

Are you asking for a device that can provide information for the light intensity so that it can be measured from the mcu?
I guess you can use a photoresistor.

Alex
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…