Sunteți pe pagina 1din 2

20/8/2015

ExperimentalHardware:PlayingwithLEDMatrices
0

Ms Siguienteblog

Crearunblog Acceder

ExperimentalHardware
ExperimentingandprototypingwithArduino

Friday, July 2, 2010

Tags

PlayingwithLEDMatrices

arduino(6)

AftercompletingalltheARDXexperiments,I
alreadyhadinmindwhatIwoulduseformy
firstrealproject...adotmatrixclockusing8x8
LEDmatrices!
ALEDmatrixisafancypieceofhardware
having64LEDs(inmycase128,64redand64
greenleds),whichhavenotasmanypins.The
ideaisthatwithmultiplexing,youcanlightone
rowatatime,andkeeploopingthroughall
rows,soitlooksallLEDsarelit,butactually
arelit1/8thofthetime.(Forsomereasonit
seemsmorelogicaltometoloopthroughthe8
rows,insteadofthecolumns.Especiallywhen
youwanttobuildaLEDmatrixshowingthetimeoranicemessageusing8rowsandmanymany
columns.)

ardx(2)
clock(2)
coding(1)
datalogger(1)
LCD(1)
LEDmatrix(2)
performance(1)

Search
Search

Withabitofresearch,IfoundawebshopcalledSureElectronicsoffering10pieces8x8bicolorLED
matrices.(Withabitofshippingcosts,stillverycheap.ActuallyIfoundtheirebaywebshopand
orderedthere.)
Controllingone8x8LEDmatrixrequiredalotofwires,8rowand8columnwires.ButtheARDXkit
comeswitha74HC595shiftregister.Usingthisshiftregister,thenumberofrequiredwiresreduce
abit.We'dhave:ground,vcc,data,clock,latchand8columnwires.Thatisstill13wires...

Links
Floris.cc
ARDXkit

Butwhenusingmultipleshiftregisterstopowerthecolumns,thenumberofrequiredwiresstays
thesame...Thetheshiftregisterspassonthedata(on/offvaluesofLEDs)andtherowwires
powerthecompleterowofallLEDmatrices.
TheShiftOuttutorialprovidesallthedetailsneededtowireeverythingupandevensomecode
samplestogetyoustarted.Probablyinsomefuturepost,I'llunveilmycodeandexplainthefine
detailsofcontrollingmultipleshiftregistersformultipleLEDmatrices.

Myprojectisasimpleclock,thatwouldrequire32colums,four8x8LEDmatrices,todisplay
"HH:MM"ina5x8font.Thatrequiresquitealotwirestoputonabreadbord,oreventwo.SoI
boughtaprototypecircuitboard,andI'llsoldereverythingtogether.FornowI'veput2LED
matricesonmybreadboards,andI'mdisplayingonlythehours.
AtfirstIusedasmallresistorforeveryrows,addingtothenumberofconnections,butifyou
carefullycalculateeveryaspectofyoursetup,itmightjustworkwithouttheresistors...
Tinkerlog.comthoroughlyexplainedLEDsandwhythewouldrequirearesistor.MyLEDmatrix
specshavethefollowingrelevantnumbers:
Maxcurrent:20mA
Maxpulscurrent:100mA(pulse<=10msandduty<1/10)
Sotryingtofollowthecalculations,Imustadmit,Ilostitabit...Inmycase,notallLEDsarelit

http://xpware.blogspot.com/2010/07/playingwithledmatrices.html

1/2

20/8/2015

ExperimentalHardware:PlayingwithLEDMatrices

andtheyarelit1/8thofthetime.Having1LEDlitinarow,is
somethingdifferentfromhavingapproximately10liton
average.Butaftergoingthroughthecalculations,asmall36
Ohmresistorwouldberequired.Nothavingsucharesistor
andhavingmorethanoneLEDlitatatime,mademeomitthe
resistors.TheLEDsnowshineniceandbright...)butnotso
brightthattheymightburn.(FewdayslaterI'vebought30
Ohmresistors,andaddingthemdoesalmostnotchangethe
brightness.Leavingthemoutshouldnotbeaproblem,aslong
asmorethanafewLEDsperrowarelit.)
TomorrowI'llstartsolderingeverythingtogetherona
prototypecircuitboard.Iguessitwilltakesometimetosolder
allthosepieces...
AfterthatI'lladdanalarmandprogrammingbuttons,DCF77,
somenicecasewithtouchsnoozeswitch?

PostedbyJasperat2:31AM

Recommend this on Google

Taggedwith:arduino,clock,LEDmatrix

Nocomments:
PostaComment
Enteryourcomment...

Commentas:

Publish

NewerPost

Unknown(Google)

Signout

Notifyme

Preview

Home

OlderPost

Subscribeto:PostComments(Atom)

AwesomeInc.template.PoweredbyBlogger.

http://xpware.blogspot.com/2010/07/playingwithledmatrices.html

2/2

S-ar putea să vă placă și