Cov txheej txheem:

8x8 Tus Neeg pleev xim: 6 Kauj Ruam
8x8 Tus Neeg pleev xim: 6 Kauj Ruam
Anonim
8 x 8 Painter
8 x 8 Painter

Ib qho cuab yeej yooj yim rau tsim cov duab ntawm 8x8 LED module.

Cov neeg - Kuv phem. Tsis yog - tiag tiag, phem heev thaum nws los txog rau kos cov cim. Tshwj xeeb yog kos cov cim ntawm daim phiaj 8x8, zoo li cov me WEMOS Matrix Qhia rau WEMOS D1. Nyob rau sab saum toj ntawm qhov ntawd, Kuv nqus ntawm suav kab thiab hloov pauv cov ntawd rau hauv kev sawv cev binary.

Yog li kuv dag - thiab tsim qhov me me hu ua 8x8 tus neeg pleev xim.

Kauj ruam 1: Qhov ntawd yog dab tsi?

Qhov ntawd yog dab tsi?
Qhov ntawd yog dab tsi?

ESP8266 tuav lub vev xaib uas sawv cev rau 8x8 daim phiaj ntawm cov duab matrix - nyem ib qho ntawm cov ntawv no thiab nws tig liab/rau, nyem dua thiab nws tig tawm/dub. Koj cov khoom ua tau zoo ib yam, yog li koj tuaj yeem tshawb xyuas koj cov duab hauv lub sijhawm tiag tiag ntawm kho vajtse tiag. Kuv tseem nqus ntawm kos ib yam dab tsi ntawm qhov ntawd, tab sis tam sim no kuv paub zoo nkauj thaum ntxov thaum kuv nqus:)

Ntawm sab xis ntawm daim phiaj (ntawm koj lub vijtsam) koj yuav pom daim ntawv theej & muab tshuaj txhuam npaj txhij ua tus sawv cev hauv daim ntawv byte array (khaws cia hauv qhov program) - tsuas yog rub nws thiab muab nws tso rau hauv koj li kev cai. Xav tias yuav hloov kho cov npe -npe, thiab yog tias cov phiaj xwm yuav tsis ua haujlwm rau koj: uas yog 8 bytes - yog li nws yuav zaum tsis dhau koj lub cim xeeb;)

Kauj Ruam 2: Koj Xav Tau Dab Tsi?

Qhov no tau tsim nrog WEMOS D1 hauv siab, yog li koj xav tau D1 thiab LOLIN Matrix LED daim thaiv: D1:

Matrix LED Shield:

- cov no tsis muaj afliliate txuas - qhov no tsuas yog qhov uas kuv tau txais kuv cov khoom. Xav tias dawb mus yuav lwm qhov twg.

Kauj ruam 3: Software?

Rub tawm qhov haujlwm ntawm no:

Txoj haujlwm los hauv ob daim ntawv - ib qho kos duab, qhov thib ob muaj lub vev xaib koj ESP yuav xa.

Yog tias koj tsis xis nyob rub tawm qee qhov tsis paub ZIP: ntawm no yog lub ntsiab lus tseem ceeb:

… Thiab lub vev xaib:

Yog tias koj tsis siv ZIP: ob cov ntaub ntawv mus rau hauv ib daim nplaub tshev. Qhov Webpage -Ib feem yuav tsum yog hauv cov ntawv hu ua "index_html.h" - daim duab tuaj yeem hu ua ib yam dab tsi, tsuav yog lub npe nplaub tshev zoo ib yam li INO ib qho. Yog, Arduino …

Kauj ruam 4: Tsev qiv ntawv?

Tseeb. Txhawm rau sau, koj yuav tsum muaj cov tsev qiv ntawv no tau teeb tsa:

Tus Thawj Tswj Wifi

.. thiab lub tsev qiv ntawv rau LED matrix: https://github.com/thomasfredericks/wemos_matrix_…..wich yuav nug koj kom nruab Adafruit GFX lub tsev qiv ntawv.

Ob qho (tag nrho peb?) Cov tsev qiv ntawv tuaj yeem tau txais los ntawm Tus Thawj Saib Xyuas Tsev Qub Zoo.

Kauj Ruam 5: Yog li - Peb Yuav Ua Li Cas Thiaj Li Ua Haujlwm Li Cas?

Tom qab xa cov cai, koj lub LED Zaub ua qhov me me ua kom pom tseeb - qhia rau koj, tias nws xav txuas rau koj li Wifi. Yog li lob koj lub fone, qhib koj li WLAN's - saib rau WLAN tshiab lub npe

8x8painter CONFIG

- txuas mus rau WLAN tshiab - koj tus fone yuav tsum nug, yog tias koj xav txuas rau WIFI ntawd (thov txim, fone German nyob ntawm no - tsis paub meej tias cov lus Askiv hais dab tsi) - coj mus rhaub qhov ntawd. Yog tias tsis muaj cov lus zoo li no: qhib lub browser (ntawm koj lub fone uas txuas nrog ESP's WiFi) thiab mus rau "https://1.2.3.4".

Lub vijtsam dawb, khawm xiav loj? Nov yog Wifi Manager.

Coj mus rhaub "Configure Wifi", xaiv koj lub wifi thiab ntaus koj tus password. Ntaus txuag - cov animation yuav tsum nres (matrix mus dub); ESP tam sim no txuas nrog koj lub wifi.

Qhib qhov browser uas koj xaiv thiab siv qhov chaw nyob no:

8x8painter

- qhov no yog: koj yuav tsum tam sim no pom lub ntsiab interface - zoo siab lub tsev tsim !!

Kauj ruam 6: Sau ntawv

Sau ntawv
Sau ntawv

Tsis tsuas yog kuv nqus ntawm cov duab kos duab - Kuv txawm hais tias nqus ntawm kev tawm tswv yim. Kuv ib txwm mus rau kev nthuav qhia cov npe sib txawv - yog li daim duab yuav tsum tsis txhob nyuaj ua raws.

Yog, Kuv nyiam kuv lub luag haujlwm - txoj hauv kev yooj yim tshaj plaws los nyeem cov duab kos yog kom tawg tag nrho thiab tshawb xyuas cov haujlwm sib cais.

Kuv tshuav qee cov lus hais hauv Serial.print hauv qhov chaws rau kev debugging - txheeb xyuas lub serial console thaum khiav yuav yog lub tswv yim zoo:)

Lub Vev Xaib tau khaws cia hauv ib txoj hlua ntev - ntuj raug txim thiab kev puas tsuaj - Cov hlua! Kuv yuav ua li cas? Zoo, Kuv muaj qhov chaw rau nws, Kuv tsis hloov nws hlo li (Globals From Hell) - yog li kuv tsis tshua mob siab rau. Yog tias koj ua: mus tom ntej, ua kom nws zoo dua. Qhov ntawd yog qhov zoo nkauj ntawm txoj haujlwm.

Lub Vev Xaib ua txhua yam zoo nkauj hauv JavaScript - thov txim rau qhov ntawd; nws yog qhov kev daws teeb meem tshaj plaws uas kuv tuaj yeem tuaj nrog. Kev sib txuas lus ntawm ESP thiab browser tuaj yeem ua tau zoo dua nrog webSockets - tab sis ua GET -Strings yog qhov khoom ntawm kuv lub siab thaum sau ntawv - nco ntsoov: tsis txhob kov lub tshuab ua haujlwm:)

Lub Vev Xaib tau tsim los siv Firefox - tub nkeeg kuv, Kuv tsis tau sim tawm chrome/ntug/ua yeeb yam/xijpeem koj siv. Yog tias qee yam tawg.. sim Firefox.

2020 los ntawm Detlef Hloov Kho. Dawb Software - muaj kev lom zem nrog nws !!

Pom zoo: