Fading Example


the arduino sdk includes pwm example called "fading". haven't tried yet because don't have hardware (led). however, after looking @ example modifies voltage (amplitude) of signal , not ratio (width) of signal. missing here?

quote
it modifies voltage (amplitude) of signal
it no such thing. 

the output digital pin 0v or 5v.  second parameter of analogwrite() alters proportion of time spent @ each voltage , hence average voltage of pin on time.


Arduino Forum > Using Arduino > Programming Questions > Fading Example


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor