How to make an LED gradually and slowly get brighter and dimmer?


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: How to make an LED gradually and slowly get brighter and dimmer?

    Ah, not really but please accept my apologies.

    I just don't understand what the problem here, the issue was discussed in depth in the other thread but apparently there's some detail that doesn't make sense - and that's fine - but instead of asking about that detail we get a new thread with the same topic.

    And, regarding PAUSE, you're of course 100% correct with that comment but it doesn't really pertain to the HPWM command and may just make thing more confusing.

    Anyway, I'm sorry for being harsh, not my intention, shame on me.

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: How to make an LED gradually and slowly get brighter and dimmer?

    Yup, for sure HPWM is the way to go unless you've already used those pins up, in which case you can go SPWM, but that chews up processing time. HPWM isn't "slow or fast" like Henrik says, you just change your duty cycle as quickly or slowly as you want to, you can test it with a pause loop, and then implement via a timed interrupt routine (which obviously has less overhead).

Similar Threads

  1. my project Capacitive Sensing LED dimmer 12F1822 via PWM
    By Heckler in forum mel PIC BASIC Pro
    Replies: 42
    Last Post: - 12th May 2016, 07:48
  2. LED Dimmer
    By Ioannis in forum Off Topic
    Replies: 4
    Last Post: - 2nd December 2013, 09:33
  3. LED Dimmer - What should be used for Switching?
    By FromTheCockpit in forum Schematics
    Replies: 11
    Last Post: - 4th November 2012, 00:31
  4. How to move servo slowly?
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th April 2009, 13:50
  5. I can't even make an LED flash!
    By George in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 3rd April 2007, 06:39

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