Hi ! First post here so hope i get this right.
Here is my problem :
I want to use a TIP120 transistor to turn on and of a 12v led with the arduino. Simple. But then i want a 0 signal to start to fade up the LED light and when the arduino get 1 signal again i want it to fade the LED down and turn it of.
Another problem is the delay, cant use that in my program.
So need a code to start the fading up when the arduino input is low. When the light is faded up max it will stay there until the arduino get a 1 signal, then start to fade down and turn it of at the end
I want the fading up and down to be on ca 10 sec or something.
Can someone help me with this ?