Njengoba ususukume amaholide asebusika. Ekugcineni, i-Motorica yaqala ukujwayelekile, ukuqashelwa kwabuya ekubonakaleni kokuba, izintengo ezincane ezenzakalweni zomsebenzi wamanje, okusho ukuthi sekuyisikhathi sokuphuza isihloko, kulandela izinyawo. Ubuchwepheshe obukhulu, izindawo ze-ornithographic, ngamafuphi, konke, njengoba sithanda e-yap.
Ulwazi olungcwele angithembisi, kodwa naphezu - ngizotshela okungenani, kepha lokhu kwanele ukuqonda imigomo futhi uqhubeke nocwaningo oluzimele. Yebo, kuzoba nentshisekelo - ngizobhala ingxenye yesibili, yandiswe, ngokudalulwa komqondo futhi, ngenxa yalokho, izinketho zokubulawa. Yize kunolwazi oluningi kwinethiwekhi.
Ukungena kokushushisa.
Saphonsa ngandlela thile nge-sappy ...
O, mangaki enchanting, agcwele okuhlangenwe nakho kwempilo kanye nomqondo wehlazo ekuseni, izindaba ziqala amagama afanayo, ngakwazi ukutshela! Kepha ngaleso sikhathi, ukuba ngaphansi kokulawulwa okungenangqondo kwama-halves ethu abizayo, sasihlanganisa "impendulo ye-burger burger" umbuso noTikhnhechko bachume ingilazi ngaphansi kwengxoxo engavamile.
"U-UMOTOMA vele," kusho uMika ngokucabanga. - New Year ekhaleni. Wena, san, thanda insimbi ethengisa i-rosin iqonde, ungangicabanga yini i-garland efasiteleni? Ngifuna ukukwenza kahle. - Ngala mazwi, wasakaza iminwe yezandla, kungathi ekhombisa ukuthi akumuhle nje, futhi wah, muhle kanjani!
- Awekho amakhiwane? - Ngaphendula - Nginobuhle obunjekuwe ukuthi unakekele ukuthi omakhelwane bakho luhlaza kancane kusuka kumona, bazofika ebhodleleni kanye nomkhuhlane, ukuthola ukuthi ukwenze kanjani. Amakhuphoni okushelela, sizo-oda ikhithi ye-lunolic.
Esimweni sokwazi, eduze kweZen, noma ngabe uMih wangicela ukuthi sakhe indiza enophephela emhlane, noma ikhona inkomo eyakhiwe, kodwa kwakuyisikhathi eside ngifuna ukuqoqa okuthile okungathi sína Isisekelo se (Abafundi, okungenani abajwayelene ne-elekthronikhi, vele, vele, baqageliwe) ... ubuchwepheshe bekheli nama-LEDs alawulwa (abizwa nangokuthi ama-pixels ahlakaniphile, kahle, noma, ane-neopixel).
Sidinga:
1. Empeleni, amaphikseli uqobo. Ngisebenzise i-Chinese WS2812B.
Amamodeli ama-pixels a- "Smart" aningi, kepha akulonakele ukusebenza ngama-chips angenalutho, ngakho-ke udinga ukukhetha ukubulawa okufanele, futhi kungaba yiteyipu, futhi kungaba yi-LEDS ethengiswayo emabhodini amancane, njll. Isibonelo, angizange ngingifanele ngoba ngangidinga ukuphikisana, kude nami, ibanga phakathi kwamaphoyinti, ngama kumaphikseli ahlukile - ama-LED ahlaselwe yizandla zamaShayina ezingenandaba namabhodi amancane aphrinta. Kusuka ezinhlangothini ezinhle zesisombululo esinjalo, bekuyiqiniso futhi ukuthi umphikisi wokukhawulela wamanje kanye ne-capacitor yokuphambana ibekwa ebhodini ngalinye. Le yindlela amaphaneli ezinqolobaneni eziyikhulu zokubukeka okunjalo kwalenga. Ekwakhiweni okuchazwe, ngasebenzisa amaphikseli angama-286.
2. Amaphikseli anokulawulwa kwedijithali, ngakho-ke idivaysi yokulawula iyadingeka - isilawuli.
Lapha futhi, ukukhetha okubanzi kakhulu kwezixazululo zezobuchwepheshe: kusuka ku-arduino kuya kubalawuli abakhanyayo. (By the way, gijima phambili, i-garland ngaqoqa ezimbili. Umsebenzi wesibili ovela e-Arduinka, kepha lokhu sekuvele imininingwane yokuqhubeka nokuqhubeka uma kunjalo.)
Ngenxa yokuthi i-garland izosebenza umuntu ekude nobuchwepheshe, kwakudingeka ukuthi akhethe uhlobo oluthile lwe- "Box" Solution futhi ngamiswa esilawulweni esidumile nengabizi kakhulu kusuka ku-Middle Besse T-1000s. Noma, ekhuluma phakathi kwethu, kunezindlela ezimnandi kakhulu. Isibonelo, inkosi ekhazimulayo ye-Chelyabinsk ikhiqiza ithakazelisa kakhulu futhi, ngokuvamile, ayibizi, abalawuli balale ama-LEDs, kodwa abakhokhele ukukhangisa, bayaxolisa - abathanda yena. Yebo, futhi amaShayina anamamodeli ngesikhathi se-T-1000s, kepha kunoma yikuphi kubiza kakhulu, futhi isabelomali sasibaluleke kakhulu.
3. Ukunikezwa kwamandla.
Ukuhlinzekwa kwamandla kuyadingeka pyagolty! Amabhulokhi ajwayelekile we-Twellftic asetshenziselwa ama-ribbons ajwayelekile ajwayelekile ngeke afane nathi. Ngaphezu kwalokho, i-garland ehlonishwayo noma engaphansi ehloniphekile izokhungathekiswa yi-Plazy yamanje, ngakho-ke umqondo wokuphuza kusuka ku-USB noma kwishaja ngocingo engincoma ukuze ulahle ngokushesha.
Okwamanje kubhekwa kalula: Udinga ukwandisa inani elilinganisiwe lamaphikseli ngo-0.06 a - lokhu kwanele nge-reserve ukugcwalisa wonke ama-LED amhlophe, kepha uma umsebenzi onjalo awufanele (kungenzeka ukuthi kube yidijithi ingahlukaniswa ngokuphepha kwababili.
Endabeni yami, amaphikseli angama-286 x 0.06 a = 17.16 kanye ne-main ehlosiwe yamanje. Ngahlelela ukubeka amandla kagesi amalungu ayishumi, kepha ngizulazula emaphepheni epulatifomu edumile yokuhweba, yathola uhlobo olubizayo lwezinsuku ezingamashumi amabili zesaphulelo, futhi yalithatha.
Isithombe kusuka kunethiwekhi, okufanayo.
4. Izintambo, izindlu, izixhumi, umthengisi, iFlux, njll.
Lapha ohambile, konke kuzongena ebhizinisini. Ngokwami, ngokuhlaziya uhla lwezitolo, ekufuneni isabelozimali sesakhiwo, kumiswe ocingweni lwe-pugv 0.5mm ^ 2. Ungasebenzisa omncane ongawusebenzisa, kepha lona, kusuka emhlanganweni oguquguqukayo, waphenduka eshibhile.
Kanye nezindlu zokuhlinzeka ngamandla i-I, kuyahlekisa ukusho, ngokujwayelekile ekuthengisweni kwezomnotho - isitsha sokudla esinesembozo. Well, yini? Uyibonile ithegi yentengo yamacala ajwayelekile e-rea? Bese eshibhile futhi ethukuthele.
Manje ake sizame ukuthatha yonke le nsizwa ukuyiqoqa ndawonye. Ngiqoqe i-matrix ye-pixel engama-22x13 ngebanga le-85-90 mm. Phakathi kwamaphoyinti. Yebo, sengivele ngiqonde ukuthi ngifuna i-matrix yalesi size, futhi kusukela ekuqaleni siyahamba futhi sikulinganise ngokucophelela ubukhulu bamafasitela ewindini, badwebe umdwebo ephepheni futhi ngokuqinile ngokubala inani lamaphoyinti ngokuqondile nangokuvundlile. Njengoba lokhu kuyinto matrix, kuyinto efiselekayo ukukwenza mayelana namabanga afanayo phakathi kwamaphikseli abheke ngokuqondile nangokuvundlile, futhi ungakhohlwa ngama-jumpers ewindini phakathi kwezibuko, ukuze zilinganiswe kahle ezikhaleni eziphakathi kwezikhala ze Ama-LED.
Vele, sidinga uhlelo lokuxhuma konke lokhu kujoyina. Isikimu asilula lapha, kepha silula kakhulu. Kohl bekungeke kube njalo, angizukuphatha lolu lwazi kuzinqwaba manje.
Njengoba ukwazi ukubona esithombeni esingezansi, kunezidingo ezimbili kuphela ezidinga ukubonwa:
1. I-Pixel ngayinye idinga ukusebenzela ukudla (ibomvu kanye nomqhubi wesifundo esimnyama). Akukhathalekile ukuthi uzokwenza kanjani, ngisho nakulo nale ngakunye i-LED, vele uhudule izintambo zakho zezintambo, kepha esimweni se-matrix kulula kakhulu ukwenza ithayi eliphelele bese uguqula amandla kuwo emisebeni, njengoba emgqonyeni. Ngakho-ke, ngendlela, nathi sinikeza nezinga elifanayo lokuvumelanisa kwamandla kagesi ngakunye kwe-matrix.
Ngenza ibhasi kusuka ku-wire 2,5mm ^ 2, futhi ompompi benze amapuleti e-fiberglass enamacala amabili (kuvidiyo ngasekupheleni kwesihloko ngizokhombisa lezi zindawo), kepha ungenza ngendlela yakho, Akekho umngcele osemqoka.
2. Umqhubi wedatha (luhlaza okotshani emjovo) kufanele adlule ngokungaguquki inyoka kuwo wonke amaphikseli. Qala kusuka kwelinye ekhoneni le-matrix futhi Qhubeka: kusuka ekukhishweni kwe-pixel eyodwa ekungeneni kwenye i-pixel, futhi kuze kube sekupheleni. Ukuze wenze lokhu, emabhodini amaphikiseli, okufakiwe / okuphumayo futhi umcibisholo ukhombisa ukuqondiswa kokunyakaza kwesiginali - ungadideki.
Akukho mkhawulo ngenani lamaphikseli abheke phezulu, akukho mkhawulo ngenani lamaphikseli ngokuvundlile, akukho mkhawulo kuliphi i-angle ukuze liqale inyoka, akukho mkhawulo kulokho okuzoba yinyoka, mpo noma evundlile, Into ebaluleke kakhulu ukuthi kuyinyoka edlula kuwo wonke amaphikseli, futhi ngasikhathi sinye inani labo eliphakeme kufanele lingabi ngaphezu kwezicucu ezingama-2048.
Ngenze inyoka eqondile (ukuze ngiphonsa i-framuhu ukuthola umoya) ngokufaka kwesiginali yedatha ekhoneni elingezansi kwesobunxele.
Kulungile, kwanele ukucasuka, qhubeka nomsebenzi. Sifudumeza i-iron ethengisa, thatha iphaneli ye-LED, ucingo, umugqa, bese ushayela. Inkonzo ebabazekayo izoba nethuluzi elinjalo njengemikhakha yokususa ukwehlukaniswa, kahle, noma, eBurzhuyski, stripper. Futhi wafuna kanjani? Ngisho naku-garland elincane elinjalo, cishe inkulungwane namakhulu ayisishiyagalombili ukupholisa. MDA-S.
Ngincoma ukuthi ngingahlakaze iphaneli ku-seldering, ukuthengisa izimbumbulu ezinhle kuzolunga. Kunezigaba phakathi kwamabhodi ephaneli, lapho konke kuzophuka kalula.
Ukuthengisa.
Yenza-o-olgo soldeling.
Emaphethelweni emisebe, ngaphezulu nangaphansi, nginamathisela izinkomishi zokumunca. Hhayi-ke, hhayi eScotch ye-garland engilazini ukuze ulenga eqinisweni? Omunye angaqhamuka nenye inketho yokuqinisa, futhi ngama kuyo. Kuliqiniso, izinkomishi zokumunca, ububanzi obungu-2,5 cm. Engikusebenzise, angizange ngibambe okuningi, ngincoma ukubheka eceleni kwe-4-5 cm. Bathengwe endaweni efanayo , enkundleni yokudlala ebomvu yaseChina.
Sithola umphumela ophakathi nendawo.
Hawu, iwashi lesithombe livusa inkanuko. Yebo, ngize ngibekwe ezintweni zokuzilibazisa zami.
Yebo, ngicabanga ukuthi inqubo yokufaka iyaqondakala. Ngeshwa, azikho ezinye izithombe zokuhlela, bekungenjalo ngaphambi kwalokhu, kepha kule vidiyo ngezansi nje kuzocaca, noma ngabe imibuzo isaqhubeka.
Iya kwisoftware. Amafuphi, izinhlinzeko ezijwayelekile zokungenzi zinciphise isihloko. Kunemiyalo yonke kunethiwekhi. Izixhumanisi ezinhlelweni ngeke zibe amantombazane, kepha zikhululekile futhi akukho ukufinyelela kwamahhala, akufanele kube nezinkinga zokucinga. Njenge-resort yokugcina, ungqongqoze - share.
Ngamafuphi, isilawuli nje singumdlali - esikubhalela i-flash drive, khona-ke izodlala, ijaha ifayela embuthanweni. Ungenandaba nokuthi mangaki ama-ray namaphikseli, avele asakazeke egadeni elibona ekhadini.
Amanye ama-nudyatins: Umgomo wokulawulwa kwamaphikseli ulula kakhulu: ama-bits ayisishiyagalombili kuleyo naleyo mibala emithathu ye-pixel, i.e. Ama-byte amathathu ku-pixel, ukugeleza okuqhubekayo kwalo lonke uchungechunge lwamaphikseli. Njengoba i-pixel inquma ukuthi imaphi ama-byte amathathu angewona wonke amabhayinti angewona - ke hhayi isihloko sengxoxo ngalesi sihloko, kepha konke kulula kakhulu, kumane kuhlakaniphile, mhlawumbe-ke kuzosho imininingwane.
Kepha uhlelo lapho udala khona umbukiso wakho, lapha kudinga ukwazi yonke imininingwane yenyoka, kuzonciphisa ukuhleleka kokuphatha i-pixel ngayinye efayilini owenzile.
Ngakho-ke, uma usebenzisa i-T-1000s, bese wakhe iskripthi sombukiso esikhanyayo nokwakha ifayela oliphonsa ku-flash drive, kufanele usebenzise uhlelo lweLededit.
Kubaluleke kuphela lapho udala iphrojekthi ukucacisa ukuthi uzosebenzisana ne-WS2811 (la maphikiseli ahambelana ne-software ne-WS2812B) kanye nokubekwa phambili kokulawulwa kwe-GRB (hhayi i-RGB, njengoba sasisebenzisa!). Ngemuva kwalokho setha inani lamaphoyinti ngokuqondile nangokuvundlile, uhlobo lwe-Snake (mpo / avundlile) kanye ne-angle yokuqala ye-matrix. Lapho ucacisa i-angle, ungakhohlwa ukuthi kuyadingeka ukuyibuza njengokungathi ubheka i-matrix ngaphambili.
I-LEDEDIT Uhlelo lulula, alikho inani elikhulu lezikhala zemiphumela yokukhanya kulo, kepha lingadala ifayela elikwazi ukudlala i-T-1000s futhi kukhona umsebenzi wokudutshulwa kwesikrini. Lokhu kunguhlaka olunjalo, lapho uqhuma kunoma iyiphi ingxenye yesikrini, uhlelo ngokushesha luguqula isithombe ngaphakathi kohlaka ungene ekuqageleni nge-garland yethu. Okungukuthi, azikho izinkinga zokuthwebula noma yiziphi izithombe namavidiyo. Kuliqiniso, kuyadingeka ukuqonda ukuthi ukucacisa lapho ukuxazulula i-garland yethu ngeke kube khona ngokuphelele. Noma, mhlawumbe othile ovela kulabo abangifundayo manje, futhi uzocabanga ukuthi i-garland ibaluleke kakhulu.
Yebo, uma usho, khona-ke izinhlelo zokwakha izimo zokukhanya okukhanyayo kwamaphikseli ethu "smart" amaningi. Ukusuka kokulula kuya kokuyinkimbinkimbi, kusuka mahhala ngokuphelele, kuya kuchwepheshe kwabaningi, ama-bucazoid amaningi.
Okunye okuthandwa kakhulu, lokhu akungabazeki ukuthi engikuthandayo - Jinx! -Led Matrix control
Futhi abukho abantu abangathandwa kangako banguGlediator.
Angizange ngibuze ngendlala, yize ngithanda abantu abaningi. Uzosebenzisa muphi uhlelo, uyazi, futhi mhlawumbe uzothatha enye into. Zombili lezi zinhlelo zingumhleli onamandla okukhanya okukhanyayo, zinamathuba amaningi, zikuvumela ukuthi usebenze kwimodi ye-inthanethi: hlanganisa bese uboniswa ngokushesha. Kungenzeka ukuthi lezi zinhlelo zikwazi ukubonisa futhi zikwokubonisa futhi ngefayela ngefomethi ehambisana ne-T-1000s, kodwa angizange ngiyithole ngokutholwa kwaleli thuba, futhi asikho isikhathi sokuqonda izinkinga zoNyaka oMusha . Ngakho-ke, ngenze nje iskripthi eJinx, ngethula ukujaha ukudlala futhi ngiyithumbe ngesikrini esivela eLesditis. Voila! Silungele!
Sibukeza umphumela. Kuliqiniso, kwividiyo, ukuze ungabingeli i-roller, azikho izingcezu zesihlanu zemiphumela ephonswe embhalweni, kepha lo ngumsebenzi wokudala, angifuni ukukhipha iso lomuntu.
Yebo, mhlawumbe, yisabelomali kuphela sokukhathazeka.
1. Amaphikseli we-WS2812B ebhodini lesekethe ephrintiwe, athengiswa izingcezu eziyi-100 - ama-ruble ama-5 / PC. I-X300 PCS. = 1500 rub.
2. I-T-1000s Isilawuli - I-1 PC. = I-1000 rub.
3. Ukunikezwa kwamandla, 5V, 20a - 1pc. = 850 rub.
4. Wire Pugv 0.5mm ^ 2 - 6 hlikihla. / M. x 70m. = 420 ama-ruble.
5. Izinkomishi zokumunca, ezithengiswayo inqwaba - ama-ruble angama-50 / DES. x 5 = 250 ama-ruble.
6. Isitsha secala - 1 PC. = Ama-ruble ayi-120.
7. Izidingo zokukhuphuka, isixhumi ngesokhethi kanye nokunye - ~ ama-ruble angama-200.
Ingqikithi: Ama-ruble angama-4340.
Isimo sonyaka omusha - esiyigugu!
For sim saybye sallbye. Yilokho kuphela engangifuna ukukusho!
P.S. I-Garland "Smart" ngoba iqoqwe ku-LEDs athole igama elithi "amaphikseli smart" ngenxa yokuphathwa kwamakheli. Futhi-ke, akekho noyedwa ohlakaniphile - isiwula siyisiwula.
Umthombo