Shop OBEX P1 Docs P2 Docs Learn Events
Shadow Box / Glasses Shaped LED Light Chaser - SX — Parallax Forums

Shadow Box / Glasses Shaped LED Light Chaser - SX

ZootZoot Posts: 2,227
edited 2007-12-27 16:05 in Robotics
Yet another LED light chaser as a holiday gift -- this one for my father's optical shop. Construction is birch plywood. Features T-1 3/4 LEDs, IR emitters/detector (for fun interaction), SX-28 protoboard.

The user can cycle through the patterns in order by pressing the button, or a random pattern will be set following interaction with the IR emitters/detector. Pressing and holding the button puts the display to "sleep".

8 banks of multiplexed LEDs are run from the protoboard; this particular program features 32 step PWM brightness control on each bank of LEDs. Additionally, I bloated up the ISR with real-time fader controls -- any bank can be set to fade-to-and-stop a value or pulse back and forth between a hi and lo value. The background real-time faders run in units of 2ms steps per brightness tick -- so dimming a bank from a brightness of 31 to 0 with a fadeRate of 4 would take: 32 steps * ( rate 4 * 2 ms ) = 256 ms or about a 1/4 second. The fades are all pretty hypnotic in their own way.

Photos, full-size plan and wiring diagram attached. Code attached to the next post.

See a video here: www.youtube.com/watch?v=QmLDof_gE24

Lest forum members think all I do is build LED thingies smile.gif, I'll be trying to post some videos/photos/etc of my 'bots over the next few weeks -- the 'bots are usually my main focus.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1200 x 900 - 387K
1200 x 900 - 285K
1200 x 900 - 413K
1200 x 900 - 468K

Comments

  • ZootZoot Posts: 2,227
    edited 2007-12-26 20:03
    SX/B and ASM code....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-12-27 02:15
    ·Zoot

    Very nice project and holiday gift....... smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
  • BeanBean Posts: 8,129
    edited 2007-12-27 15:28
    Zoot said...
    Lest forum members think all I do is build LED thingies smile.gif, I'll be trying to post some videos/photos/etc of my 'bots over the next few weeks -- the 'bots are usually my main focus.
    And what is wrong with making "LED thingies" ??? Not a thing.

    Nice project. I love to see people using ASM in their SX/B program. That was exactly what the compiler was meant for, BASIC for the ease of use, ASM for the raw speed.

    Bean.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • ZootZoot Posts: 2,227
    edited 2007-12-27 16:05
    *Everybody* likes the pretty lights and patterns -- real crowd pleasers. But if I don't have to wire up 50 LEDs again for a while that would be great.... smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
Sign In or Register to comment.