Cov txheej txheem:

LED Dot Matrix Zaub: 5 Kauj Ruam
LED Dot Matrix Zaub: 5 Kauj Ruam

Video: LED Dot Matrix Zaub: 5 Kauj Ruam

Video: LED Dot Matrix Zaub: 5 Kauj Ruam
Video: ЗАПРЕЩЁННЫЕ ТОВАРЫ с ALIEXPRESS 2023 ШТРАФ и ТЮРЬМА ЛЕГКО! 2024, Hlis ntuj nqeg
Anonim
LED Dot Matrix Zaub
LED Dot Matrix Zaub

Hauv txoj haujlwm no, koj yuav tsum rov siv ob daim ntawv teev npe hloov pauv. Cov no yuav txuas nrog kab thiab kab ntawm dot matrix zaub. Tom qab ntawd koj yuav qhia qhov khoom yooj yim, lossis sprite, ntawm cov zaub thiab ua kom nws muaj zog. Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog los qhia koj li cas dot matrix zaub ua haujlwm thiab qhia lub tswv yim ntawm kev sib txuam vim tias qhov no yog txuj ci muaj txiaj ntsig kom muaj.

Kauj Ruam 1: Yam Yuav Tsum Tau

Yam Yuav Tsum Tau
Yam Yuav Tsum Tau

rau txoj haujlwm no koj yuav xav tau -: 1. 1 LED matrix 2. 8 resistors 1k ohm 3. 8 557 transistors 4. 1 ULN2803 IC 5 Arduino 6. 2 74HC595 hloov npe 7. 2 Lub rooj mov ci 8. Txuas txuas

Kauj ruam 2: Ua haujlwm

Dot matrix units feem ntau tuaj hauv 5x7 lossis 8x8 matrix ntawm LEDs. Cov LEDs tau xaim hauv cov lej xws li anode lossis cathode ntawm txhua LED yog ib txwm muaj nyob hauv txhua kab. Hauv lwm lo lus, hauv ib qho anode LED dot matrix unit, txhua kab ntawm LEDs yuav muaj tag nrho lawv cov anodes hauv kab ntawd txuas ua ke. Cov cathodes ntawm LEDs yuav tag nrho tau txuas ua ke hauv txhua kab ntawv. Qhov laj thawj rau qhov no yuav dhau los sai sai. Ib qho xim ib txwm 8x8 dot matrix unit yuav muaj 16 pins, 8 rau txhua kab thiab 8 rau txhua kab ntawv. Yog vim li cas kab thiab kab txhua kab txuas ua ke yog txhawm rau txo tus naj npawb ntawm tus pin xav tau. Yog tias qhov no tsis yog, ib qho xim 8x8 dot matrix unit yuav xav tau 65 tus pin, ib qho rau txhua LED thiab ib qho anode lossis cathode txuas. Los ntawm xaim kab thiab kab ua ke, tsuas yog 16 tus pin xav tau. Txawm li cas los xij, qhov no tam sim no muaj teeb meem yog tias koj xav tau tshwj xeeb LED kom pom kev hauv qee txoj haujlwm. Yog tias, piv txwv li, koj muaj chav nyob anode ntau thiab xav ua lub teeb pom kev ntawm X, Y txoj haujlwm 5, 3 (kab 5, kab thib 3), tom qab ntawd koj yuav siv tam sim no mus rau kab thib 3 thiab hauv av kab thib 5. LED hauv kab 5 thiab kab thib 3 tam sim no yuav pom. Tam sim no cia peb xav tias koj tseem yuav pom lub teeb ci ntawm LED ntawm kab 3, kab 6. Yog li koj thov tam sim no rau kab thib 6 thiab tseb kab thib peb tus pin. LED ntawm kab 3, kab 6 tam sim no ci ntsa iab. Tab sis tos … cov LEDs ntawm kab 3, kab 6 thiab kab 5, kab 6 kuj tau taws teeb. Qhov no yog vim tias koj tab tom thov lub zog rau kab 3 thiab 6 thiab cov kab hauv av 3 thiab 5. Koj tsis tuaj yeem tua cov LEDs tsis xav tau yam tsis tau tua qhov koj xav tau. Nws yuav tshwm sim uas tsis muaj txoj hauv kev koj tuaj yeem pom tsuas yog ob lub LEDs xav tau nrog kab thiab kab txuas txuas ua ke zoo li lawv. Tib txoj hauv kev no yuav ua haujlwm yog kom muaj tus pinout cais rau txhua tus LED, txhais tau tias tus lej ntawm tus pin yuav dhia ntawm 16 txog 65. Ib chav 65-pin dot matrix unit yuav nyuaj heev rau xaim thiab tswj vim koj xav tau lub microcontroller nrog tsawg kawg 64 digital outputs. Puas muaj ib txoj hauv kev los hla qhov teeb meem no? Yog muaj, thiab nws hu ua multiplexing (lossis muxing). Multiplexing yog cov txheej txheem ntawm hloov ib kab ntawm cov zaub ntawm ib zaug. Los ntawm kev xaiv kab ntawv uas muaj kab uas muaj cov LED uas koj xav tau kom pom kev, thiab tom qab ntawd tig lub zog rau kab ntawd (lossis lwm txoj hauv kev puag ncig rau cov cathode ntau ib txwm pom), cov xaiv LEDs hauv kab ntawd yuav ci. Cov kab ntawd tau muab tua thiab kab tom ntej tau qhib, dua nrog cov kab uas tsim nyog tau xaiv thiab LEDs hauv kab thib ob tam sim no yuav ci. Rov ua dua nrog txhua kab kom txog thaum koj mus rau hauv qab thiab tom qab ntawd pib dua rau saum. Yog tias qhov no ua tiav nrawm txaus (ntawm ntau dua 100Hz, lossis 100 zaug hauv ib pliag) tom qab ntawd qhov tshwm sim ntawm qhov pom kev tsis tu ncua (qhov twg tom qab duab tseem nyob ntawm cov retina kwv yees li 1/25 ntawm ib pliag) yuav txhais tau tias cov zaub yuav tshwm rau ua kom ruaj khov, txawm hais tias txhua kab tau qhib thiab tawm ua ntu zus. Los ntawm kev siv cov txheej txheem no, koj tau nyob ib puag ncig qhov teeb meem ntawm kev teeb tsa ib tus neeg LEDs yam tsis muaj lwm lub LEDs hauv tib kab lossis kab ib yam kuj tseem tau teeb. Los ntawm kev tshuaj xyuas kab thiab teeb pom kev zoo ntawm LEDs hauv txhua kab ntawv ntawm kab ntawv thiab ua qhov no nrawm heev (ntau dua 100Hz) tib neeg lub qhov muag yuav pom cov duab zoo li khov kho thiab cov duab ntawm lub plawv yuav pom hauv tus qauv LED. Koj tab tom siv cov txheej txheem sib txuam no hauv Txoj Haujlwm txoj cai. Qhov ntawd yog yuav ua li cas koj thiaj li tso saib lub plawv ua yeeb yaj kiab yam tsis tau tso tawm LEDs tsis zoo.

Kauj ruam 3:

Duab
Duab

koj yuav tsum suav tus nqi ntawm cov tshuaj tiv thaiv koj tuaj yeem siv Koj yuav tsum xub tau txais qee qhov tshwj xeeb ntawm koj li LEDs, koj yuav tsum paub lawv qhov hluav taws xob rau pem hauv ntej thiab mus rau tam sim no, koj tuaj yeem tau txais cov ntaub ntawv no los ntawm cov ntawv teev tseg. Lub Circuit Court ua haujlwm ntawm 5V yog li koj qhov Source voltage yog 5V uas tuaj yeem tau txais los ntawm 5v adapter Rub tawm cov ntawv qub kom pom cov lej zoo dua.

Kauj ruam 4: Ua Nws Ua Haujlwm

Kuv tau ua qhov program uas nthuav tawm kab lus los ntawm arduino cov ntawv xov xwm ntawm tus lej, kuv tus lej yog qhov yooj yim heev. Kuv tau ua daim ntawv thov hauv xov tooj los ua tus font rau cov zaub. Thov mus saib nplooj ntawv hauv qab no txhawm rau txhim kho app

Kauj Ruam 5: Txhua yam Ua tiav !!!!!!!

Txhua Yam Ua Tau !!!!!!!!!
Txhua Yam Ua Tau !!!!!!!!!

Nrog koj zoo siab 8x8 coj matrix yog npaj txhij. Koj tuaj yeem tso saib txhua yam uas koj xav tau. Tam sim no koj tuaj yeem ua si nrog nws thiab ua 8x8 coj matrix los ntawm kev siv tus kheej siv lub Led los lossis 16x8 matrix thiab ntxiv rau !!!!!!

Pom zoo: