Shop OBEX P1 Docs P2 Docs Learn Events
Randomly fade 25 LEDs — Parallax Forums

Randomly fade 25 LEDs

jeff-ojeff-o Posts: 181
edited 2011-07-23 10:58 in Propeller 1
Hi everyone,

I'm thinking of starting up a project that would randomly fade up to 25 LEDs on and off, like stars or fireflies. I'm sure you know what I mean. Since the propeller wouldn't really be doing anything else, it could control the LEDs directly. Or, I could use an LED driver chip (but that seems like overkill).

Has anyone done something like this before? Got any clever ideas on how to run 25 PWM channels?

My ideas so far:

- not all the LEDs would be active at the same time. Maximum 16, I'd say.
- a single timer could run two or more LEDs at once. The actual pins would fade on and off together, but which pins are fading could be randomly chosen each time.
- single colour would be fine, RGB would be spectacular

Comments

Sign In or Register to comment.