Shop OBEX P1 Docs P2 Docs Learn Events
Need help on multiple LEDs — Parallax Forums

Need help on multiple LEDs

FwissFwiss Posts: 13
edited 2009-04-04 04:12 in BASIC Stamp
I plan on making a small game system reminiscent of Evilmadscience's Peggy or Meggy Jr RGB, but with a BASIC Stamp II. However, I need to find a way to run say, 8 x 8 LEDs, which is 64 LEDs, each individually. The problem is that the BASIC Stamp II has only 16 I/O ports. Is there a way to make· an 8 x 8 LED array controlled with the·BASIC Stamp?
·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-23 22:32
    You can add a 74HC595 shift register for each 8 LEDs and cascade them. Download the StampWorks manual (search the Parallax webstore for it, then download it for free with the link on the webstore page). It has chapters on expanding the input and outputs of a Stamp.
  • Mike2545Mike2545 Posts: 433
    edited 2009-03-23 22:33
    Modern device has a good 8X8 LED display board. Good prices too.

    moderndevice.com/8X8display.shtml

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • vaclav_salvaclav_sal Posts: 451
    edited 2009-03-24 02:39
    check out Maxim MAX7219 . It will drive 8 by 8 array and if you ask nicely you may get a free sample from MAXIM
  • Mike2545Mike2545 Posts: 433
    edited 2009-04-04 00:33
    I just got a Max7219 today. Any Ideas on how to integrate it with the stamp. It has a 4 wire serial arrangement.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-04-04 00:51
    You'd just use the SHIFTOUT statement to transfer 16 bits of information to the MAX7219. When you use a HIGH on the LOAD pin of the MAX7219, you transfer the 16 bits to the control logic, then you'd do a LOW. Read the chapters in the Stamp Basic Manual on those statements.
  • Mike2545Mike2545 Posts: 433
    edited 2009-04-04 00:54
    Thanks Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • MRMR Posts: 46
    edited 2009-04-04 04:12
    Mike Green said...
    You can add a 74HC595 shift register for each 8 LEDs and cascade them. Download the StampWorks manual (search the Parallax webstore for it, then download it for free with the link on the webstore page). It has chapters on expanding the input and outputs of a Stamp.

    Fwiss, Mike Green is right, I currently use two 74HC595's to drive 7 Segment Displays. Just a few days ago I had this same problem, I ran out of Pins on the Basic Stamp. I am now driving 13, 7 Segment Displays that's over 70 individual LEDs using only three stamp pins. Its really cool that you can drive that many leds with only 3 stamp pins. Good Luck. Let us know how it turns out.

    Take a Look at these two posts.


    http://forums.parallax.com/showthread.php?p=793684


    http://forums.parallax.com/showthread.php?p=794704

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    They say if you Play a Microsoft CD backwards you can hear satanic messages, that's nothing because if you play it forward it installs Vista!

    I didn't Fail 10,000 times, I simply found 10,000 ways that didn't work. -Thomas Edison
Sign In or Register to comment.