Pages: [1]   Go Down
Author Topic: Double Digit 7-Segment Multiplexing  (Read 2228 times)
0 Members and 1 Guest are viewing this topic.
Chile
Offline Offline
Sr. Member
****
Karma: 0
Posts: 260
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have some Common Anode 7-Segment LED diplays. Is there any library to run them?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure. Did you search for any?
How many is "some"?
Someone posted very recently even a sketch to multiplex 3 digits, part of a 900 second countdown timer.
http://arduino.cc/forum/index.php/topic,65026.15.html

Did you want to control them via shift register to save pins? (1 register per digit)
Did you want to multiplex them? (7 IO pins, plus anode control per digit, perhaps a compination of shift register & anode contriol/digit?)

Scroll down here to LED stuff
http://arduino.cc/playground/Main/InterfacingWithHardware#Output, see if anything suit your fancy.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Chile
Offline Offline
Sr. Member
****
Karma: 0
Posts: 260
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I have 2 digits displays, common annode, and my idea was to multiplex them using PNP transistors, without a shift register.
This links you sent are enough help.
Now I´ll have to strat experimenting with the timer interrupt code.
Thanks!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Timer interrupt? Seems like overkill.
Use blink without delay, every pass thru loop see if 5-10-15mS have gone by and drive the other digit if it has.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minneapolis, MN USA
Offline Offline
Full Member
***
Karma: 2
Posts: 162
Never catch a falling soldering iron...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@pgmartin,
You could look at the library I provide with the Digit Shield.  I use timer interrupts to automatically handle the multiplexing so that your Arduino sketch can do other useful things without worrying about the timing of the multiplexing.
http://nootropicdesign.com/digitshield/
Logged

Toronto, Canada
Offline Offline
Edison Member
*
Karma: 2
Posts: 1234
"Keep it R.E.I.L. - "Research, Experiment, Investigate and Learn"
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys; I just post a program to multiplex 2 digit. It count from 0 to 99 and repeat. Not test yet. It use a 7447 BCD to display decoder. Here the link.
http://arduino.cc/forum/index.php/topic,65026.30.html
Logged

Toronto, Canada
Offline Offline
Edison Member
*
Karma: 2
Posts: 1234
"Keep it R.E.I.L. - "Research, Experiment, Investigate and Learn"
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ pgmartin

I just finish testing and refine my 2 digit multiplex program. It work fine. Check the new post up. Same link of July 11 post.
Logged

Chile
Offline Offline
Sr. Member
****
Karma: 0
Posts: 260
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Techone: Will, do. Thanks!
Logged

Pages: [1]   Go Up
Jump to: