Shop OBEX P1 Docs P2 Docs Learn Events
LED control — Parallax Forums

LED control

ArchiverArchiver Posts: 46,084
edited 2000-06-09 23:11 in General Discussion
Another question from a beginner. I'd like to control 16 LEDs
individually. Is there there a chip that can say take
serial output from a stamp I/O and control 16 separate relays? I
imagine the power source for the LEDs couldn't come through the stamp.

Any help apreciated.

Grant

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-06-09 06:02
    Grant,

    I would use a chip called a "shift register". You can take 3 stamp lines and
    controll about as many LEDs are you want. Each chip or shift register
    controls 8 lines on or off. I would get the 74HC595. I don't have hook up
    details on this chip yet (I'm going to order one soon) but it's not very hard
    because I have seen others use this chip. It's pretty cheap and you could
    get it from just about any catalog company like Jameco.com or digikey.com,
    Radio Shack might even have them, I have not checked.

    My project calls for using about 16 or less LEDs to create a simple robotics
    face for a robot kit named the TRaCY. I am planning on using the 5 volt line
    right from the stamp power. Then again our robot kit named the TRaCY has a
    somewhat different set up than a normal Stamp II.

    Very Best Regards,
    -Justin Ratliff
    The Robotics Club of Yahoo! (trcy.org)
    From newbies to pros we have over 800 members from across the globe!
  • ArchiverArchiver Posts: 46,084
    edited 2000-06-09 11:31
    Hi Grant,

    >Another question from a beginner. I'd like to control 16 LEDs
    >individually. Is there there a chip that can say take
    >serial output from a stamp I/O and control 16 separate relays? I
    >imagine the power source for the LEDs couldn't come through the stamp.
    >
    >Any help apreciated.

    You could always use a 4 to 16 line decoder, however it would use more I/O
    lines.

    Regards,
    Jean-Michel.
  • ArchiverArchiver Posts: 46,084
    edited 2000-06-09 13:03
    hi grant,

    MAX7219 - that's one of the best ways to control LEDs. i was able to
    control hundreds of LEDs from 3 pins of a stamp chip via one MAX7219. the
    best is to get the scott edwards MAX7219 kit. it comes with a chip,
    instructions and source code for some programs. check out:
    http:www.seetron.com

    good luck,

    erwin


    > Date: Fri, 09 Jun 2000 04:52:25 -0000
    > From: "Grant McPherson" <mcpherson@o...>
    >Subject: LED control
    >
    >Another question from a beginner. I'd like to control 16 LEDs
    >individually. Is there there a chip that can say take
    >serial output from a stamp I/O and control 16 separate relays? I
    >imagine the power source for the LEDs couldn't come through the stamp.
    >
    >Any help apreciated.
    >
    >Grant
  • ArchiverArchiver Posts: 46,084
    edited 2000-06-09 15:47
    Justin,
    Your idea to use a shift register to drive 16 LEDs is right on (of course
    you'll need 2 for 16 LEDs). If by "the 5 volt line right from the Stamp
    power" you meant using the Stamp's 5V regulator you will run into problems.
    The Stamp's regulator can only supply 50mA which is probably not enough for
    16 LEDs unless they are very low power units. If you meant to use a
    seperate 5V supply for both the Stamp and the LEDs that would be fine. If
    that's the case just pat me on the head and say thanks for sharing ;-.

    At 01:02 AM 9/6/00 -0400, you wrote:
    >Grant,
    >
    editted for length

    >My project calls for using about 16 or less LEDs to create a simple robotics
    >face for a robot kit named the TRaCY. I am planning on using the 5 volt line
    >right from the stamp power. Then again our robot kit named the TRaCY has a
    >somewhat different set up than a normal Stamp II.
    >
    >Very Best Regards,
    >-Justin Ratliff
    >The Robotics Club of Yahoo! (trcy.org)
    >>From newbies to pros we have over 800 members from across the globe!
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-06-09 23:11
    Don't line decoders directly convert binary to decimal, meaning that only
    one of the 16 outputs are on at one time.

    i.e.

    input 0111
    output 0000000010000000

    Correct me if I'm wrong,

    You don't need the 595 for leds, you can use a 74hct164 and cascade as many
    as you want on 2 lines. The lights may flash slightly while updating but if
    at all it is minimal.

    Mike
    Original Message
    From: "Jean-Michel Howland" <vege@v...>
    To: <basicstamps@egroups.com>
    Sent: Friday, June 09, 2000 6:31 AM
    Subject: Re: [noparse][[/noparse]basicstamps] LED control


    > Hi Grant,
    >
    > >Another question from a beginner. I'd like to control 16 LEDs
    > >individually. Is there there a chip that can say take
    > >serial output from a stamp I/O and control 16 separate relays? I
    > >imagine the power source for the LEDs couldn't come through the stamp.
    > >
    > >Any help apreciated.
    >
    > You could always use a 4 to 16 line decoder, however it would use more I/O
    > lines.
    >
    > Regards,
    > Jean-Michel.
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.