Cov txheej txheem:
- Kauj ruam 1: Tau Kev tshoov siab
- Kauj Ruam 2: Yam Koj Xav Tau
- Kauj Ruam 3: Tsim Lub Thawv
- Kauj Ruam 4: Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 5: Kev Sib Txuas thiab Coding
- Kauj Ruam 6: Daim npog Acrylic
- Kauj Ruam 7: Nqa Nws Ua Ke
- Kauj Ruam 8: Software thiab Tswj
- Kauj Ruam 9: Tsim Koj Tus Kheej thiab Txaus Siab
Video: 500 LED-Pixel RGB-Cib: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Ib pliag dhau los kuv tsim 10x10 LED-Coffetable nrog qee qhov ntawm WS2812 LEDs, tab sis txawm tias nws muaj peev xwm ua si qub-tsev kawm game game Snake nrog lub xov tooj smartphone txuas nrog nws, Kuv xav tau qee yam tshwj xeeb. Yog li kuv txiav txim siab muab ob peb lub leds ntxiv rau nws, teeb tsa ua lub voos xwmfab kom thiaj li muaj peev xwm tsim tau cov duab zoo li kev ua si thiab ntawm no peb yog: RGB-Cib.
Kuv xav ua tsaug rau tag nrho pab pawg ntawm LED-STUDIEN uas tau pab nyiaj rau txoj haujlwm no, tab sis tshwj xeeb yog Dennis Jackstien ua kuv tus neeg sib cuag. Yog tsis muaj kev pab kuv yuav tsis tuaj yeem tsim qhov ntxim nyiam LED-Cube.
Kauj ruam 1: Tau Kev tshoov siab
Nov yog ob peb daim duab thiab cov vis dis aus me me nrog qee qhov peev xwm ntawm Cib, suav nrog ntau cov duab, ib (ua haujlwm txuas ntxiv) hluav taws rau cua sov, ua kom pom lub suab paj nruag thiab cov game nab thiab Tetris.
Kauj Ruam 2: Yam Koj Xav Tau
Nov yog cov npe ntawm txhua cov ntaub ntawv koj xav tau, qee qhov tsis tsim nyog thiab lwm tus tuaj yeem sib pauv tau los ntawm qhov koj nyiam:
- 500 WS2812 LEDs 30px/m
- 5V 30A fais fab mov
- Cov tub ntxhais hluas 3.2
- ESP8266 wifi-tus qauv
-
qee daim ntoo:
- 1x: 27, 2cm x 27, 2cm x 1, 0cm, rau lub hau
- 2 x: 29, 6cm x 27, 2cm x 1, 0cm, rau cov vaj huam sib luag sab loj
- 2x: 25, 2cm x 29, 6cm x 1, 0cm, rau sab me me
- 1x: 34, 0cm x 34, 0cm x 1, 9cm, rau hauv qab
- 8x: 34, 0cm x 4, 6cm x 0, 3cm, rau ntawm ntug ntawm daim phiaj LED
- 100x: 34, 0cm x 3, 3cm x 0, 3cm, rau LED daim phiaj
-
qee daim iav acrylic:
- 1x: 34, 0cm x 34, 0cm x 0, 3cm yog
- 2 x: 34, 0cm x 36, 3cm x 0, 3cm
- 2 x: 34, 6cm x 36, 3cm x 0, 3cm
- 1x: 10, 0cm x 7, 5cm x 0, 3cm (yeem, rau lub davhlau ya nyob twg)
- Teensy audioboard (yeem)
- Cov xov hlau, tus tswj hluav taws xob, cov hlua txuas, lub suab nrov, khawm, ntsuas kub (xaiv tau)
- ntoo nplaum, acrylic iav kua nplaum, ntsia hlau thiab lwm yam me me
Yog tias koj xav tau lub davhlau ya nyob twg hauv qab ntawm lub voos xwmfab (nws yog qhov xav tau cia siab rau lub hwj chim nkaus):
- 230V fais fab tuag
- 230V hloov
- suab nkaus
- USB txuas txuas
Kauj Ruam 3: Tsim Lub Thawv
Ua ntej tshaj plaws peb yuav tsim lub thawv ntoo thiab daim phiaj LED. Qhov ntev ntawm lub voos xwmfab tau teev tseg los ntawm qhov deb ntawm pixel ntawm LED sawb. Hauv qhov no pixel muaj qhov nrug ntawm 3, 4cm, yog li lub voos xwmfab yuav tsum yog 34 x 34 x 34 cm. Koj yuav txuag ntau lub sijhawm siv qhov ntev no, vim tias koj xav tau tsis txhob txiav cov kab txaij tom qab txhua lub pixel thiab muab rov qab los ua ke los ntawm txoj kab me me.
Txhua yam tuaj ua ke nrog qee cov kua nplaum ntoo. Koj yuav tsum ua haujlwm kom raug vim ua rau cov ntaub ntawv acrylic zoo sib xws nyob saum lub thawv ntoo. Nws tau txais kev yooj yim dua nrog qee tus neeg tuaj yeem pab dawb nyob ib puag ncig koj, lossis tsuas yog siv tus thav duab thav duab zoo li kuv tau ua.
Cov npoo ntawm daim phiaj thiab daim phiaj nws tus kheej yog ua los ntawm cov ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom ntom dej (HDF). Siv lub rooj pom yog qhov kev xaiv zoo tshaj vim tias koj yuav tsum txiav ntau dua 100 daim ntawm lawv. Koj tuaj yeem pom qhov ntev hauv daim duab saum toj no. Daim phiaj xav tau qhov sib txawv me me (kwv yees li 0, 3cm) txhua txhua 3, 4cm txhawm rau kom tau x thiab y coj ua ke. Thaum koj ua tiav, koj tuaj yeem tso cov ntug rau lub voos xwmfab thiab kho lawv nrog ntau cov ntoo kua nplaum. Nws nyuaj me ntsis, tshwj xeeb tshaj yog vim tias lawv yuav tsum muaj lub kaum sab xis ze li 45 degrees. Ua ntej koj tuaj yeem xa daim phiaj rau lub voos xwmfab koj yuav tsum tau ntxiv cov hlua LED.
Kauj Ruam 4: Cov Khoom Siv Hluav Taws Xob
Cov LED ib sab ntawm ib sab mus ib ncig ntawm lub voos xwmfab, yog li txiav 10 kab ntawv nrog qhov ntev ntawm 40 pixel. Rau cov LEDs saum lub voos xwmfab txiav 10 kab ntawv nrog qhov ntev ntawm 10 pixel. Ceev faj kom kho cov kab kom raug los ntawm kev hais txog lub xub ntawm lawv. Thaum koj tshem cov kua nplaum tawm ntawm lub voos xwmfab nws yuav tsis tuav zoo li thawj zaug.
Cov khoom siv fais fab tau tsau nrog qee qhov ntsia hlau ntawm ob sab ntawm sab hauv. Cov hlua hluav taws xob los ntawm LEDs tau nkag mus rau hauv lub thawv los ntawm qee qhov me me nyob ze ntawm txhua kab sawb LED.
Tus tswj hwm muaj Teensy 3.2, ESP8266 thiab Teensy audio board, uas tsis tas yuav khiav lub voos xwmfab. DHT11 tsuas yog txhawm rau txheeb xyuas qhov ntsuas kub sab hauv lub voos xwmfab tab sis tom qab kuaj ntau yam txog ob peb teev kuv tuaj yeem hais tias koj tuaj yeem tso nws tawm.
Ntawm lub davhlau ya nyob twg koj tuaj yeem pom lub hwj chim txuas nrog rau lub zog hloov pauv (thaum kuv pom tau tias qhov no tsis yog qhov chaw zoo tshaj plaws rau kev hloov pauv nws lig dhau lawm). Lub USB nkaus yog rau kev ua haujlwm Teensy. Lub suab-hauv mus rau Teensy audio board rau ua LEDs rau cov nkauj. Tag nrho cov no los ua ke ntawm kev thaj yeeb nyab xeeb me me ntawm aryl iav tuav los ntawm ob daim ntawv txhuas. Tsuas yog pom qhov no hauv lub nkas -las, koj tuaj yeem siv txhua yam koj xav tau vim tias nws tau npog los ntawm cov vaj huam sib luag hauv qab ntoo thiab tsis pab ua kom zoo li lub voos xwmfab.
Nco ntsoov tias ib qho LED siv 60mA, tag nrho yog 30A! Ceev faj thaum koj nqes lawv! Koj yuav tsum txheeb xyuas tag nrho koj cov kev sib tw ua ntej koj txuas lawv rau lub zog siv!
Kauj Ruam 5: Kev Sib Txuas thiab Coding
Cov LEDs tau txuas nrog ua ob daim ntawv ntawm tus pin 3 thiab 20 ntawm Teensy. Thawj qhov yog matrix nyob rau sab saum toj (10x10, 100pixels) thiab qhov thib ob yog sab (40x10, 400pixels). LEDs ntawm cov lej saum toj kawg nkaus tau koom ua ke hauv zigzag tus qauv, txhais tau tias cov xub ntawm kab ntawv yuav tsum nyob hauv cov lus qhia sib txawv rau txhua kab txaij, hos cov kab txaij LED ntawm ob sab sib koom ua ke tib yam. Saib cov duab, kab liab yuav qhia koj yuav ua li cas txuas Dout ntawm thawj kab ntawv mus rau Din ntawm tus tom ntej no, vam tias yuav pab koj nkag siab txog kev sib koom ua ke.
Txog qhov ua yeeb yaj kiab thiab kev ua si Kuv tau hloov ob qhov kev kawm ua ib qho los ntawm qhov loj ntawm 10x50 siv cov haujlwm hauv qab no:
void setXYPixel (byte x, byte y, CRGB c) {
yog (x <= 39) matrix_bottom (x, y) = c; lwm matrix_top (x - 40, y) = c; } // kawg setXYPixel ()
Rau Snake game koj yuav tsum tau siv qee qhov tshwj xeeb:
- Thaum tus nab nab tsoo rau kab saum toj kawg nkaus ntawm sab matrix nws yuav tsum hloov mus rau matrix nyob rau sab saud.
- Thaum tus nab nab tsoo ib qho kawg ntawm sab saum toj matrix nws yuav tsum hloov mus rau hauv qab matrix.
- Thaum tus nab nab tsoo qhov kawg lossis thawj kab ntawm sab matrix nws yuav tsum hloov mus rau thawj kab lus kawg.
Txog Tetris kev ua si koj xav tau qee yam zoo sib xws rau qhov no rau thaj chaw pib ntawm kaum sab laug:
void setXYPixel (byte x, byte y, CRGB c) {
yog (y <10) matrix_top (x, y) = c; lwm matrix_bottom (x + 10, 19 - y) = c; } // kawg setXYPixel ()
Kauj Ruam 6: Daim npog Acrylic
Nyuaj nyuaj dua li lub thawv ntoo vim qhov tuab me dua, tab sis nrog lub sijhawm txaus thiab lub tswv yim zoo rau khaws lub voos xwmfab ua ke thaum cov kua nplaum ua tawv koj yuav tau txais qhov no ua ke. Kuv xav tsis thoob txog lub zog ntawm cov kua nplaum acrylic (Acrifix), yog li kuv xav tias koj tsis tas yuav txhawj xeeb txog qhov xwm txheej tawg.
Kauj Ruam 7: Nqa Nws Ua Ke
Tom qab koj ua tiav txhua cov kauj ruam ua ntej nws yog lub sijhawm coj txhua feem ua ke. Thaum koj tsis tau koom ua ke ntawm kab sib chaws LED tsis tau, tam sim no nws yog lub sijhawm los ua li ntawd. Kuv tsis lo daim kab xev rau lub voos xwmfab vim tias tsis xav tau nws thiab thaum muaj qhov tawg LED koj tuaj yeem sib pauv nws yam tsis muaj teeb meem, txawm li cas los xij koj yuav tsum muaj ntau dua ob txhais tes los tuav tsib daim phiaj rau lub voos xwmfab thiab muab tso rau nws nyob hauv daim npog acrylic. Qhov kawg tab sis tsis tsawg kawg koj tuaj yeem ntsia hlau hauv qab ntoo vaj huam sib luag rau lub voos xwmfab. Lub hau tau tsau rau hauv qab vaj huam sib luag los ntawm yim qhov ntsia hlau me me heev.
Kauj Ruam 8: Software thiab Tswj
Kev kos duab ntawm Teensy yog ua raws lub tsev qiv ntawv FastLED uas suav nrog ntau qhov kev ua yeeb yaj kiab. Ntxiv rau RGBLEDS lub tsev qiv ntawv pob rau koj cov duab kos coj cov lej lej lej muaj zog rau tso tawm cov ntawv thiab 'sprites' nrog ntau qhov piv txwv kos duab ib yam. Yog tias koj xav ua si Tetris ib yam thiab tom qab ntawd xa mus rau cov lus qhia los ntawm jollifactory, txawm tias nws tsuas yog siv ob lub xim sib txawv.
Lub smartphone app yog raws NetIO los ntawm David Eickhoff uas muaj cov ntaub ntawv zoo heev. Nrog NetIO-UI-Tus tsim qauv koj tuaj yeem tsim koj tus kheej cov neeg siv sib tham nrog cov nyees khawm, swb, ntawv cim thiab ntau ntxiv. Koj tuaj yeem xaiv cov txheej txheem rau cov lus tawm hauv tus tsim qauv. Hauv kuv qhov xwm txheej kuv coj qhov yooj yim tshaj plaws - UDP. Cov lus tau xa mus rau ESP8266 los ntawm kuv lub network hauv tsev thiab Teensy yuav tshuaj xyuas cov ntsiab lus thiab ua raws cov lus txib tshwj xeeb. Koj tuaj yeem siv daim ntawv txuas txuas los pib tsim koj tus kheej lub interface lossis tsuas yog siv daim ntawv thov uas koj xaiv.
Kauj Ruam 9: Tsim Koj Tus Kheej thiab Txaus Siab
Tam sim no nws yog lub sijhawm kom tau txais cov khoom thiab tsim koj tus kheej Cib. Yog tias koj muaj lus nug xav nug dawb.
Rau cov vis dis aus ntau ntxiv koj tuaj yeem tshawb xyuas kuv Youtube-Channel. Nws tseem yog ib txoj haujlwm tseem tab tom muaj ntxiv rau yav tom ntej.
Ua tsaug rau kev nyeem ntawv thiab muaj kev lom zem ua si Tetris lossis lwm yam kev ua si zoo ntawm koj tus kheej Cib!
Qhov khoom plig thib ob hauv Kev Teeb thiab Teeb Pom Kev Zoo 2016
Qhov khoom plig loj hauv kev sib tw LED
Pom zoo:
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Dynamic LED Teeb Pom Duab Duab Lub thawv thiab Ncej rau Kos Duab :: 16 Cov Kauj Ruam (nrog Duab)
Dynamic LED Lighting Shadow Box and Frame for Art :: Teeb pom kev yog qhov tseem ceeb ntawm kev kos duab. Thiab yog tias teeb pom kev zoo tuaj yeem hloov pauv nrog lub sijhawm nws tuaj yeem dhau los ua qhov tseem ceeb ntawm kev kos duab. Txoj haujlwm no tau pib nrog koom nrog kev ua yeeb yam pom thiab pom tias lub teeb pom kev zoo tuaj yeem hloov pauv li cas