Cov txheej txheem:
- Kauj ruam 1: Txhua Tus LED
- Kauj Ruam 2: Ua Kom Yooj Yim Cube Tsim
- Kauj Ruam 3: Npaj LED
- Kauj Ruam 4: Tsim Cov Slices
- Kauj Ruam 5: Mus rau Electronics
- Kauj Ruam 6: Tsim Lub Vev Xaib
- Kauj Ruam 7: Nws Ua tiav
- Kauj Ruam 8: Clip ntawm Cov Khoom Kawg hauv Kev Ua
- Kauj Ruam 9: Animation - Snakes
- Kauj ruam 10: Thaum koj nkag mus rau hauv Groove
- Kauj Ruam 11: Qhov Tseeb Tseeb Ntawm Kuv Arduino Mega Code
Video: Arduino Mega 8x8x8 RGB LED Lub Vev Xaib: 11 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Yog li, koj xav tsim 8x8x8 RGB LED Cube
Kuv tau ua si ib puag ncig nrog cov khoom siv hluav taws xob thiab Arduino ib pliag tam sim no, suav nrog tsim lub siab amp hloov tus tswj rau kuv lub tsheb thiab rau txoj kab Pinewood Derby Tus Kws Txiav Txim rau peb pab pawg Scouts.
Yog li kuv xav paub thiab tom qab ntawd sib ntsib thaum kuv pom Kevin Darrah qhov chaw zoo nrog nws cov lus piav qhia ntxaws thiab tsim cov vis dis aus.
Txawm li cas los xij muaj ob peb thaj chaw ntawm nws tsim Kuv xav tias kuv tuaj yeem txhim kho.
Ntawm sab ntxiv:
- Kevin cov lus piav qhia ntxaws ntawm Arduino code xav tau rau txoj haujlwm nyuaj no ua kom yooj yim coding sab ntawm kev tsim.
- Kuv txhawb nqa Kevin kev siv cov transistors tus kheej los tsav txhua ntawm 192 cathodes. Whilst qhov no xav tau cov khoom siv nplua nuj tsim kho vajtse nws tso cai rau koj tsav txhua qhov LED nyuaj yam tsis muaj kev pheej hmoo hla dhau ib tus neeg tsav tsheb nti tswj 8 (lossis ntau dua) LEDs.
Cov cheeb tsam kuv xav txhim kho:
- Yuav tsum muaj txoj hauv kev zoo dua los tsim lub voos xwmfab nws tus kheej ntxiv rau muaj ntau dua 2000 qhov sib txuas sib txuas hauv 8x8x8 RGB cub thiab yog tias ib tus tsis ua tiav/tawg hauv nruab nrab nws yuav nyob ze rau qhov tsis tuaj yeem nkag mus thiab kho tau
- Txhua qhov xov hlau !!!! Kuv tau muaj qee qhov kev paub dhau los hauv kev tsim PCB's yav dhau los yog li txhawm rau tsim ib qho PCB rau ob qho tib si tuav tus lej tseem ceeb ntawm cov khoom siv xav tau thiab lub voos xwmfab nws tus kheej
Kev tshawb nrhiav ntxiv qhia ntxiv lub voos xwmfab tsim los ntawm qhov uas kuv tau coj lwm qhov chaw ntawm kev tshoov siab.
Nick Schulze tau tsim ib qho piv txwv zoo ntawm kev ceeb toom txawm hais tias nrog yooj yim STP16 khoos phis tawj thiab 32 ntsis chipKIT UNO. Kuv siv nws lub voos xwmfab tsim dua li Kevin's.
SuperTech-IT tau tsom mus rau ua kom yooj yim kho vajtse ib sab nrog PCB ib txoj hauv kev koom ua ke thiab nthuav dav ob qho tib si Kevin thiab Nick txoj haujlwm ua haujlwm nrog rau kev tsom mus rau tshem tawm txhua qhov thaiv.
Yog li txoj kev npaj tau teeb tsa. Siv Kevin cov txheej txheem, Nick's Cube tus qauv, tsim ib qho PCB thiab tsim kev daws teeb meem kom ob qho yooj yim tsim thiab ntxiv dag zog rau lub voos kheej kheej.
Kauj ruam 1: Txhua Tus LED
8x8x8 = 512 RGB LEDs. eBay yog koj tus phooj ywg nyob ntawm no thiab kuv yuav 1000 los ntawm tus neeg xa khoom Suav.
Kev tsim qauv kuv xaiv siv 5mm Common Anode RGB LED's - yog li txhua lub LED muaj Cathode (tsis zoo) xaim rau txhua ntawm peb qhov xim thawj (Liab/Ntsuab/Xiav) thiab ib qho Anode (zoo) xaim uas ib txwm muaj rau txhua xim
Kev ntsuam xyuas cov LED
Whilst pheej yig kuv tau txhawj xeeb me ntsis txog qhov zoo. Qhov kawg uas koj xav pom dud LED nyob nruab nrab ntawm koj lub voos xwmfab yog li kuv tau teeb tsa txog kev ntsuas txhua ntawm 512 LED's kuv yuav siv.
Txhawm rau ua kom yooj yim txoj hauv kev Kuv tsim me me lub khob cij thiab qhov yooj yim Arduino program uas yuav tsav ob lub LED Liab> Ntsuab> Xiav ib tus zuj zus thiab tom qab ntawd tag nrho rau Dawb ntawm nias lub pob.
Ib qho LED yuav ua raws li kev siv rau txhua tus lwm tus kom ntseeg tau tias txhua lub LED tau zoo ib yam.
Thaum koj nkag mus rau hauv qhov dai ntawm thawb ib qho LED rau hauv lub khob cij, nias lub pob, saib cov LED nyem los ntawm cov xim nws tsis siv sijhawm ntev los tshuaj xyuas tag nrho 512. Raws li ib sab kuv tsis pom muaj qhov tsis xws luag thiab zoo siab heev nrog qhov zoo ntawm LED.
Xaiv tam sim no txwv qhov muaj nuj nqis resistor
Thaum lub khob cij tawm tawm nws yog lub sijhawm zoo los sim thiab siv tau cov LED tam sim no txwv cov resistors koj yuav xav tau siv. Muaj ntau lub laij lej tawm los pab koj xaiv tus nqi raug thiab nws yuav tsis zoo ib yam rau txhua xim (Liab yuav luag yeej muaj qhov sib txawv los ntawm Ntsuab thiab Xiav).
Ib thaj chaw tseem ceeb los saib xyuas yog tag nrho cov xim dawb LED tso tawm thaum txhua lub xim RGB nyob. Koj tuaj yeem sib npaug tus nqi ntawm cov neeg tawm tsam los tsim cov xim dawb huv hauv qhov txwv tam sim no ntawm LED.
Kauj Ruam 2: Ua Kom Yooj Yim Cube Tsim
Ib qho jig los tsim txhua daim 8x8
Tsim lub voos xwmfab ntawm qhov nyuaj no tsis tas yuav maj mam ua. Qhov no yuav xav tau kev nqis peev tseem ceeb ntawm koj lub sijhawm.
Txoj hauv kev kuv tsim kho kom yooj yim ntawm kev sib dhos ntawm txhua 8x8 ntsug "hlais" ntawm lub voos xwmfab hauv ib qho xwm txheej, tsis zoo li tsim cov kab ntawm 8 LEDs nyob rau hauv lem thiab tom qab ntawd soldering 8 ntawm cov no ua ke hauv kev ua haujlwm sib cais.
Koj yuav xav tau jig rau txoj hauv kev no thiab lub sijhawm me ntsis nqis peev ntawm no sau cov txiaj ntsig loj tom qab.
Daim duab saum toj no qhia qhov yooj yim ntawm qhov tsim no.
- Kuv siv qee qhov 18mm x 12mm softwood tau los ntawm cov khw muag khoom kho vajtse hauv ib cheeb tsam.
- Drilled 8 x 5mm qhov nyob hauv nruab nrab ntawm 18mm sab, 30mm sib nrug ntawm 8 qhov ntev tso cai rau ntxiv 50mm ntev ntawm txhua qhov kawg.
- Siv ob qhov ntev ntawm cov ntoo ntawm txhua sab thiab kho 8 ntu ntu no kom ntseeg tau tias lawv zoo ib yam thiab sib nrug 30mm sib nrug.
- Kuv yuav qhia kom siv qee cov kua nplaum ntoo ntxiv rau ntsia hlau/ntsia hlau thaum kho cov no ua ke. Koj tsis xav kom lub jig no yoog raws.
- Nyob rau sab saum toj thiab hauv qab qhov kawg ntawm tus jig kuv teeb lwm qhov ntev thiab muab peb tus ntsia hlau me me/tus pin rau hauv cov ntawv nrog txhua kab ntawm qhov rau LED's. Qhov nruab nrab ib qho yog nyob hauv kab thiab lwm ob 5mm sib nrug ntawm txhua sab. Peb yuav siv cov ntsia hlau no los tiv thaiv qhov ncaj ntawm cov hlau siv los tsim lub voos xwmfab - ntau dua tom qab.
- Koj yuav pom ntawm cov duab saum toj no ntev ntawm ntoo ntawm lub kaum me ntsis rau lwm tus. Qhov no yuav yog qhov tseem ceeb tom qab peb yuav txiav peb cov xov hlau txuas hauv kab nrog lub kaum ntse ntse no uas yuav yooj yim dua qhov chaw ntawm txhua txoj kab ntsug no rau hauv PCB tom qab hnub tom qab.
Siv koj lub sijhawm hauv kev tsim lub jig no. Qhov tseeb dua koj nyob ntawm no qhov tseeb dua koj lub voos xwmfab zaum kawg yuav yog.
Kauj Ruam 3: Npaj LED
LED sib txuas
Ib qho kev txhawj xeeb uas kuv muaj ntawm cov piv txwv yav dhau los kuv tau nyeem txog yog siv cov pob qij txha yooj yim thaum siv cov LED txuas rau cov kab hlau. Qhov no yuav ua rau ob qhov teeb meem tseem ceeb
- Nws yog qhov nyuaj heev thiab siv sijhawm los tuav tus coj LED hauv txoj haujlwm ib sab ntawm cov kab hlau tsis muaj nws txav mus ntev txaus kom ntseeg tau tias koj tau txais cov khoom siv sib txuas zoo.
- Taub pob qij txha tuaj yeem tawg yooj yim - qee yam kuv xav zam.
Yog li kuv tsim cov kev daws teeb meem uas txhua tus LED tau npaj nrog lub voj ntawm qhov kawg ntawm txhua cov hlau lead, los ntawm cov kab hlau txuas hla uas ob leeg tuav cov xov hlau nyob hauv txoj hauj lwm thaum siv cov laug thiab tseem muab cov tshuab txuas nrog ntxiv rau cov laug kom ntxiv dag zog.
Qhov tsis zoo ntawm qhov no yog qhov kev npaj ntawm txhua ntawm 512 LEDs tau siv sijhawm ntev dua - Kuv tau ua qhov no hauv ib pawg ntawm 64, ib qho hlais ib lub sijhawm, thiab tau txais qhov no mus txog 3hrs rau ib daim.
Nyob rau sab ntxiv qhov sib dhos tiag tiag ntawm cov hlais siv cov jig yav dhau los tsuas yog siv sijhawm li ib teev.
LED bending tig
Kuv tsim tus jig los txhawb kev npaj ntawm LED's - daim duab saum toj no nrog qhov tseem ceeb.
- Kuv tau siv ib qho ntawm 18x12mm txoj kab yav dhau los, drilled lub 5mm qhov los ntawm nruab nrab ntawm 18mm sab thiab tom qab ntawd tso txoj kev tsheb nqaj hlau no rau ntawm lub vaj huam sib luag me me ntawm MDF (koj tuaj yeem siv cov ntoo seem, qhov no tsuas yog qhov kuv yuav tsum tau ua tes) thiab nqa ntawm 5mm lub qhov nyob hauv txoj kev tsheb nqaj hlau hla mus rau nruab nrab ntawm MDF.
- Siv lub laum me ntsis kom ntseeg tau tias ob lub qhov nyob hauv txoj kev tsheb nqaj hlau thiab MDF tau sib dhos siv tus xaum thiab kos kab ib sab ntawm ob sab ntawm txoj kev tsheb nqaj hlau raws MDF.
- Tshem lub laum thiab txoj kev tsheb nqaj hlau thiab koj tshuav nrog 5MM lub qhov hauv MDF thiab ob txoj kab sib dhos ib sab ntawm nws sib piv rau txoj kab tsheb ciav hlau qhov ntev (18mm sib nrug).
- Kos lwm txoj kab los ntawm qhov nruab nrab ntawm 5mm qhov qhov sib dhos rau txoj kab tsheb ciav hlau.
- Kuv siv 22swg tinned tooj liab hlau (500g yob tau txaus) uas muaj qhov dav ntawm 0.711mm. Kuv pom online (eBay mus cawm dua) qee qhov 0.8mm cov khoom siv me me thiab siv cov no los ua tus tsim nyob ib puag ncig uas kuv yuav khoov LED ua ib puag ncig los tsim lub voj.
- Laum peb 0.8mm laum cov khoom, nruab nrab ib ntawm kab nruab nrab ntawm 5mm LED qhov, lwm qhov 5mm sib nrug thiab qhov tseem ceeb tsuas yog sab nraum txoj kab tsheb ciav hlau deb ntawm LED qhov ntawm MDF lub rooj tsavxwm- tsis nyob ntawm kab tab sis nrog ib sab ntawm qhov laum tsuas yog kov txoj kab tsheb ciav hlau.
- Qhov plaub 0.8mm laum me ntsis tom qab ntawd tau rov ua dua ntawm txoj kab nruab nrab ntawm 5mm LED qhov ntawm lwm txoj kab tsheb ciav hlau thiab lub sijhawm no tsuas yog sab hauv ntawm txoj kab tsheb ciav hlau. Daim duab saum toj no yuav tsum ua kom qhov kev piav qhia no meej me ntsis.
- Tawm qhov kev xyaum hauv cov ntoo nrog kwv yees li 1-15mm ntawm lub pob zeb laum tawm los ntawm MDF.
Tam sim no koj xav tau cov cuab yeej - txoj haujlwm zoo yog ib txwm nyob qhov twg koj yuav tsum yuav cov cuab yeej tshwj xeeb:-). Koj yuav xav tau ib khub me me ntawm lub qhov ntswg ncaj (eBay dua rau £ 2 - £ 3). Cov no muaj qhov ncaj ncaj qhov ntswg ntev thiab qhov kawg - pom daim duab.
LED kev npaj ua ntej
Tam sim no los txog txoj haujlwm ntev ntawm kev npaj txhua ntawm 512 LED's. Kuv hais qhia koj ua lawv hauv cov khoom sib txawv. Xav paub ntau ntxiv hauv cov duab saum toj no
- Tuav lub LED hauv lub pliers nrog plaub tus coj taw qhia rau koj.
- TSEEM CEEB - Kev txiav txim thiab kev taw qhia ntawm cov coj yog qhov tseem ceeb hauv theem no. Anode yuav yog cov hlau lead ntev tshaj plaws thib ob nyob hauv ntawm plaub txoj hauv kev. Ua kom ntseeg tau tias qhov no yog thib ob hauv qab txoj cai. Tau qhov no tsis raug thiab koj LED yuav tsis ua kom pom tseeb raws li peb sim lawv tom qab - Kuv paub kuv tau ua 2 qhov yuam kev tawm ntawm 512.
- Whilst tuav lub LED hauv lub pliers muab lub teeb LED rau hauv 5mm qhov hauv MDF lub rooj tsavxwm raws li qhia hauv daim duab saum toj no. Koj yuav xav tau tshem qhov 5mm qhov me ntsis nyob rau sab saum toj kom ntseeg tau tias Pliers tso ncaj rau ntawm MDF.
- Khoov LED ua nyob ib puag ncig cov khoom siv tig los tsim lub voj. Kuv pom tias yog tias koj rov qab kho qhov ntxoov ntxoo thaum ua tiav nws qhib lub voj qhov ntxoov ntxoo thiab pab tshem tawm cov loops los ntawm cov khoom siv laum thaum rho tawm LED los ntawm jig
- Txiav tawm qhov tshaj los ntawm plaub ua nyob ze rau lub voj nrog ib khub ntawm cov xaim me me txiav.
- Khoov Anode Loop, ib qho ntawm nws tus kheej, 90 degrees yog li lub voj tau tig ncaj rau ntawm lub teeb LED
- Muab cov LED ua tiav tso rau ntawm lub tiaj tiaj thiab ua kom ntseeg tau tias txhua txoj hauv kev dag ncaj nraim rau saum npoo, me ntsis siab ntawm LED yuav ua kom txhua yam yooj yim.
Qhov ntawd yog…. tam sim no rov ua dua 511 zaug:-)
Kauj Ruam 4: Tsim Cov Slices
Ncaj cov kab hlau
Yog li tam sim no peb muaj jig los ua peb cov 8x8 daim thiab pob ntawm kev sim thiab npaj LED's.
Txhua yam koj xav tau tam sim no yog qee cov kab hlau. los tuav tag nrho cov LED ua ke. Kuv siv 500g yob ntawm 22swg tinned tooj liab hlau (dua los ntawm eBay)
Tam sim no ntawm chav kawm koj yuav xav ncaj cov hlau raws li nws tawm ntawm cov yob. Ib qho yooj yim yog tias tseem muaj lwm txoj hauv kev ua haujlwm. Txiav ib feem ntawm cov hlau kom ntev thiab tuav ob qho kawg hauv ob khub ntawm cov pliers thiab maj mam rub thiab rub cov hlau. Yog tias koj zoo koj yuav hnov cov xov hlau nthuav thiab tom qab ntawd koj tuaj yeem nres, yog tias koj lub tes hnyav hnyav xaim yuav tawg ntawm cov pliers thaum nws tau ncab txaus. Ob txoj hauv kev yog qhov zoo thiab koj yuav tsis tsuas yog ncaj cov hlau tab sis kuj tawv nws me ntsis yog li nws yuav tuav nws daim ntawv.
Rau txhua tus ncej 8x8 koj yuav xav tau 24 qhov ntev txaus los ua qhov ntev tag nrho ntawm koj tus jig nrog qee qhov seem ntawm qhov kawg los qhwv ib puag ncig ntawm lub vaj huam sib luag pins kom tuav cia thaum siv cov laug. Ib qho ntxiv koj yuav xav tau 8 qhov ntev rau cov kab xaim hluav taws xob sib txuas me ntsis dav dua li qhov dav ntawm jig.
Ua ib daim 8x8 daim
Tam sim no cov xov hlau ncaj peb tau mus rau qhov lom zem.
- Nrog tus jig zaum ntawm nws ob txoj kab ntsug thiab 8 txoj kab hla hla txoj kev tig koj thawb 8 LEDs rau hauv ib kem ntawm ib lub sijhawm nrog peb ceg ntawm LEDs taw rau koj.
- Tam sim no xov ib txoj kab hlau txuas ncaj qha los ntawm nruab nrab LED cov kab ua haujlwm ntawm tag nrho ntawm 8 LEDs thiab khi txhua qhov kawg los ntawm kev qhwv ib ncig ntawm lub vaj huam sib luag pins.
- Rov ua qhov no rau ob txoj kab sab nrauv.
- Tom qab ntawd rov ua cov kauj ruam saum toj no rau lwm 7 kab ntawv.
Tam sim no koj yuav muaj 64 LED cov xov ua ke nrog 24 kab kab kab ntsug. Xyuas kom tseeb tias txhua lub LEDs tau zaum yaug tawm tsam cov ntoo ntoo thiab ncaj tawm ib qho ceg LED kom tshem tawm qhov tsis sib xws.
Tam sim no tshem tawm koj cov hlau txuas thiab txhim kho tag nrho 192 qhov kev sib txuas ntawm LED loops thiab cov kab hluav taws xob. Kuv yuav tsis piav qhia yuav ua li cas thiaj li nyob ntawm no, muaj ntau ntau cov lus qhia zoo kom pom uas piav qhia qhov no zoo dua li kuv tuaj yeem ua tau.
Tiav lawm? Siv sijhawm me ntsis los qhuas koj qhov ua tau zoo tig lub jig hla. Peb tseem yuav tsum tau ntxiv rau hauv Anode framing cov xov hlau.
Tam sim no koj tuaj yeem pom yog vim li cas peb khoov anode lead loops 90 degrees.
- Coj koj 8 txoj hlua txuas ncaj qha rau ntawm cov xov hlau thiab rov xov dua los ntawm txhua ntawm 8 LEDs hauv txhua kab.
- Kuv txiav cov xaim mus rau qhov dav ntawm tus jig tab sis tsis tau sim kho cov no rau cov pins vaj huam sib luag.
- Ib zaug ua tiav siv sijhawm me ntsis kom ncaj ib qho LEDs kom ntseeg tau tias koj muaj kev sib luag ncaj ncaj thiab rov ua dua ib zaug ntawm tag nrho 64 cov ntsiab lus sib txuas.
Kuaj qhov 8x8 daim
Ib daim hlais tab sis ua ntej koj txiav nws tawm ntawm jig cia sim nws ua ntej. Rau qhov no koj yuav xav tau 5v qhov chaw (los ntawm koj Arduino lossis koj lub tshuab ntsuas LED lub khob cij) thiab ib leeg tiv thaiv (txhua yam nyob ib ncig 100 ohms yuav ua).
- Txuas ib lub xaim rau hauv av, qhov no yuav raug siv thoob plaws txhua 24 cathode cov kab hluav taws xob.
- Txuas lwm cov xaim rau 5v los ntawm tus tiv thaiv.
- Tuav tus 5v xaim mus rau ib qho ntawm cov kab hluav taws xob ntawm 8 qib anode
- Khiav Cov Av Hlau hla txhua qhov ntawm 24 cathode thav duab xov hlau.
- Txheeb xyuas txhua lub teeb LED kom Liab, Ntsuab thiab Xiav rau txhua ntawm 8 LED txuas nrog tib lub xaim hlau.
- Tam sim no txav lub 5v xaim mus rau qib tom ntej thiab rov ntsuas dua kom txog thaum koj tau sim txhua qib, txhua LED thiab txhua xim.
Yog tias koj pom ib qho LED tsis ua haujlwm ces tej zaum koj yuav sib xyaw cov hlau lead anode ntawm LED thaum khoov cov coj LED. Yog tias koj pom ib qho tsis ua haujlwm ces kuv qhia koj kom txiav tawm qhov tshem tawm LED, siv cov khoom seem npaj tseg, qhib lub loops ntawm LED ua, thawb qhov tshiab LED rau hauv jig thiab khoov rov qab lub voj nyob ib ncig ntawm cov xov tooj cua zoo tshaj plaws koj ua tau.
Thaum txhua qhov kev sim tam sim no koj tuaj yeem txiav tawm qhov swb los ntawm jig. Txhawm rau ua qhov no txiav cov kab hluav taws xob ntawm kab saum toj kawg nkaus ze rau ntawm cov kab hlau lead hauv LED thiab txiav cov kab hauv qab kab raws txoj kab me ntsis.
Tawm tag nrho qhov ntev ntawm cov kab hlau rau tam sim no, peb yuav ua tib zoo tom qab thaum peb tsim lub voos xwmfab.
Ib qho poob, 7 ntxiv mus.
Kuv ntseeg tias kuv tau ntsib kuv thawj lub hom phiaj thiab tsim kev daws teeb meem los ua kom yooj yim tsim ntawm lub voos xwmfab.
Kauj Ruam 5: Mus rau Electronics
Tsim PCB
Kuv lub hom phiaj thib ob yog tshem tag nrho cov thaiv tab sis tseem tawm hauv chav rau qee qhov kev hloov pauv.
Txog qhov kawg kuv txiav txim siab tias kuv yuav:
- Nqa 6 tus txheej txheem tswj cov xov hlau tawm ntawm lub rooj tsavxwm ntawm lub txuas. Feem ntau lub voos xwmfab tsav tsheb kuv tau pom siv SPI kev hloov pauv rau cov ntaub ntawv xa mus uas xav tau 4 lub tswv yim - Cov Ntaub Ntawv, Moos, Tso Tawm kom pom thiab Latch - ntxiv rau kuv ntxiv 5v thiab Hauv av yog li peb tuaj yeem siv lub zog los ntawm tib lub cable.
-
Tawm mus qhib cov lej hauv thiab txuas tawm qhov sib txuas ntawm 74HC595 ua haujlwm hloov pauv rau npe kom koj tuaj yeem txheeb xyuas qhov sib txawv ntawm cov chips.
- Kevins schematic yog rau tus neeg tsav tsheb anode thawj zaug tom qab ntawd tag nrho 8 daim npav tsav ib lub xim tom ntej thiab tom qab ntawd ob lub xim tom ntej txuas ntxiv rau tag nrho ntawm 25 hloov npe.
- Nicks schematic muaj cais lub voj rov qab rau tus txheej txheem rau txhua xim.
- Tso cai rau txheej txheej txheej anode kom tsav los ntawm nws tus kheej daim ntawv teev npe hloov pauv lossis ncaj qha los ntawm tus txheej txheem nrog 8 sib cais sib txuas.
Ntxiv rau kuv xav tau
- Siv los ntawm qhov khoom (raws li qhov kuv tau siv).
- Txwv kuv tus kheej rau ob txheej PCB pawg thawj coj saib (ib yam li hauv kuv qhov kev paub).
- Muaj tag nrho cov khoom siv ntawm ib sab ntawm PCB (sab hauv qab) thiab tso cai rau cov LED hlais kom ncaj ncaj mus rau sab saum toj ntawm PCB.
Yog li nws yuav xaus mus ua lub rooj tsav xwm loj (270mm x 270mm) los txhawb lub voos xwmfab nrog 30mm sib nrug nruab nrab ntawm LED's - txawm li ntawd los nws tseem yog qhov nyem kom haum rau txhua qhov khoom siv thiab cov cim.
Kuv tau siv ob peb yam sib txawv PCB tsim software yav dhau los nrog kev ua tiav.
Kom yooj yim siv Pad2Pad yog qhov zoo tab sis koj tau xauv rau hauv lawv cov nqi tsim khoom raws li koj tsis tuaj yeem xa tawm Gerber cov ntaub ntawv. Txog qhov kev tsim no kuv siv DesignSpark (tsis yooj yim siv li Pad2Pad tab sis tuaj yeem xa tawm cov ntaub ntawv gerber) thiab txij li tau sim nrog Eagle (cov cuab yeej muaj peev xwm tab sis kuv tseem tab tom nce txoj kev kawm nkhaus).
Kuv twv tsis ntxiv cov sijhawm siv ntawm software tsim ntawm PCB, nws tau siv ntau qhov kev sim kom raug tab sis kuv txaus siab heev nrog qhov tshwm sim. Muaj ob peb qhov cim tseg uas ploj lawm hauv kuv thawj daim ntawv tab sis lawv yooj yim los hloov. Rau kev tsim cov pawg me me ntawm PCBs Kuv tau siv thiab xav kom pom SeeedStudio. Teb zoo rau cov lus nug, kev sib tw tus nqi thiab kev pabcuam sai.
Kuv yog txij thaum xav txog kev tsim qauv SMD uas kuv tuaj yeem ua tau nrog txhua yam khoom siv uas twb tau muab tso thiab siv lawm.
Ntau yam khoom
Raws li rau cov khoom kuv tau siv cov hauv qab no (ua raws li Kevin's schematic)
- 200 NPN 2N3904 transistors
- 25 100 nF capacitors
- 8 100uF capacitors
- 8 IRF9Z34N MOSFETS
- 25 74HC595 hloov npe
- 128 82 Ohm 1/8W resistors (Liab LED tam sim no limiting resistors)
- 64 130 Ohm 1/8W resistors (Ntsuab & Xiav LED tam sim no limiting resistors)
- 250 1k Ohm 1/8W resistors (nrog qee qhov ntxiv)
- 250 10k Ohm 1/8W resistors (nrog qee qhov ntxiv)
- 1 5v 20A fais fab mov (ntau tshaj txaus)
- 1 Arduino Mega (lossis tus txheej txheem uas koj xaiv)
- qee qhov kab ib kab header pins txuas rau Arduino
- qee cov jumper cable los tsim cov lej hauv/tawm loops ntawm cov ntawv teev npe ua haujlwm
- 6 tus pin header cable rau lub rooj sib txuas
- 240v fais fab txuas hluav taws xob thiab ntsaws
Kuv siv thiab yuav pom zoo Farnell Cheeb Tsam rau xaj cov no hauv tebchaws Askiv, tshwj xeeb tshaj yog muab lawv cov kev pabcuam tom ntej thiab kev sib tw nqi.
Soldering … ntau soldering
Tom qab ntawd nws yog ob peb teev ntawm kev siv tag nrho cov khoom siv rau hauv lub rooj tsavxwm. Kuv yuav tsis hla cov ntsiab lus ntawm no tab sis ob peb zaj lus qhia kuv tau kawm yog:
- Khaws lub twj tso kua mis thiab lub lauj kaub rau ntawm tes - koj yuav xav tau.
- Tus cwj mem flux ua haujlwm tiag tiag txawm hais tias nws tsis zoo los ntxuav tom qab
- Siv lub kab taub me me - Kuv pom qhov zoo tshaj plaws yog 0.5mm 60/40 Tin/Lead 2.5% flux solder.
- Lub iav tsom iav yog qhov yooj yim los txheeb xyuas txhua qhov txuas txuas.
- Siv koj lub sijhawm, ua ib pawg ntawm ib lub sijhawm thiab tshuaj xyuas tag nrho cov pob qij txha ua ntej mus rau thaj chaw tom ntej.
- Raws li ib txwm ua kom koj lub taub hau hlau ntxhua kom huv.
Muab cov xim liab ntawm LED's tej zaum yuav xav tau tus nqi sib txawv sib txawv rau Ntsuab thiab Xiav Kuv tau cim qhov tam sim no txwv tsis pub tiv thaiv ntawm PCB A, B thiab C. Tam sim no yog lub sijhawm los txiav txim siab zaum kawg ntawm cov hlais hauv kev sib piv rau PCB txhawm rau txheeb xyuas qhov ua rau ntawm LED's cuam tshuam nrog qhov tam sim no txwv qhov chaw tiv thaiv kab mob.
Thaum ua tiav kuv tau ntxuav lub rooj tsavxwm nrog PCB ntxhua khaub ncaws, ntxuav nws nrog xab npum thiab dej thiab ua kom qhuav tas.
Kuaj koj li PCB tiav
Ua ntej peb muab qhov no tso rau ntawm ib sab peb yuav tsum tau sim tias nws txhua yam ua haujlwm.
Kuv tau ntim Kevin's Arduino code (rau lub mega koj yuav xav tau qee qhov kev hloov pauv me me) thiab tsim qhov kev sim yooj yim uas yuav ua rau tag nrho LEDs qhib thiab tawm tsis tu ncua.
Yuav xeem:
- Kuv tau ua qhov ntsuas hluav taws xob LED los ntawm kev noj ib qho xim LED, tuav 100 Ohm resistor rau ib qho ntawm cov coj thiab tom qab ntawd ntxiv cov xaim ntev rau txhua qhov qhib kawg. Me me ntawm kab xev hluav taws xob nyob ib puag ncig qhib ua rau nres ib qho luv thiab cim qhov zoo (anode) xaim los ntawm LED.
- Txuas koj lub khoos phis tawj (hauv kuv rooj plaub Arduino mega) rau lub rooj tsavxwm nrog 6 tus txuas
- Txuas lub zog rau lub rooj tsavxwm los ntawm cov khoom siv fais fab
- Txuas qhov kev ntsuas Anode coj mus rau 5v qhov chaw ntawm lub rooj tsavxwm
- Tom qab ntawd muab Cathode xaim los ntawm LED ntsuas kab xev mus rau txhua ntawm PCB lub voos xwmfab cathode txuas nyob rau hauv lem.
- Txhua qhov ua tau zoo ntawm LED ntawm qhov ntsuas ntsuas yuav tsum nyem thiab tawm, yog li txav mus rau qhov tom ntej.
- Yog tias nws tsis nyem ces koj mus rau qhov ua txhaum. Kuv yuav xub xub txheeb xyuas koj cov pob qij txha txuas rau cov pob qij txha qhuav, sab nraum qhov uas kuv xav kom koj ua haujlwm kom deb ntawm kev hloov npe sau npe tshuaj xyuas ib feem ntawm ib lub sijhawm.
Xeem tag nrho 192 cathodes tom qab ntawd hloov kho koj cov cai txhawm rau ntsuas cov txheej txheej txheej txheej txheej, hloov pauv koj li LED coj mus kuaj thiab txuas nws rau hauv av thiab ntsuas txhua ntawm 8 txheej tsav tsheb.
Thaum koj tau ua tiav thiab sim PCB qhov kev lom zem tiag tiag pib - tam sim no los tsim lub voos xwmfab.
Kauj Ruam 6: Tsim Lub Vev Xaib
Npaj koj cov qib sib txuas ntawm Anode - lwm jig
Peb muaj ib yam khoom ntxiv los tsim ua ntej peb pib muab koj cov hlais 8x8 rau hauv PCB.
Raws li peb ntxiv cov hlais peb yuav xav tau ntxiv kev zawm hniav rau sab nraud ntawm txhua daim hlais koom nrog cov kab rov tav ua ke.
Muab peb txuas tag nrho cov LED nrog cov loops rau cov kab hluav taws xob cia tsis tsum tam sim no.
Txhawm rau tsim cov anode cross braces:
- Siv lwm qhov ntev ntawm cov ntoo uas koj siv rau txoj kab thiab kos kab hauv nruab nrab ntawm txoj kev tsheb nqaj hlau.
- Ua 8 cim raws kab no 30mm sib nrug.
- Siv 8 ntawm 0.8mm cov khoom siv laum thiab laum lawv mus rau hauv cov ntoo, tawm hauv qhov me ntsis hauv cov ntoo nrog cov ceg nthuav tawm txog 10mm los ntawm saum npoo.
- Txiav tawm qhov ntev ntawm cov kab xaim thiab ncaj nws zoo li ua ntej.
- Qhwv ib qho kawg ntawm cov xaim nyob ib ncig ntawm thawj qhov kev siv me ntsis ua lub voj thiab tom qab ntawd muab cov xaim nyob ib puag ncig txhua qhov kev siv me ntsis tom ntej ua txoj hlua ncaj nrog 8 loops raws nws qhov ntev.
Qhov no yuav siv qee qhov kev xyaum tab sis sim thiab tswj cov hlau tom qab tsim txhua lub loops kom tau xaim ncaj li sai tau. Maj mam muab cov hlau los ntawm cov khoom siv laum thiab tom qab ntawd sim ua kom ncaj ncaj.
Rau lub voos xwmfab zaum kawg koj yuav xav tau 16 qhov ntev ntawm xaim txhua nrog 8 lub loops tab sis thaum lub sijhawm tsim cov txheej txheem nws yooj yim kom muaj tus lej ntawm ob thiab peb lub voj qhov ntev mus rau tes txhawm rau txhawb nqa txhua daim tshiab nrog nws cov neeg nyob ze.
Thaum kawg peb tuaj yeem tsim lub voos xwmfab
Peb yuav tsum tau tsa PCB tawm ntawm qhov chaw txhawm rau ua kom sib luag thiab txo qis txhua daim mus rau PCB. Kuv siv ob peb lub thawv yas me me ntawm ob sab ntawm PCB.
Nco ntsoov koj txoj kev taw qhia ntawm daim hlais uas tau xaiv ua ntej thaum txheeb xyuas qhov chaw ntawm qhov txwv tam sim no koj tuaj yeem tam sim no txo thawj hlais rau hauv lub qhov hauv PCB ntawm ib kawg. Kuv hais qhia koj pib nrog qhov deb ntawm qhov deb ntawm koj thiab ua haujlwm rau koj tus kheej.
Nov yog qhov uas peb pom qhov zoo ntawm kev txiav cov kab hluav taws xob cathode ntawm lub kaum ntse ntse. Qhov no yuav tso cai rau koj nrhiav txhua ntawm 24 tus xov tooj cua cathode ib tus zuj zus.
Txhawm rau txhawb cov hlais thiab txheeb xyuas nws qhov chaw ntsug Kuv tau siv txoj kab ntoo uas peb tau siv los ua cov txuas hluav taws xob thiab muab qhov no tso rau ntawm PCB nyob hauv thawj txheej ntawm LEDs. Nrog cov kws tsim vaj tsev siv los xyuas kom cov hlais yog qhov sib dhos rau PCB thiab qib ntawm qhov kawg mus rau qhov kawg tam sim no koj tuaj yeem muab cov kab hluav taws xob txuas rau hauv PCB.
Koj tuaj yeem sim cov hlais tam sim no tab sis kuv pom nws zoo tshaj tso thawj ob daim hlais mus rau PCB thiab siv luv 2 lub voj anode txuas ntawm ob peb qhov chaw nyob ntawm ob daim ua ntej kuaj ua ntej ua thawj ob daim ntawv no ruaj khov. Tom qab thawj ob qhov kev sim no txhua qhov hlais ua ntej ntxiv rau tom ntej.
Kuaj cov hlais
Cov neeg tsav tsheb anode nyob ntawm ib sab ntawm PCB thiab muaj qhov nyob hauv PCB uas peb thaum kawg yuav txuas txhua txheej rau nws tus tsav tsheb. Txog tam sim no peb yuav siv cov no nrog qee lub cav xaim thiab 8 daim kab xaum me me kom txuas rau txhua txheej hauv txhua daim hlais.
Nrog cov cathodes soldered nqes mus rau PCB thiab anodes txuas nrog cov tsav tsheb nrog cov xov hlau thiab cov clip peb tuaj yeem sim cov hlais los ntawm kev hloov kho cov cai peb siv los ntsuas PCB nrog cov duab tshiab.
- Sau cov tsiaj ntawv yooj yim kom pom txhua lub LED hauv koj daim hlais txhua xim nyob rau ib lub sijhawm (tag nrho Liab, tom qab ntawd ntsuab ces Liab tag nrho rau Dawb). Koj tuaj yeem txhais tus lej tus lej ua qhov sib txawv yog li koj tuaj yeem hloov kho qhov no thaum koj sim txhua daim hlais.
- Txuas tus txheej txheem thiab lub zog rau PCB thiab tig rau.
- Txheeb xyuas txhua lub LEDs kom pom txhua xim.
Tsuas yog qhov tsis xws uas kuv tau pom ntawm no yog vim qhov sib koom ua ke qhuav ntawm ib qho ntawm txoj kab ntsug cathode kab hlau.
Kuaj thiab ntsuas txhua daim nyob rau hauv lem.
Yuav luag nyob ntawd. Muaj ob lub ntsiab lus ntxiv uas peb xav tau ntxiv rau lub voos xwmfab tam sim no peb tau muab tshuaj txhuam thiab kuaj tag nrho 8 ntawm daim ntawv.
Anode txheej txuas
Tam sim no peb tuaj yeem tshem tawm qhov txuas txuas anode nrog 8 loops koj tau npaj ua ntej.
Xov cov no hla cov hlais koom nrog tib txheej hauv txhua daim ntawm ob qho swb. Kuv txav kuv mus txog thaum lawv nyob deb li 5mm ntawm qhov ze tshaj plaws LED cathode hlau. Xyuas kom lawv saib ncaj thiab qib ua ntej yuav siv tag nrho cov loops thiab koom nrog txhua ntawm 8 anode txheej ua ke.
Anode tsav txuas
Tshem tag nrho cov xov hlau yav dhau los siv los ntsuas cov hlais los ntawm qhov anode tsav lub qhov nyob hauv PCB thiab xyuas kom tseeb tias lub qhov pom tseeb ntawm cov kab laug sab - cov kab laug cam yog koj tus phooj ywg nyob ntawm no.
Txhua ntawm 8 tus neeg tsav tsheb anode ntawm PCB yuav tsum tau txuas nrog rau ib tus neeg txheej ntawm PCB. Tus neeg tsav tsheb anode nyob ze tshaj ntawm kev sib txuas hluav taws xob ntawm PCB yuav tsum txuas nrog qib qis tshaj, tom qab ntawd ua haujlwm rov qab zuj zus mus rau tom qab ntawm PCB thiab txheej txheej thib 8.
Khoov lub kaum sab xis me me hauv ib qho ntawm cov kab sib txuas ncaj qha thiab txo qis sab ntev ntawm cov hlau hla lub voos xwmfab mus rau hauv qhov anode tsav lub qhov ntawm PCB. Ua kom ntseeg tau tias cov hlau ncaj thiab qib, tsis txhob kov lwm cov hlau hauv lub voos xwmfab thiab tom qab ntawd muab qhov no tso rau hauv txheej txheej txheej ntawm lub voos xwmfab thiab mus rau PCB
Ua tiav rau tag nrho 8 tus neeg tsav tsheb anode.
Kauj Ruam 7: Nws Ua tiav
Kev tsim tiav lawm, koj ua tiav.
Nrog txhua qhov kev npaj, tsim tsev, ntsuas koj tau ua qhov no tam sim no yooj yim.
- Txuas lub hwj chim rau PCB
- Txuas tus processor mus rau PCB.
- Hwj chim rau.
- Thauj khoom lossis ua kom cov duab pom hauv koj lub software, rub mus rau tus tsim khoom thiab cia nws ua nws qhov khoom
Ua rooj plaub
Koj yuav xav tiv thaiv koj cov peev nyiaj tom qab tso tag nrho cov sijhawm no.
Peb tau ua cov ntaub ntawv tawm ntawm qee lub rooj ntoo ntoo thiab cov ntawv me me ntawm cov ply thiab tsim ib qho kev kos rau sab nraub qaum uas peb tuaj yeem nkag mus rau lub hwj chim thiab Arduino ntxiv rau haum rau USB ntsaws rau sab nraum qab ntawm rooj plaub kom tso cai nkag tau yooj yim rau kev rov sau dua.
Tom qab ntawd peb ua tiav nws nrog cov ntaub ntawv acrylic los ntawm acrylicdisplaycases.co.uk. Zoo heev recomended.
Ntxiv rau koj
Tam sim no muaj ob yam uas koj tuaj yeem tig koj lub siab mus rau:
- Yam kev txhawb nqa/lub thawv twg koj xav tsim thiab tsim los txhawb nqa PCB thiab lub tsev siv lub zog thiab cov txheej txheem - Kuv yuav tso qhov ntawd rau koj lub tswv yim.
- Nkag mus rau hauv txoj cai thiab pib tsim thiab sau koj tus kheej cov duab. Kevin, Nick thiab SuperTech-IT tau ua qee qhov haujlwm zoo ntawm no los pib koj txoj hauv kev.
Kauj Ruam 8: Clip ntawm Cov Khoom Kawg hauv Kev Ua
Kuv ua tsaug rau Kevin thiab SuperTech-IT rau kev ua yeeb yaj kiab ntxiv rau ob peb ntawm kuv tus kheej kuv tau tsim rau hnub tim
Kauj Ruam 9: Animation - Snakes
Ib qho ntawm kuv tus kheej cov duab los qhia siv Kevin Darrah tus lej
Hu rau cov hauv qab no hauv qhov tsis muaj dab tsi Loop
nab (200); // Rov ua dua
Kauj ruam 10: Thaum koj nkag mus rau hauv Groove
Kuv tus nus thiab kuv tam sim no tau tsim ib qho thiab peb tab tom ua haujlwm thib peb:-)
Hloov tshiab - Peb lub voos xwmfab tam sim no tau ua tiav thiab peb tab tom yuav muab qhov no tso rau ntawm kev muag ntawm eBay nrog rau ob daim npav PCB seem (thiab cov lus qhia).
Peb yuav ua qee qhov kev hloov kho rau PCB feem ntau los txhawb txoj kev txhim kho ntawm peb txoj haujlwm tom ntej - 16x16x16 RGB LED lub voos xwmfab
Kauj Ruam 11: Qhov Tseeb Tseeb Ntawm Kuv Arduino Mega Code
Txuas nrog koj yuav pom ntawm no qhov hloov tshiab kawg ntawm kuv tus lej.
Qhov no feem ntau yog coj los ntawm kev daws teeb meem tsim los ntawm Kevin Darrah ntawm no tab sis kuv tau xa qhov no mus rau Arduino Mega thiab ntxiv rau cov tsiaj ntawv los ntawm lwm qhov chaw lossis tsim kuv tus kheej.
Cov pins ntawm Arduino Mega yog:
- Latch - tus pin 44
- Blank - tus pin 45
- Cov ntaub ntawv - tus pin 51
- Moos - tus pin 52
Pom zoo:
$ 10 Lub Vev Xaib Lub Vev Xaib Kho: 5 Kauj Ruam (nrog Duab)
$ 10 Lub Vev Xaib Lub Vev Xaib Tsis Zoo: Zoo, kuv tau ua nws dua. Kuv tau tawg kuv qhov screen. Rau cov ntawm koj uas yuav nco tau, kuv tau ua qhov no tsuas yog ib xyoos dhau los thiab xav tau kev txhim kho ib ntus kom coj kuv mus txog thaum kuv tuaj yeem hloov pauv cov muab kev pabcuam thiab tau txais xov tooj tshiab. Nws tau ua haujlwm zoo, nws tau kav rau
Yuav Ua Li Cas Sib Sau 3D Lub Teeb Lub Vev Xaib 8x8x8 Xiav LED MP3 Music Spectrum Los Ntawm Banggood.com: 10 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Sib Sau 3D Lub Teeb Lub Caj Npab 8x8x8 Xiav LED MP3 Music Spectrum Los Ntawm Banggood.com: Qhov no yog qhov peb tab tom tsim: 3D Lub Teeb Lub Cube Pob 8x8x8 Xiav LED MP3 Music SpectrumOptional Transparent Acrylic Board HousingIf koj nyiam no lub voos xwmfab LED, koj yuav xav tau plam ntawm kuv tus YouTube channel uas kuv ua LED ntsuas, neeg hlau, IoT, luam ntawv 3D, thiab mor
Lub Vev Xaib Tswj Lub Vev Xaib Box: 4 Kauj Ruam
Lub Vev Xaib Tswj Lub Vev Xaib Box: Qhov no yog lub thawv xauv uas tuaj yeem qhib tau los ntawm kev qhia sai ntawm lub vev xaib. Qhov no txhais tau tias, koj tuaj yeem kaw cov khoom tam sim ntawd hauv lub thawv thiab tsuas yog nkag mus rau lawv thaum ib tus neeg nkag mus rau kab lus muab nkag rau ntawm lub vev xaib pej xeem. Vim li cas ib tus xav tau qhov no? Nov yog ib qho ex
Txhua Yam Txog Kev Tsim Lub Vev Xaib Lub Vev Xaib: 5 Kauj Ruam
Txhua Yam Txog Kev Tsim Lub Vev Xaib Lub Vev Xaib: Lub vev xaib pub dawb no yog daim ntawv uas koj siv los npaj phiaj xwm kev tsim kho cov ntsiab lus zoo ua kom pom tseeb cov ntsiab lus lub vev xaib. Daim qauv txheej txheem no tau tsim nrog kev yooj yim siv cov khoom siv hauv Microsoft Excel txawm hais tias muaj ntau yam software sib txawv
Lub hauv paus tseem ceeb ntawm Lub Vev Xaib-raws li Lub Vev Xaib: 7 Kauj Ruam
Cov Hauv Paus Ntawm Lub Vev Xaib-raws li Lub Vev Xaib: Cov lus qhia no yuav qhia koj cov hauv paus ntawm kev tsim lub vev xaib nrog divs li cas. Vim tias cov ntxhuav siv rau kev teeb tsa yog qhov phem!: PTo kom nkag siab cov lus qhia no, koj yuav tsum paub qhov yooj yim html thiab css. Yog tias koj tsis nkag siab qee yam, xav tias dawb rau