Pages: [1]   Go Down
Author Topic: Multiplexer question  (Read 597 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I've just got a Arduino duemilanove and I'm trying to play with 4 multi coloured LEDs. For some reason pins 0 and 1, the rx and tx ones? don't like the LEDs they just flash and pin 13 is quite uncooperative with fading them. So I'm limited to three LEDs (9 pins, 2 - 12). So I'm guessing I need to get a multiplexer. My local store where I got the duemilnove from has these ones:

4051, 4052, 4053, 74HC157, 74LS138, 74LS139, 74LS151, 74LS153, 74LS155, 74LS157

i am wondering which one, if none, to buy since i was reading an article which says the 4051 can't deal with brightness? just on-off...

thanks
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 603
Posts: 33385
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
For some reason pins 0 and 1, the rx and tx ones? don't like the LEDs they just flash

They are used as you say for TX and RX so they can't be used for LEDs and communicating with the computer at the same time. You have to override them in software so best not to bother.

Quote
and pin 13 is quite uncooperative with fading them.

Not all pins will output PWM and so not all can be used in fading.

Quote
says the 4051 can't deal with brightness?
It's the only one of that list that does deal with analogue signals, all the other are on and off only, which is what you need if you are using PWM to fade the LEDs.

Please read the the articles on the playground on multiplexing and PWM.
« Last Edit: May 19, 2009, 09:23:22 am by Grumpy_Mike » Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6136
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

TI's TLC5940 allows you to control 16 channels with PWM.  There's a library in the playground that makes the chip nearly plug and play.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the quick reply mike. i went to the local store and bought a 4051 it was totally useless. i've ordered a TI TL5940. the local store guy told me they do free samples i was amazed, free fed ex shipping too. now i just have to wait a week and in the mean time do more arduino tutorials...

thanks again
Logged

Pages: [1]   Go Up
Jump to: