Cov txheej txheem:

LED Dot-Matrix Zaub: 8 Kauj Ruam (nrog Duab)
LED Dot-Matrix Zaub: 8 Kauj Ruam (nrog Duab)

Video: LED Dot-Matrix Zaub: 8 Kauj Ruam (nrog Duab)

Video: LED Dot-Matrix Zaub: 8 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
LED Dot-Matrix Zaub
LED Dot-Matrix Zaub

Nov yog qhov yooj yim HOW-TO ua rau koj tus kheej tus kheej LED Dot-Matrix zaub. Kuv yuav ntxiv qhov kev kawm tiav nrog kev piav qhia kom pom lub teeb LED nrog. Nws tseem yog qhov hackable, koj tuaj yeem hloov nws kom haum rau koj tus kheej.

Kuv txiav txim siab los ua kuv tus kheej dot matrix zaub vim tias lawv saib txias, thiab tsis muaj leej twg tuaj yeem pom hauv xiav, uas yog xim zoo tshaj, yog li kuv txiav txim siab, kuj tseem yuav ua rau kuv tus kheej.

Kauj Ruam 1: Npaj

Npaj
Npaj
Npaj
Npaj

Thawj txoj haujlwm yog npaj phiaj xwm.

Kuv ua lub cuircuit ntawm Eagle yog li kuv tuaj yeem pom cov kev sib txuas thiab sim cov lej LED. Nws tseem ua rau kuv kawm paub yuav ua li cas teeb tus kheej LEDs. Thawj qhov ua yog ntxiv txhua yam khoom txhawb rau PIC, yog li kuv xav tau lub zog siv, rub lub qhov (socket) thiab rov pib dua. Kuv kuj yuav tsum npaj cov txiaj ntsig tau yooj yim los siv kab. Qhov no tau piav qhia qhov loj ntawm PCBs yog li kuv siv sijhawm ntau npaum li kuv tuaj yeem txo qhov loj me kom txog thaum kuv tsis tuaj yeem tau txais nws me dua. Cov kauj ruam tom ntej yog tso 20 LEDs hauv dot-matrix, txuas txhua qhov anodes hauv kab thiab tag nrho cov cathodes hauv kab. Qhov no tsis tuaj yeem ua tsis tau siv cov xov txuas tshwj tsis yog tias koj siv ob txheej txheej lossis ob tog sib dhos. Kuv tsis yog li kuv yuav siv cov xov txuas.

Kauj ruam 2: PCB

PCB
PCB

Zoo nws yuav tsum tau ua qee yam li cas.

Kuv tsim PCB hauv tsev kawm ntawv cov khoos phis tawj, uas muaj PCB Wizard 3. Cov software zoo heev, siv tau yooj yim tab sis tseem muaj zog heev. Hmoov tsis zoo qhov no txhais tau tias thaum kuv muaj PCBWiz3 cov ntaub ntawv, Kuv tsis muaj lawv nyob hauv lwm hom ntawv, thiab tsuas yog cov duab kuv muaj yog daim duab-etch qhov ncauj qhov ntswg, ib txwm ua tau zoo los qhwv lawv hauv daim duab-etch daim npog ntsej muag rau tom qab siv, lossis tsuas yog cov ntaub ntawv. Hmoov tsis zoo lawv tau tshuaj xyuas qhov tsis zoo. Txawm li cas los xij thaum kuv rov txhim kho lub Circuit Court ntawm Eagle, Kuv tau ploj mus thiab rov tsim PCB.

Kauj Ruam 3: Tau Cov Khoom

Tau Qhov Chaw
Tau Qhov Chaw

Thaum koj paub tias koj yuav ua dab tsi koj xav tau cov khoom siv. Kuv siv: 20 Diffused Blue LEDs1 PICAXE 18X Microcontroller1 serial socket1 22kOhm resistor1 10kOhm resistorlots dub multicore wirelots ntawm liab multicore wireI kuv siv PICAXE PIC li kuv tau siv rau hauv tsev kawm ntawv, lawv yooj yim heev. Kuv pom lawv yooj yim heev rau program, thiab tom qab ntawd rub tawm qhov program rau. PICAXE BASIC yog qhov lus PIC nkaus xwb kuv paub ib yam, yog li ntawd txwv lawv. Lawv tau txhais los ua qhov yooj yim mus nrhiav, txawm hais tias hauv tebchaws Askiv koj tuaj yeem mus rau Rapid Electronics - PICAXEPICAXE phau ntawv qhia - Nws yog.pdfPICAXE nti cov ntaub ntawv - kuj yog.pdfI yuav cov LEDs tib lub sijhawm, tam sim no raws li kuv tau mus rau xiav dot-matrix cov no yog qhov kuv xaiv, thiab kuv tau them rau qhov ntawd, 48p rau ib qho LED, yog li £ 12 rau tag nrho ntau, nws tau pheej yig dua los yuav hauv pob ntawm 25. Tau kawg yog koj yuav ua nws koj tuaj yeem siv tau yam koj xav tau, txawm hais tias siv kuv li PCB txheej txheem koj yuav xav tau pob 5mm. Kuv xav tau 4k7 Ohm resistor rau kev rov pib dua, tshwj tsis yog tus pin rov pib dua (tus pin 4) raug rub siab los ntawm 4k7 ohm resistor ces PIC yuav tas li rov pib dua, uas yog qhov tsis zoo. Kuv siv lub qhov tso suab tso suab, 10k ohm resistor thiab 22k ohm resistor rau rub lub qhov (socket), qhov no txhais tau tias tag nrho chav nyob yog tus kheej muaj, uas yog siv tau yooj yim. Kuj tseem tiv thaiv PIC kom raug puas tsuaj vim kuv tseem yuav tsum rub nws tawm thiab thaum kawg kawg snapping ob txhais ceg tawm, dab tsi yog txoj hauv kev pov tseg £ 4.75… Txawm li cas los xij peb siv cov laug cam tsis zoo yog li cov kab tuaj yeem rub tawm tau yooj yim, tab sis kuv tsis xav tias yuav muaj teeb meem, tseem tsis tau muaj yam tsawg. Huag kuv nyob rau qhov mob.

Kauj ruam 4: Soldering

Soldering
Soldering
Soldering
Soldering
Soldering
Soldering

Thaum koj muaj cov ntu, nws yog lub sijhawm los txuas lawv txhua tus ua ke.

Thawj lub rooj tsavxwm uas kuv pib siv rau ntawm lub rooj tsavxwm. Muaj ntau qhov laj thawj, nws zoo li tho txawv tshaj plaws, nws yuav lom zem ua si nrog thaum kuv tau ua tiav, thiab nws yuav tsis txaus, tos, kuv puas tau hais txog qhov ntawd? Yog li ib zaug kuv tau ntxuav cov kab nrog qee cov xov hlau kuv pib txiav thiab txuas cov xov txuas. Cov no tau raug fiddly thiab nyuaj ua thiab tom qab ntawd kho nyob rau hauv qhov chaw, yog li tsis muaj ib tus neeg siv khoom siv tes ua tes-ntiv tes uas kuv tau siv los muag, uas coj kuv mus rau qhov kev tshawb pom, tsis yog thawj zaug, qhov muag uas muag hlawv yog cov khoom phem. Thaum qhov no ua tiav Kuv pib siv cov LEDs, Kuv pib los ntawm sab saum toj thiab ua haujlwm kuv txoj hauv kev los ua lawv tus kheej, kom txog thaum kuv tau dhuav thiab pib ntawm txhua kab ib zaug. Txog rau qhov kawg nws tau nyuaj heev vim tias LED coj mus tawm ntawm txoj kev. Thaum tag nrho 20 LEDs tau muag, kuv tau tawm tsam sab nraub qaum thiab tshem tawm txhua qhov kev ua phem rau kom deb li kuv ua tau. Thiab muaj tseeb rau kuv qhov kev xav ua ntej tau rub lub roj teeb 6v spare thiab cov roj teeb kaw thiab pib ua cov xov hlau nce thiab nqis cov kev sib txuas teeb pom kab. Qhov no zoo li zoo nkauj ntawm nws tus kheej, tsis raug, qhov seem ntawm qhov haujlwm yuav tsim nyog nws tsuas yog saib qhov no. Tau kawg rau qee qhov laj thawj coj txawv txawv tag nrho cov kab tau teeb ua ke tab sis ntawm qhov no kuv tsis tau hnov dua …

Kauj ruam 5: Neaten Nws Up

Neaten Nws Up
Neaten Nws Up

Thaum koj tau muab cov laug cam tso ua ke nws yog lub sijhawm los kho lawv. Muaj ntau yam uas koj tuaj yeem ua tau.

Tshem tawm cov dej ntws ntau dhau: Flux pab cov dej ntws ntws thiab ua kom muaj kev sib cuag zoo tab sis nws zoo li tsis zoo nkauj thaum qhuav thiab yog qhov zoo tshaj plaws tshem tawm ntawm qhov zoo nkauj ntawd. Txoj hauv kev zoo tshaj los ua qhov no yog koj dab ntawm lub rooj tsavxwm nrog cov khaub ncaws uas koj tau ntub hauv acetone. Koj nyob qhov twg txog qhov koj yuav tau txais acetone Kuv hnov koj quaj? Zoo koj tuaj yeem tau txais qee lub khw muag khoom kos duab, koj tseem tuaj yeem yuav nws ntawm qee lub nkoj/nkoj khw raws li ib feem ntawm cov iav fiber ntau, txawm li cas los xij qhov zoo tshaj plaws yog qhov tseeb pheej yig tus ntsia thawv kua nplaum tshem tawm. Yog li lub taub hau mus rau koj tus kws muag tshuaj pheej yig tshaj plaws nyob ze thiab pib nrhiav tus ntsia thawv ntsia hlau pheej yig tshaj plaws tshem tawm. Kuv tab tom tham txog 49p rau 200ml, kuv qhov kev paub dhau los qhia tias qhov no los hauv lub raj mis liab. Ntxuav cov ntug ntawm cov laug cam: Qhov no yooj yim xws li txhuam cov npoo ntawm pawg thawj coj saib kom lawv du thiab tiaj tus. Nws tseem yog qhov zoo heev los hloov cov npoo. Thiab qhov ntawd yog hais txog nws rau lub sijhawm no.

Kauj ruam 6: Programming

Programming
Programming

Yog li koj tau ua nws, koj tau ntsaws lub roj teeb, tab sis tos, tsis yog, nws tsis ua haujlwm, lossis tej zaum koj tsuas yog yuav tsum tau teeb tsa nws… Ah uas yog lub tswv yim zoo. Ua rau ntawm kuv qhov kev xav, Kuv muaj lub qhov rub tawm twb tau nyob ntawm PCB, yog li, tsuas yog tsoo hauv kab ntawv rub tawm, ntsaws qhov rau hauv qhov chaw nres nkoj hauv koj lub PC, tau txais Programming Editor, thiab tau txais coding! programmed PICAXE ua ntej, Kuv tau muaj txog 4 xyoos dhau los txog tam sim no, GCSE thiab AS/A qib. Thawj qhov uas yuav tsum tau ua yog ntaus:

main: tseem ceebQhov no tsuas yog teeb tsa PICAXE rau txoj haujlwm, tso tus lej tseem ceeb ntawm lub ntsiab thiab nkag mus rau lub ntsiab, Kuv ua qhov no yog li kuv tsis txhob hnov qab ua nws tom qab. Cov haujlwm tom ntej yog teeb tsa cov txiaj ntsig, tus pin koj xav tau siab, thiab qhov twg qis. Txoj hauv kev ntev thiab siv sijhawm yog mus

siab 1high 2high 3low 1low 2low 3Lossis koj tuaj yeem ua tau txias thiab teeb tsa lub xeev tag nrho hauv ib kab nrog

cia pins = %00001110letins pins = %00000000Qhov no ua haujlwm los ntawm kev muab txhua tus lej tshwj xeeb tus lej, yog li tus pin 8 yog tus nrig nrig, tus pin 0 yog tus lej kawg thiab ntxiv rau. Peb kuj yuav tsum tuaj yeem ncua sijhawm nyob rau ntawd kom cov pins tau tso tseg ntev txaus rau LEDs kom pom kev. Muaj 2 lub ntsiab lus PICAXE tos tos, tos thiab ncua, tos 1 tos rau 1 thib ob, qhov twg raws li ncua 1 tos rau 1uSecond, uas yog yam peb xav tau. Cov uas nyiam mus rau nit xaiv yuav tau pom tias tsuas muaj 8 tus pin ntawm tus pin =%00000000 hais kom ua. Yog lawm, cuaj qhov tso tawm ntawm PICAXE18X tau ua txhaum cov lej tawm tus lej. Qhov no xav tau daim tshiab ntawm cov cai los teeb tsa

tsub $ 05, %00000000poke $ 05, %00001000Kuv tsis paub meej vim li cas qhov no thiaj ua haujlwm, lossis vim li cas nws thiaj li tsis xav tau, tab sis kuv tau txais nws los ntawm cov phooj ywg zoo ntawm PICAXE Rooj Sib Tham Yog li tso txhua yam uas ua ke muab rau peb

lub ntsiab: & apos Letter Alet pins = %00011000 & apospoke $ 05, %00000000 & apos Teeb SERTXD kab lowpause 1 & aposlet pins = %00100101 & apospoke $ 05, %00001000 & apos Teeb SERTXD kab highpause 1 & aposlet pins = %01000101 & apospoke $ 05, highpause 1 & aposlet pins = %10001000 & apospoke $ 05, %00000000 & apos Teeb SERTXD kab lowpause 1 & aposgoto lub ntsiab & aposQhov ntawd yuav tsum tso tawm tsab ntawv A ntawm koj cov duab dotmatrix

Kauj Ruam 7: Qhov Ua tiav

Qhov Ua Tiav
Qhov Ua Tiav
Qhov Ua Tiav
Qhov Ua Tiav

Ntawm no nws tau nthuav tawm tsab ntawv A.

Thiab daim duab thib ob yog ntawm tsab ntawv B hauv qhov tsaus ntuj, cov no yog cov teeb ci xiav LEDs nrog lub tshiab them 4x AA 2500mAh roj teeb pob, ci heev. Tab sis tsis ci li koj tsis tuaj yeem pom cov zaub, zoo meej.

Kauj Ruam 8: Kev txhim kho

Kev txhim kho
Kev txhim kho
Kev txhim kho
Kev txhim kho
Kev txhim kho
Kev txhim kho

Nws ua haujlwm, yog li tam sim no dab tsi, bask hauv lub yeeb koob ntawm qhov ua tiav, thiab ua haujlwm txoj haujlwm, tsis yog, tsis yog rau thib ob. Kuv tuaj yeem ua kom nws zoo dua, kuv yuav ua kom nws pheej yig npaum li cas kuv tuaj yeem ua kom nws txias dua !!! Zoo ntawm no yog ob peb lub tswv yim uas tau ua rau kuv nyob ib ncig ntawm kuv lub taub hau. d poob tag nrho cov tuab ntawm txoj haujlwm los ntawm dab tsi, 5mm, me dua yog qhov zoo dua. Ntxiv rau SMD yog qhov txias dua saib, geek +5. SMD PIC, Whoa, ntau qhov zoo SMT, geek +10 tsawg kawg, ua li nws yuav tsis tshem tawm, tab sis koj tseem tuaj yeem rub tawm cov program rau nws thaum nws nyob ntawm lub rooj tsavxwm. Huag thiab nws yuav poob qhov tuab ntawm txoj haujlwm, tom qab 5mm (tsis txhob hnov qab rub lub qhov (txawm tias)). Professional PCB manufacturing, zoo, yuav ua li cas yooj yim woudl uas yog, paub meej tias nws yuav raug nqi me ntsis, tab sis nws yuav txhais tau tias cov laug cam zoo meej, zoo, zoo meej li koj tau ua. Koj kuj tseem tuaj yeem ua si nrog kev lom zem ua haujlwm zoo li ntau txheej lossis ob tog sib npaug, xav txog ob tog PCB, koj yuav tsis xav tau 2 cais PCB ces. Ntxiv rau qhov SMD sib piv zoo li cov neeg tawm tsam, LEDs adn PICs thiab koj tau txais cov qib zoo, tab sis pawg thawj coj saib kim. Nov yog cov npe los ntawm CadSoft, cov tib neeg uas ua Eagle, PCB Chaw tsim khoom. Larger zaub, feem ntau cov lus yog 5 los ntawm 7, kuv li 4 txog 5, yog li ua kom nws loj dua yuav qhib tag nrho cov kev xaiv tshiab. Ntawm qhov yuam kev koj xav tau ntau qhov kev tso tawm, Kuv tsuas muaj 9 qhov muaj, tab sis yog tias koj yuav tsum siv PICAXE28X koj muaj txog li 17 qhov muaj txiaj ntsig, uas yog 8 los ntawm 8 zaub. Zoo. Txawm li cas los xij yog tias koj txav deb ntawm PICAXEs mus rau lwm lub microcontrollers Kuv paub tseeb tias muaj cov uas muaj tus pin sib txawv. Lwm qhov kev xaiv yog rau Charlie-Plex cov txiaj ntsig, txawm hais tias koj yuav tsum muaj peev xwm teeb tsa tus pin tso tawm raws li cov tswv yim kom tau txais txoj haujlwm ntawd. Kuv ntseeg tias qhov no ua tau nrog feem ntau tsis yog PICAXE PICs, tshwj xeeb tshaj yog Arduino's., xws li 2 lub rooj sib cais sib cais, 1 lub rooj tsavxwm tiav thiab 1 lub rooj tsavxwm tiav nrog 2 txheej. Qhov ntawd txawm li cas los xij nyob ntawm pes tsawg tus neeg nyiam nws. Lossis koj tuaj yeem xa email tuaj rau kuv ntawm: pinski1 [ntawm] gmail.com Ntawm no yog qee cov duab ntawm kev teeb tsa.

Pom zoo: