hi....i am doing one led cube 3x3 project with PIC 16f877a. I want to raise the brightness from OFF to full brightness gradually.is there any hardware set up for this....
PWM as the advantage of being able to go the absolote lowest power supply voltages. The analog method looks something like this...
You can replace R4-R6 on the first schematic for R1 and C1 on the second to make the first a fader.
If you want a throbbing LED then this will work...
Q1 and Q2 on both circuit must be separate transistors, you can not use a packaged darlington such as a TIP101 or TIP102. The exact transistor part numbers are not critical other than that.