Re: Multiplexing signals
- From: T <nospam.kd1s@xxxxxxxxxxxxxx>
- Date: Sun, 25 Nov 2007 12:39:19 -0500
In article <c1f7915b-68a3-4ee1-8b78-40e2ff1a7613
@b15g2000hsa.googlegroups.com>, cfoley1064@xxxxxxxxx says...
On Nov 25, 1:34 am, T <nospam.k...@xxxxxxxxxxxxxx> wrote:
I don't know if I'm going down the right path here. I'm an electronics
hobbyist with no formal training.
I've got an Arduino board and I want to drive an 8x8 LED matrix. The
thing is there are 24 pins on the matrix.
Figured out that with six bits I could control all 24 lines if I could
multiplex it somehow.
I believe what I'm looking for is probably in a 74LS type chip but what
I've run across so far takes eight bits and shoots out a serial signal.
Not what I need at all, I need something with a bit of smarts.
The easiest way to control a lot of I/O with just a few pins is to use
a latching shift register. Data is presented serially (1 bit at a
time) to the data input, and then clocked in with another I/O pin.
These data bits are shifted in one bit at a time until you've got 'em
all. Then you toggle another pin to latch the data to the shift
register output pins. Simple, and you can daisy-chain the latching
shift register chips to allow you almost an unlimited number of
outputs.
Here's a data *** for an inexpensive IC that will do the job:
http://www.onsemi.com/pub/Collateral/MC74HC595A-D.PDF
The 'HC 595 (or actually three of them daisy-chained together) will
cover your 24 outputs quite nicely. You can just tie a small (.01uF)
cap to Vcc and a 10K pulldown resistor on the other side to have a
good power-on reset signal to ensure the chips all come up with all
zeroes, if you want it. The output enable shouldn't be necessary for
your application, so just tie it low. Be sure to tie SQh of the first
IC to the data input of the second and SQh of the second to the data
input ofthe third IC to daisy chain.
Depending on which Arduino board you have, you've probably got
software commands available to shift out data bytes serially -- Read
The Fine Manual for more info.
Remember that the HC595 outputs can source only 6mA or so with all of
them on, so if you're driving the LEDs directly, choose resistors
accordingly. Either that, or go for greater complexity and get some
driver ICs.
Good luck
Chris
Thanks for the info. Yes, I'm aware of the functionality on the Arduino,
it's the Diecimila board. I had a feeling I'd have to feed it serially.
.
- References:
- Multiplexing signals
- From: T
- Re: Multiplexing signals
- From: Chris
- Multiplexing signals
- Prev by Date: Re: Newbie surppressed carrier question
- Next by Date: Re: Newbie surppressed carrier question
- Previous by thread: Re: Multiplexing signals
- Next by thread: Re: Multiplexing signals
- Index(es):
Loading