Shop OBEX P1 Docs P2 Docs Learn Events
many switches many leds — Parallax Forums

many switches many leds

ArchiverArchiver Posts: 46,084
edited 2002-08-29 21:44 in General Discussion
I am looking to control around 40 LEDs or 40 circuits of LEDs on a
large map of the US. The control will come from some momentary push
buttons. There will be somewhere around 48 buttons. I plan to use the
MAX7219 to drive the LEDs. This gives me up to 64 LEDs that I can
turn on and off. What I am looking for is a way to connect up the 48
or so momentary switches to the BS2 so the BS2 can send the correct
control string to the MAX7219 depending on which button was pushed. A
mux or encoder seems to come to mind but which one?

Any help?

Guy

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-08-29 21:44
    Piece of cake. Use the 74LS165 and cascade 6 of them. You will need 3 I/O
    pins to read in all 48 bits. Pull up all the switch inputs and you are in
    business. Look at the parallax web site under resources then look at the
    "Stamp Works experiments for expanding inputs. Works great. I use the chip
    to read some BCD thumb wheel switches. I use the 75HC595 to control a bunch
    of LEDs again with three I/O pins.

    Mike B.
    Original Message
    From: "digital_interior" <guyb@m...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, August 29, 2002 1:26 PM
    Subject: [noparse][[/noparse]basicstamps] many switches many leds


    > I am looking to control around 40 LEDs or 40 circuits of LEDs on a
    > large map of the US. The control will come from some momentary push
    > buttons. There will be somewhere around 48 buttons. I plan to use the
    > MAX7219 to drive the LEDs. This gives me up to 64 LEDs that I can
    > turn on and off. What I am looking for is a way to connect up the 48
    > or so momentary switches to the BS2 so the BS2 can send the correct
    > control string to the MAX7219 depending on which button was pushed. A
    > mux or encoder seems to come to mind but which one?
    >
    > Any help?
    >
    > Guy
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.