Go Down

Topic: Computer Dimmer (Improved with higher resolution PWM) (Read 1 time) previous topic - next topic


Mar 10, 2014, 07:26 am Last Edit: Mar 10, 2014, 07:32 am by arduinoadrian Reason: 1
This is an improvement of the previous computer dimmer (voltage controller) here: http://forum.arduino.cc/index.php?topic=223709.0
In that case, since I was using analogWrite() to drive the outputs the resolution of the PWM signal generated and the voltage steps were limited to 256. That could be not enough for some voltage control applications where more precision is required. In this update, the PWM signal generated and the voltage can change in 1000 steps. There is a little instability though, as can be observed in the video; but still its better than having only 256 steps only, I think. The instability may be caused by different factors, such as: the time it takes for Arduino to read the values coming from the computer and the noisy lamps being used. The PWM frequency selected in this case is about 1/15 msec ~ 66 Hz and the duty cycle is changed from 0 to 100% as shown in the video. The digital output pins used are 8,9,10,11, corresponding to Dim 1,2,3,4.
Built with Processing 1.5.1 and Arduino UNO.

Go Up