Cov txheej txheem:

Daim Npav Ua Lag Luam Dot Matrix: 8 Kauj Ruam (nrog Duab)
Daim Npav Ua Lag Luam Dot Matrix: 8 Kauj Ruam (nrog Duab)

Video: Daim Npav Ua Lag Luam Dot Matrix: 8 Kauj Ruam (nrog Duab)

Video: Daim Npav Ua Lag Luam Dot Matrix: 8 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Daim Npav Ua Lag Luam Dot Matrix
Daim Npav Ua Lag Luam Dot Matrix

Yog tias kuv daim npav lag luam teeb nyem tsis txaus rau koj, tom qab ntawv yuav ua li cas nrog ib daim duab puv puv ntawm nws uas tuaj yeem hloov kho rau tus lej ntawm cov lus xa? Qhov no tuaj yeem tsim ua kom muaj nuj nqis kwv yees li $ 5 qhov nqi, thiab nws tsuas yog me ntsis kim dua yog tias koj tab tom ua qee yam. Kuv yuav tsis hais rau koj tias qhov no yog qhov yooj yim tsim los ua - tsis txhob sim nws tshwj tsis yog tias koj muaj cov txuj ci zoo heev thiab qee qhov kev paub hauv tshuab hluav taws xob. Qee yam ntawm cov khoom ntawm no me dua cov nplej, yog li nws yuav muaj txiaj ntsig kom muaj qhov muag zoo ib yam! Zoo li daim npav teeb nyem, nws yog qhov pov thawj ntawm lub tswv yim ntau dua li qee yam uas koj tuaj yeem tawm hauv qhov ntau, tab sis nws yuav tsawg kawg muab koj lub tswv yim ntawm yam uas tuaj yeem ua tiav, thiab qhov twg daim npav lag luam yuav nyob hauv ob peb xyoos xwb.

Kauj Ruam 1: Txog Tus Tsim

Txog Kev Tsim
Txog Kev Tsim

Nov yog daim npav uas yuav haum rau kev lag luam thev naus laus zis siab, lossis cov uas tau koom nrog hauv cov ntawv cog lus muaj txiaj ntsig, qhov twg cov duab tshiab yog txhua yam tseem ceeb. Kuv yuav tsis hais qhia tias nws yuav hloov daim npav ua lag luam ib txwm muaj, tab sis kom ua rau txhua tus neeg xav tau kev cia siab tseem ceeb, yuav muaj ntau dua li ob peb lub tuam txhab uas yuav zoo siab siv tsuas yog ob peb duas las ntxiv. Zoo li daim npav teeb nyem, lub hom phiaj yog tsim daim npav lag luam uas tib neeg tsis tuaj yeem pov tseg! Tus qauv tsim yog yooj yim heev rau nws ua dab tsi - lub matrix ntawm 5x15 LEDs, txuas nrog ib leeg -nti "PIC" microcontroller. Ib txhais tes ntawm cov neeg tiv thaiv thiab hloov pauv ua tiav qhov tsim (Schematic muaj hauv qab no). Los ntawm kev ua kom lub microcontroller nyob rau hauv hom pw tsaug zog tshwj tsis yog cov nyees khawm tau nias, lub roj teeb tuaj yeem nyob ntev ntau xyoo, thiab tseem tso cai rau ob peb txhiab tus lus ntawm koj cov lus.

Kauj Ruam 2: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
  • Ib lub roj teeb CR2032 (Kuv tau txais lawv txog li 16 xees ntawm ebay thaum kuv yuav 100)
  • Ib lub roj teeb CR2032 (Kuv siv ib feem 18-3780 los ntawm www.rapidonline.com. Qhov no raug nqi kwv yees li 14 xees hauv qhov ntau ntawm 100 - cov no yog hom tuav nrog uas koj yuav tsum muaj peev xwm nrhiav tau ntawm qhov chaw zoo li www.mouser.com yog tias koj nyob sab nraud ntawm Atlantic rau kuv!)
  • Ib PIC16F57 (Kev xaj xaj 1556188 los ntawm www.farnell.com - Cov no raug nqi 66 xees txhua hauv 100+ qhov ntau - ntxiv, koj tuaj yeem pom lawv ntawm www.mouser.com)
  • Plaub qhov hloov pauv saum npoo (Ntu 78-1130 los ntawm www.rapidonline.com ntawm 20 xees txhua)
  • Qee qhov sib txawv ntawm cov resistors thiab cov capacitors hauv "0805" pob -mount pob - koj yuav xav tau 5x100 ohm resistors, 2x10k resistors, 1x47k resistor, 1x47p capacitor, thiab 1x100n capacitor - ib qho ntawm cov khoom lag luam hais los saum toj no ua qhov no, thiab lawv yuav luag tsis muaj dab tsi!
  • 75x "0603" LEDS - ci li sai tau, thiab pheej yig li sai tau! Kuv siv cov khoom 72-8742 ntawm 6 xees txhua tus los ntawm Ceev, tab sis ntxiv, koj yuav tsum tuaj yeem tau txais lawv ntawm lwm tus neeg xa khoom. Hauv qhov ntau, koj tuaj yeem tau txais cov no mus txog 3 xees txhua.
  • Qee qhov ob tog ua ob daim nplaum nplaum uas tuab dua li lub roj teeb uas koj siv - kuv yog tuab 4.5 hli)
  • Ib daim ntawv luam tawm Circuit Board (PCB) rau txoj haujlwm - cov lus qhia rau tsim koj tus kheej dhau ntawm cov kab lus ntawm kab lus no, tab sis koj yuav muaj qee qhov ua tiav nrog cov hlau -lossis lossis txheej txheem yees duab (kuv nyiam cov txheej txheem). Koj tuaj yeem nrhiav cov lus qhia rau ua koj tus kheej luam tawm cov laug cam nyob rau lwm qhov ntawm cov lus qhia thiab lwm qhov chaw. Cov txheej txheem PCB tau rov tsim dua hauv qab no hauv cov ntawv PDF yog tias koj xav sim koj tus kheej.

Koj tseem yuav xav tau cov hlau txuas (ntxiv rau cov laug), rab riam txiav, qee cov tshuaj nplaum, thiab ib txoj hauv kev luam tawm ntawm koj daim npav ua ntej - koj tuaj yeem siv xim laser lossis inkjet. Kuv luam tawm ntawm OHP zaj duab xis pob tshab. Koj kuj tseem yuav xav tau txoj hauv kev los tsim lub PIC microcontroller. Kuv siv PICKit2 uas yog tus lej 579-PG164120 los ntawm www.mouser.com, thiab muaj nyob ib puag ncig $ 35. Ib txoj kab ntawm 5x0.1 nti PCB pins (xws li 22-0510 los ntawm Ceev) tuaj yeem raug thawb rau hauv tus programmer los ua tus cuam tshuam nrog lub rooj tsavxwm.

Kauj ruam 3: Pib Soldering

Soldering Pib!
Soldering Pib!
Soldering Pib!
Soldering Pib!

Muab cov khoom sib dhos tso rau ntawm lub rooj tsavxwm, pib nrog qhov tsawg tshaj plaws ua ntej (Xa mus rau cov duab). Ib khub ntawm tus tweezers muaj txiaj ntsig ntawm no - los ntawm kev muab lub ntsej muag ntawm lub lauj kaub rau ntawm lub ncoo, thiab tom qab ntawd rov ua kom nws tawg thaum muab tso rau hauv cov resistors lossis cov capacitors nrog tus tweezers, koj tuaj yeem ua tib zoo ntxiv cov khoom me me no. Nws tsis muaj teeb meem txoj kev nyob ib puag ncig cov khoom siv no mus, tab sis nws ua rau PIC (uas yuav tsum nyeem nrog kev sau ntawv kom raug raws li tau qhia hauv cov duab no), thiab tseem yuav tsum muab cov LEDs tso rau ntawm txoj hauv kev. Nws nyuaj rau qhia nrog LEDs uas nyob ib puag ncig lawv yuav tsum mus - kev sib txuas sab saum toj yuav tsum yog qhov zoo (lossis "anode"). Koj tuaj yeem qhia los ntawm kev sab laj cov ntaub ntawv rau LED - ib ntawm ob txoj hauv kev feem ntau yuav raug cim rau hauv qee txoj kev. Ib txoj hauv kev yooj yim dua yog qee zaum sim ib qho ntawm lawv los ntawm txuas ob peb ntawm cov xov hlau rau lub roj teeb me me 1.5V, thiab tom qab ntawd kov cov coj ntawm qhov kawg ntawm LEDs - yog tias nws yog txoj hauv kev ib puag ncig, koj yuav tsum pom qhov ci, tab sis yog tias siv tib lub roj teeb 1.5V, nws yuav tsaus muag heev, yog li koj yuav tsum tau ua tib zoo saib xyuas. Ib zaug ntxiv, kev qhia ntawm kev siv tshuaj yaj yeeb tsis nyob hauv thaj tsam ntawm tsab xov xwm no - Kuv tau ceeb toom koj tias qhov no tsis yog qhov pib ua haujlwm, yog li tsis txhob ua qhov no yog koj thawj qhov kev nqis peev mus rau qhov chaw thau khoom soldering! Nco ntsoov tias cov LEDs tsuas yog xub pib ntawm lawv cov hauv paus hauv qab - peb yuav siv qee cov xov hlau tom qab los txuas lawv cov thawj coj saum toj kawg nkaus.

Kauj Ruam 4: Pawg Ad-hoc Ob Chav Sided Board

Ib Pawg Ad-hoc Ob Chav Sided Board
Ib Pawg Ad-hoc Ob Chav Sided Board

Teem ib co kab zoo ntawm 'daim kab xev tsis pom' nqes mus raws cov kab ntsug PCB nyob ib sab ntawm txhua kab ntawm LEDs - qhov no yuav tso tseg cov xov hlau uas peb tab tom yuav xuas tes kov lawv. LEDs, kom mus txog txhua txoj kev mus rau tus tiv thaiv zoo li hauv daim duab. Nco tseg tias koj yuav xav tau plaub lub xov hlau nkaus xwb - qhov saum toj kawg nkaus yuav tsis xav tau yog tias koj siv PCB txheej txheem uas tau muab hauv kab lus no, vim nws siv PCB taug qab los txuas cov khoom siv.

Kauj ruam 5: Programming

Programming
Programming

Cov kauj ruam tom ntej yog tso qhov program hu rau hauv lub nti. Yog tias koj tau yuav PIC Kit 2 programmer, nws muaj txhua yam koj xav tau nrog nws. Rub tawm MatrixCode.zip cov ntaub ntawv los ntawm nplooj ntawv no, unzip nws thiab muab tso rau hauv phau ntawv teev npe qhov chaw ntawm koj lub khoos phis tawj - tom qab ntawd los ntawm MPLAB IDE, mus rau "Project" ntawv qhia zaub mov, xaiv "Qhib", thiab mus rau "lub ntsiab. asm "cov ntaub ntawv. Hloov cov lus khaws tseg (ib ncig kab 115 hauv kab ntawv) rau koj cov ntaub ntawv tiv toj ntau dua li kuv (!) - Cov lus tau sau nrog kab lus ntawm '1's thiab' 0's - a '1' txhais tau tias LED nyob. Yog tias koj saib zoo, koj yuav pom kuv lub npe sau nrog '1's. (Koj yuav tsum tig koj lub taub hau 90 degrees kom pom qhov no!) Koj muaj kev ywj pheej ua kom koj tus kheej lossis cov cim, yog li koj tuaj yeem muaj, piv txwv li, cov duab yooj yim ntawm lub tsheb txav mus rau sab laug yog tias koj xav tau. Nco ntsoov tias muaj plaub kab lus - ib qho rau txhua lub pob - koj yuav tsum qhia kom meej qhov ntev ntawm txhua cov lus los ntawm kev hais qhia tus naj npawb ntawm kab uas nws siv nyob hauv 'MSG1LEN, MSG2LEN …' cov lus txhais. Mus rau "Project" ntawv qhia zaub mov ntxiv, thiab xaiv "Quickbuild" - xyuas tsis muaj qhov yuam kev, thiab tom qab ntawd koj tau npaj rau qhov program. Kuv siv cov txheej txheem yooj yim ntawm kev ntxig ib txoj hlua tawg ntawm 5 tus pin los ntawm ib txoj hlua ntawm 0.1 "header pins rau hauv tus programmer, thiab tom qab ntawd tsuas yog kov 5 pins thaum lub sijhawm ua haujlwm. tsuas yog siv sijhawm thib ob los yog li ntawd, nws muaj peev xwm tswj tau tau zoo. Cov xub ntawm qhov kawg tus pin ntawm tus programmer yuav tsum ua kom haum nrog tus pin sab saum toj ntawm PCB (TSIS YOG LI QHOV TSEEB NTAWM NO PHOTO - WHOOPS!) Yog tias koj tab tom sim, nws tsim nyog Thaum koj npaj txhij rau qhov haujlwm, koj yuav tsum siv qhov cais 'PICKIT2' cov khoom siv nrog tus programmer, vim li cas los xij, MPLAB IDE tsis ua Txhawm rau ua qhov no, koj yuav tsum qhia meej txog tsev neeg ntawm PICs ("hauv paus"), thiab ntu tshwj xeeb (16F57), ua ntej rub cov ntawv Hex uas tau tsim hauv cov kauj ruam dhau los, thiab tom qab ntawd thaum kawg teeb tsa lub nti Yog tias txhua yam ua tiav, koj yuav tsum muaj peev xwm ntxig lub roj teeb (posi tive sab saud), thiab nias ib qho ntawm cov nyees khawm kom pom koj cov lus nqes mus!

Kauj Ruam 6: Tiav Tawm

Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm

Txhawm rau ntim cov ntawv pov thawj, kuv tau siv qee daim kab xev ua ob sab rau lub rooj tsavxwm, tig nws rov qab, thiab tom qab ntawd txiav qhov tshaj tawm. Tom qab ntawd kuv tau thim rov qab-luam cov duab nraub qaum ntawm daim ntawv OHP pob tshab. Los ntawm kev xa daim ntawv hla, thiab txuas daim ntawv lo lub tshuab luam ntawv dawb, koj tuaj yeem tau txais cov cim meej ntawm qhov pom kom pom pom dawb. Kuv kuj tau txuas ib daim ntawv uas tuab polypropylene (ua los ua ib daim npog rau cov ntaub ntawv sib dhos) rau ntawm cov ntawv hla uas siv qee cov tshuaj tsuag ua ntej muab tso rau sab xub ntiag ntawm daim npav thiab txiav tawm qhov tshaj. Yog tias koj xav siv tib daim duab ib yam li kuv, nws tseem muaj nyob ntawm nplooj ntawv no ua PDF.

Kauj Ruam 7: Cov Khoom Ua tiav

Cov Khoom Tiav
Cov Khoom Tiav

Cov khoom tiav yog qhia hauv qab no. Tam sim no koj tuaj yeem so, cov ntsiab lus uas koj muaj lub ntiaj teb daim npav ua lag luam zoo tshaj plaws (tsawg kawg txog thaum kuv ua kuv qhov tom ntej uas yuav muaj xim OLED xim!)

Kauj Ruam 8: Yav Tom Ntej

Yog tias kuv tsim cov lag luam no, kuv yuav hloov pauv ob peb yam. Ua ntej tshaj plaws kuv yuav hloov CR2032 xov tooj mus rau CR2016 vim qhov no yog qhov me dua, thiab tom qab ntawd muab tso rau hauv qhov chaw txiav hauv PCB. Los ntawm kev siv cov txheej txheem qis dua, cov tuab ntawm daim npav tuaj yeem raug txo kom txog li 1/8 ntawm ib nti (ntau dua li 1/4 nti tam sim no). Los ntawm kev siv qee lub roj teeb nyias-zaj duab xis tshiab, nws tseem tuaj yeem ua daim npav hloov pauv, txawm tias tus nqi siab dua. Kev tshaj lij-luam tawm txheej txheem thiab kev hloov pauv tuag rau daim kab xev ua npuas ncauj yuav pom cov ntawv sib sau ua ke sai dua, thiab saib me ntsis slicker ib yam. Tau kawg PCBs yuav raug tsim ua haujlwm zoo ib yam, thiab muaj neeg los ntawm 'khaws thiab tso' neeg hlau kom tso cai sib dhos kom nrawm dua ntxiv. xav cov duab thiab cov duab kos. Ntuj yog qhov txwv - yuav luag txhua yam khoom siv hluav taws xob tuaj yeem tso rau hauv daim npav lag luam - txuas tsis siv lub suab, lub suab kaw suab - yog tias leej twg xav siv cov tswv yim no lossis lwm yam cuam tshuam nrog kev lag luam, tom qab ntawv qhia rau kuv paub - koj tuaj yeem hu rau kuv ntawm info@lightboxtechnology. com. Hauv qab ntawm nplooj ntawv no kuv tau suav nrog Eagle PCB cov ntaub ntawv rau txoj haujlwm no. Ceeb toom tias nws yog qhov hloov pauv me ntsis ntau dua li qhov tau qhia hauv cov lus qhia no, yog li yuav tsis siv ntau tshwj tsis yog koj paub Eagle thiab zoo siab los ua qee qhov kev hloov kho rau koj tus kheej siv. Cov kev hloov pauv tseem ceeb yog tias nws yog ob tog (tsis xav tau daim kab xev/xaim ua ke hauv qib 4), hom hloov pauv muaj qhov hneev taw sib txawv me ntsis, thiab kuv siv cov roj teeb sib txawv. (Rau cov uas xav sim nws, Kuv tau hlais 20mm qhov nyob hauv nruab nrab ntawm PCB, thiab tom qab ntawd siv ob daim kab xev ntawm lub caij nplooj ntoo hlav xaim ntawm ob sab ntawm lub rooj tsavxwm los tuav lub roj teeb hauv, ua kom daim npav ua tiav ntau dua).

Pom zoo: