Driving LED's with PWM


Results 1 to 20 of 20

Threaded View

  1. #8
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Rapidly switching DC on & off (PWM) is a square wave. It's still DC.
    If you vary the duty cycle from 50% it will look different, but we still call that a square wave.

    You can measure the current with LEDs running constantly for a single row like it sounds like you're doing.
    If it's a POV display where you cycle rows, then no more than one row (or column depending on how you look at it)
    is going to be powered at one time, so you can assume the total of the switching transistor and LEDs for a
    single row is the maximum current that your display will draw.

    Be careful trying to measure PWM with a digital multimeter.
    The digital multimeter is a microcontoller too, and can only take samples at a certain rate that is not synced with your PWM.

    I believe the best insurance against software failure is your watchdog timer.
    The best place to clear it is in your display routine that cycles the rows.
    Depending on complexity, I suppose some insurance against hardware failure is also prudent.

    Last edited by Art; - 31st December 2013 at 02:35.

Similar Threads

  1. control 60 tri-color LED's
    By MOUNTAIN747 in forum General
    Replies: 0
    Last Post: - 16th September 2011, 00:30
  2. shared data lines for LCD and LED'S?
    By nomad in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th February 2009, 05:37
  3. Scolling LED's
    By Melanie in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th July 2008, 00:28
  4. Killing blue led's
    By Steve_88 in forum Off Topic
    Replies: 3
    Last Post: - 31st January 2008, 03:37
  5. Driving a Voltage Regulator with PWM
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th June 2007, 14:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts