Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/12 19:59
Read: times


 
#187683 - Where are you stuck?
Responding to: ???'s previous message
Martin Eliáš said:
If you decide to help me, I'd like to thank you then for your participation on my seminar work :)

Help you with what?

Where are you stuck?

You do know how PWM allows a digital output to supply more or less power by varying the amount of time the pin is active?
For a single RGB LED, you can implement PWM using a dedicated PWM functionality in the chip. Or using hw timers. Or just pure software.

To change color "randomly", you can use a PC program to create an array of random numbers that you insert in your source code. The random numbers would represent the intensity of red, green and blue. Potentially also how long time until next color.

Then you can decide if the color should changed instantly, or if you should gradually change from one color to another.

The above would represent a quite simple program - each individual thing can be broken out and implemented/tested separately.

List of 9 messages in thread
TopicAuthorDate
AT89S52 - PWM RGB LED Control            01/01/70 00:00      
   a couple of notes            01/01/70 00:00      
   Where are you stuck?            01/01/70 00:00      
   Advice on what ?            01/01/70 00:00      
   Your reset scheme is unsuited...            01/01/70 00:00      
      good tutorial            01/01/70 00:00      
         9V rechargable alkaline battery?            01/01/70 00:00      
            Definitely Primary!            01/01/70 00:00      
               going by the instructions ...            01/01/70 00:00      

Back to Subject List