Shop OBEX P1 Docs P2 Docs Learn Events
basic stamp 3x3 led array — Parallax Forums

basic stamp 3x3 led array

bs2-manbs2-man Posts: 23
edited 2010-02-16 23:44 in BASIC Stamp
i want to drive a 3x3 led array with a basic stamp. ill just make it·do some little annimations.

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2010-02-13 15:56
    Okay, that's 9 LED's -- you'll probably need at least a ULN2803 Darlington Array to drive that much current, the BS2 won't do it on its own.
    And you'd probably want a 74LS164 serial to parallel latch to reduce the number of I/O pins needed.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-02-13 16:01
    If you limit the current to each LED to something on the order of 4mA using a 1K series resistor, you can drive the LEDs directly using 9 I/O pins. The "What's a Microcontroller?" tutorial shows how to connect a single LED to an I/O pin.

    You can also drive the LEDs as a multiplexed matrix where you drive only one LED at a time, but use more current and drive them fast enough so that "persistence of vision" takes place and it looks like several LEDs are on at the same time.
  • bs2-manbs2-man Posts: 23
    edited 2010-02-16 23:44
    ok, thanks. say i use nine i/o pins, what about animations? i probably dont need help with it but if anyone has an idea...
Sign In or Register to comment.