Go Down

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

arduinoadrian

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.
http://www.youtube.com/watch?v=271qPIFaC2E&feature=youtu.be
Perseverance is 90% of the solution. The remaining 10% is more perseverance.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy