Go Down

Topic: Controlling a LED intensity with Arduino and a button (Read 1 time) previous topic - next topic

aura

Hey guys. I'm newbie in arduino. I''m  tryng to make circuit intensity LED like below video.
please any expert arduino can help me, how to this programming ?

http://www.youtube.com/watch?v=EoUML4qZgy4

thanks


georgekay

Hi

Basically, you check if the button is pressed and if it is an the brightness is not yet at max., you start a function which increases the brightness by the amount you want it to and light the LED with analogWrite(pin, brightness).

Have a look at these tutorials:
http://arduino.cc/en/Tutorial/Button
http://arduino.cc/en/Tutorial/Fade


Let me know, if that helped you

bye

Go Up