LED brightness adjustment

Discussion in 'General Electronics Chat' started by subash, Oct 13, 2009.

  1. subash

    Thread Starter New Member

    Oct 13, 2009
    5
    0
    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....
     
  2. Wendy

    Moderator

    Mar 24, 2008
    20,765
    2,535
    Depends, do you want it to cycle, or do it once? You can also go with a PWM method, or analog using transistors and an RC circuit.

    Here is a circuit out of my LEDs, 555s, Flashers, and Light Chasers article, chapter 5.

    [​IMG]

    PWM as the advantage of being able to go the absolote lowest power supply voltages. The analog method looks something like this...

    [​IMG]

    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...

    [​IMG]

    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.
     
    Last edited: Oct 13, 2009
  3. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    Actually, you can do all of that using PWM and Charlieplexing to control the 27 LEDs.

    You'll have to use resistors to limit the maximum LED current.

    Google is your friend.
     
  4. subash

    Thread Starter New Member

    Oct 13, 2009
    5
    0
    thanx lot friend...let me try out this....i think this will workout..
     
Loading...