Forum Index > Projects > LED Pegboard and Matrix Projects
 Multiplexed hackery
 |  Printable Version
By: bbum (offline) on Sunday, February 17 2008 @ 02:59 PM PST (Read 3772 times)  
bbum

I'm futzing around with sequencing the multiplexed configuration to do something other than light the whole thing.

http://svn.red-bean.com/bbum/trunk/avr/peggybum/

That version is multiplexed only -- all signs of charlieplexing removed -- and has been refactored to have a lightAll() function that'll light all rows consecutively exactly once (and you can easily control how long each row stays lit).

BTW: if you set the delay per row to 1000U, it makes the board exceedingly uncomfortable to look it. Seizure inducing, even. Ouch.


Forum Henchperson
Henchperson

Status: offline

Registered: 01/23/08
Posts: 22

Profile Email    
   
By: Windell (offline) on Sunday, February 17 2008 @ 03:09 PM PST  
Windell

Cool-- thanks for posting that!

>Seizure inducing
Yup. I've actually worked with the delay function the same way that you have, adding the delay time as a uint. Two fun things to play with like that: Turn the delay long enough that only one row is on at a time-- it shows you how (goddamn) bright these LEDs really are. Secondly, ramp that variable-- it's neat to see the transition between blinky/flashy and what your eye perceives as continuous.

Maybe I'll also post some of the other firmware versions that I've written....


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: bbum (offline) on Sunday, February 17 2008 @ 07:52 PM PST  
bbum

Woot! Simple three phased animation!

I refactored the heck out of the code such that the source now provides a fairly decent example for doing multi-frame animation. Fairly decent -- there is still much room for improvement.

http://svn.red-bean.com/bbum/trunk/avr/peggybum/

When fired up, the board will:

- alternate lines for a few seconds; even / odd / even / odd, etc...

- divide the lines into quadrants vertically and alternative 1st / 3rd, 2nd / 4th for a few seconds

- display solid for as long as it does the two animations combined

When hacking on this, keep in mind that there is no true notion of a fixed fame duration. Any given frame is only as long as the durations of the lines in the frame combined.

Enjoy.


Forum Henchperson
Henchperson

Status: offline

Registered: 01/23/08
Posts: 22

Profile Email    
   
By: Windell (offline) on Monday, February 18 2008 @ 12:30 AM PST  
Windell

Okay, here's one of mine. The whole image fades in and out gently. Every other time, there is some noise-- a bit like retro-video scanlines-- added across the image. Download the source code here. (6 kB .ZIP file)


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   



 All times are PDT. The time is now 08:17 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?