I needed a light at my computer table to light the keyboard. A led strip does the Job. But since I started using EasyPic I needed more light, So I got me more strips and the diagram I made to light them. Works so far.
The PIC uses two buttons. One to switch on and off and other to Toggle the lights. When I need keyboard only I use the Dim ( 1 strip ) and when I work, I use the Bright ( 4 strip ).
I made the diagram to be upgradable fro dimming when I get to it. I believe now I like to have that & I prefer to use an encoder. The board is wired in such way that all I need it to plug in the encoder (via connector )and viola.
I did not check if the coding would be possible for me but I guessed I can try.
The current code is working since it was quite simple ( not to me ). I had recently added the comments to the source code. If any one like to see, just ask.
My Q..
Look at the diagram for reference.
Will the 12F629 be able to soft PWM the Led from minimum bright to max using a rotary encoder?
And use one switch to ON OFF & Toggle the leds?
One second long press to On Off and normal press to Toggle.
In Toggle either Dim or Bright is Active. Both Output should be able to control the Strip Brightness
I tried to figure out a way to use one switch to to control both functions but the Darn delay is coming into play.
If this is possible I can try to continue if not would I need a 12F675 or something similar. But I rather learn to do a soft PWM
The PIC uses two buttons. One to switch on and off and other to Toggle the lights. When I need keyboard only I use the Dim ( 1 strip ) and when I work, I use the Bright ( 4 strip ).
I made the diagram to be upgradable fro dimming when I get to it. I believe now I like to have that & I prefer to use an encoder. The board is wired in such way that all I need it to plug in the encoder (via connector )and viola.
I did not check if the coding would be possible for me but I guessed I can try.
The current code is working since it was quite simple ( not to me ). I had recently added the comments to the source code. If any one like to see, just ask.
My Q..
Look at the diagram for reference.
Will the 12F629 be able to soft PWM the Led from minimum bright to max using a rotary encoder?
And use one switch to ON OFF & Toggle the leds?
One second long press to On Off and normal press to Toggle.
In Toggle either Dim or Bright is Active. Both Output should be able to control the Strip Brightness
I tried to figure out a way to use one switch to to control both functions but the Darn delay is coming into play.
If this is possible I can try to continue if not would I need a 12F675 or something similar. But I rather learn to do a soft PWM
Attachments
-
19 KB Views: 26