Sie sind auf Seite 1von 4

7.12.

2014

GoogleErgebnisfrhttp://4.bp.blogspot.com/oAesiXkofYU/TpXFlTdiJSI/AAAAAAAAAFA/oh5pi0dGl5Q/s1600/FNAOI34FWMO2YY6.jpg

Tutorial:108LEDMatrix+Arduino
BysohilpatelinArduino,Tutorial

October12,2011

18Comments

In this tutorial I will show you how to build a quite fancy 8 by 10 L.E.D matrix(with scrolling text and
animations)usingtheArduinoand4017decadecounter.Thistypeofmatrixiseasytomakeandprogramand
itisagoodwaylearnaboutmultiplexing.

Components:
1.80L.E.D.s
2.8resistors(ThevalueisdetermentbythetypeofL.E.D.s)
3.4017decadecounter
4.101KOhmresistors
5.102N3904transistors
6.Somesinglecorewire
7.GCB
8.Arduino

Step1:HowtochooseLEDs
Thisisoneofthemostimportantpartofthisproject,becauseitbasedonLEDsitsverycriticaltochoosethe
rightones.Irecommendusing5mmdiffusedLEDsbecausetheygiveagoodamountoflightandmakeaclear
image.
Step2:SolderingtheMatrix
data:text/htmlcharset=utf8,%3Cheader%20class%3D%22entryheader%22%20style%3D%22display%3A%20block%3B%20marginbottom%3A%2020p

SolderingtheLEDmatrixisaverytrickything,therearealotofwaystodoitandIwillgiveyoumine.

1/4

7.12.2014

GoogleErgebnisfrhttp://4.bp.blogspot.com/oAesiXkofYU/TpXFlTdiJSI/AAAAAAAAAFA/oh5pi0dGl5Q/s1600/FNAOI34FWMO2YY6.jpg

YouneedtoconnectallthepositiveleadsoftheLEDsincolumnsandthenegativeleadinrows.
NowyoudothisbytakingthepositiveleadofthefirstLEDandbenditdowntotheotherLEDs,solderthe
pinswhichtoucheachother,fromheretakethelastleadthat
yousolderedandbenditagaindownandrepeattillyouhaveallthepositiveleadsconnectedinthecolumn.
sniptheleadsthatyoudidntuse.
Nowthetrickypartisconnectingthenegativepinsinarowbecauseyoucantbendthemandsolderlikeyou
didwiththepositiveleads.Mymethodsaveslotsoftimeandisalotsimpler.Thetrickistoputsometapeor
simpleadhesivetapeonthecolumnsconnectionstoisolatethemfromthenegativepinsandifyoudothatyou
canbendthenegativeleadstooandconnectthemlikeyoudidwiththepositiveones.
Circuit:

Connections:
Viaaresistoryouconnecteachcolumntothearduino(pins07).
Theresetpinofthe4017goestopin8onthearduinoandtheclockpingoestopin9onthearduino.
Step3:Multiplexing?
Sowhatismultiplexing:
Itisbasicallyawaytosplitinformationintolittlepeacesandsenditonebyone.
thiswayyoucansavealotofpinsontheArduinoandkeepyourprogramquitesimple.
Inourcasewesplittheimagethatwewanttodisplayto10peaces(10rows),Wewanttoscantherowsofthe
matrix(lightuponerowatatime)andsendinfofromthe
Arduinotothecolumns.
AllthecolumnsarepositivesoftheLEDsandtherowsarenegativessoifthefirstrowisconnectedtoground
andwesendinformationtothecolumnswewillonlylight
thefirstrow.
Togetagooddisplayweneedtoscantherowsveryfast,sofastthethehumaneyethinksthatalloftherows
areconnectedatthesametime.
WhyIC4017:
ForthisLEDmatrixIwantedtousethisusefulIC.
HeresagoodsitetolearnthebasicsofthisIC:http://www.doctronics.co.uk/4017.htm
The4017decadecounterisusedtoallowmultiplexing.

data:text/htmlcharset=utf8,%3Cheader%20class%3D%22entryheader%22%20style%3D%22display%3A%20block%3B%20marginbottom%3A%2020p

2/4

7.12.2014

GoogleErgebnisfrhttp://4.bp.blogspot.com/oAesiXkofYU/TpXFlTdiJSI/AAAAAAAAAFA/oh5pi0dGl5Q/s1600/FNAOI34FWMO2YY6.jpg

ThisICbasicallyscanstherowsofthematrix(lightsuponerowatatime).
Inourcasewewanttoconnecttherowstogroundbutthe4017doesntbuildtosinkcurrent,sotosolvethis
littleproblemweneedtouseatransistorwitharesistor.
The 4017 has 10 output pins so we need 10 resistors and 10 transistors, we connect the 1K resistors to the
outputsofthe4017andthebaseofthetransistortotheother
endoftheresistor.
Thenweconnectthecollectorsofthetransistortotherowsandtheemittertotheground.
(YoucanalsouseBC547npntransistor)

Step4:Programming>
havewrittenalittleprogramtomakescrollingtextandaddedallthelettersandnumber
(lotsofwork),Iusedportsformyprogrambecauseitsavesspaceandeasiertohandle.
IfyoudontknowhowtoworkwithportsonthearduinoIrecommendtogoonthearduiowebsitealearn
beforeyoustart.
herealink:http://arduino.cc/en/Reference/PortManipulation
If you want to make your own images I have made a little excel tool that will make writing images a lot
easier.whichyoucanfindinthezipfolderwhichIattachedattheend.
Andthelastthingsistonotforgettounplugpins0and1whenyouuploadyourprogrambecausethispins
alsousedascommunicationpinsandmaycausesomeerrorswiththeprogram.

TheBisforArduino
Language,sodontworry
aboutit.
data:text/htmlcharset=utf8,%3Cheader%20class%3D%22entryheader%22%20style%3D%22display%3A%20block%3B%20marginbottom%3A%2020p

3/4

7.12.2014

GoogleErgebnisfrhttp://4.bp.blogspot.com/oAesiXkofYU/TpXFlTdiJSI/AAAAAAAAAFA/oh5pi0dGl5Q/s1600/FNAOI34FWMO2YY6.jpg

DownloadProjectfilesfromHere
Yupiii!!!Itsdone.
Iwillhappyifyoumakethisanddontforgettopostyourvideohere.
Youcancheckmyvideo.

data:text/htmlcharset=utf8,%3Cheader%20class%3D%22entryheader%22%20style%3D%22display%3A%20block%3B%20marginbottom%3A%2020p

4/4

Das könnte Ihnen auch gefallen