Cov txheej txheem:

4 Txoj Haujlwm hauv 1 Siv DFRobot FireBeetle ESP32 & LED Matrix Npog: 11 Kauj Ruam (nrog Duab)
4 Txoj Haujlwm hauv 1 Siv DFRobot FireBeetle ESP32 & LED Matrix Npog: 11 Kauj Ruam (nrog Duab)

Video: 4 Txoj Haujlwm hauv 1 Siv DFRobot FireBeetle ESP32 & LED Matrix Npog: 11 Kauj Ruam (nrog Duab)

Video: 4 Txoj Haujlwm hauv 1 Siv DFRobot FireBeetle ESP32 & LED Matrix Npog: 11 Kauj Ruam (nrog Duab)
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim
Image
Image
Nruab Nruab Cov Tsev Qiv Ntawv rau Cov Haujlwm
Nruab Nruab Cov Tsev Qiv Ntawv rau Cov Haujlwm

Kuv xav txog kev ua cov lus qhia rau txhua txoj haujlwm no - tab sis thaum kawg kuv txiav txim siab tias qhov sib txawv loj tshaj plaws yog software rau txhua qhov haujlwm kuv xav tias nws zoo dua tsuas yog ua ib qho kev qhia loj!

Kho vajtse zoo ib yam rau txhua qhov haujlwm, thiab peb siv Arduino IDE los teeb tsa ESP32 lub cuab yeej.

Yog li kho vajtse yog dab tsi: Txhua yam khoom siv kho vajtse tau muab los ntawm kuv cov phooj ywg ntawm DFRobot, lawv muaj cov lus qhia zoo heev, thiab yooj yim rau nruab cov laug cam rau qhov no. Kuj tseem muaj cov txheej txheem txhawb nqa zoo nyob hauv qhov chaw, thiab xa khoom sai heev rau Asmeskas.

Kev nthuav tawm tag nrho Firebeetle ESP32 pawg thawj coj, thiab LED Matrix tau muab los ntawm DF Neeg Hlau, cov phiaj xwm nthuav tawm thiab hauv cov yeeb yaj kiab yog kuv tus kheej.

Cov haujlwm no txhua tus siv DFRobot FireBeetle ESP32 IOT MicroController

www.dfrobot.com/product-1590.html

Kev txhawb nqa wiki - nrog pawg thawj coj teeb tsa cov lus qhia tuaj yeem pom ntawm no:

www.dfrobot.com/wiki/index.php/FireBeetle_…

Peb kuj xav tau FireBeetle Npog 24x8 LED Matrix (XIAV)

www.dfrobot.com/product-1595.html

Tsis nyiam BLUE leds - Lawv muaj xim sib txawv ib yam.

GREEN -

RED -

WHITE -

YELLOW -

Koj tsuas xav tau ib qho LED Matrix - xim yog koj xaiv, lawv txhua tus ua haujlwm ib yam.

LED Matrix txhawb wiki tuaj yeem pom ntawm no:

www.dfrobot.com/wiki/index.php/FireBeetle_…

Nov peb pom qhov txuas mus rau Arduino Library.

github.com/Chocho2017/FireBeetleLEDMatrix

Ntau ntawm cov no me ntsis tom qab ntawm….

Ib yam uas yog xaiv tau, tab sis tej zaum yuav yooj yim kom muaj yog MicroUSB 3xAA Lub Roj Teeb Tuav.

www.dfrobot.com/product-1130.html

Yog li Ntawd yog kho vajtse xav tau - 4 txoj haujlwm yog dab tsi -

Kauj Ruam 1: Cov Haujlwm

Image
Image

Txoj Haujlwm 1: Puas yog qhov yooj yim LED Matrix NTP Moos nrog rau Cov Sijhawm Tub Rog lossis AMPM lub sijhawm tso saib, Lub moos no yuav txuas rau NTP (lub sijhawm server) rub lub sijhawm, thiab thov tshem tawm teeb tsa kom koj tau txais lub sijhawm hauv zos. Nws yuav tso saib lub sijhawm ntawm LED Matrix. - Nws yog lub moos yooj yim heev, thiab txoj haujlwm yooj yim heev 1.

Txoj Haujlwm 2: ISS Pass Prediction Display, txoj haujlwm no siv 2nd core ntawm tus txheej txheem. Nws yuav nthuav qhia ze li cas (mais) ISS yog, thaum yuav cia siab tias ISS tom ntej dhau ntawm koj qhov chaw nyob (Hauv UTC lub sijhawm), thiab xaiv seb muaj pes tsawg tus neeg nyob hauv qhov chaw. Txij li ntau cov ntaub ntawv no tsis hloov pauv ntau, peb siv lub hauv paus thib ob tsuas yog tshawb xyuas qhov hloov tshiab ntawm qhov kev twv ua ntej dhau los, lossis pes tsawg tus neeg nyob hauv qhov chaw txhua 15 feeb. Peb tuaj yeem tiv thaiv ntau tus API hu rau tus neeg rau zaub mov li no. Txoj haujlwm no nyuaj me ntsis, tab sis tseem yooj yim ua.

Txoj Haujlwm 3: Yooj Yim Tsiv Mus Sau Npe Siv MQTT, Kuv rov tshuaj xyuas qhov haujlwm uas tau ua rau ESP8266 D1 lub rooj tsav xwm me, thiab nws yog 8x8 LED Matrix - Lub tswv yim yog txuas rau MQTT tus tswv lag luam, xa xov mus rau lub ncauj lus lub cuab yeej yog mloog - thiab tso cov lus ntawd. Nws yooj yim zoo nkauj, thiab yooj yim heev los ua thaum txhua yam tau teeb tsa. Thiab muaj ob peb kauj ruam los teeb tsa MQTT cov neeg siv software ntawm lub khoos phis tawj desktop. Thaum teeb tsa MQTT yog cov txheej txheem xa xov muaj zog heev siv los ntawm ntau IoT cov cuab yeej xa thiab tau txais cov lus.

Txoj Haujlwm 4: Chaw Nres Tsheb Huab Cua - raws li ESP8266 D1 qhov chaw nres tsheb huab cua mini tsim los ntawm Squix78 thiab ThingPulse. Peb tuav peb cov ntaub ntawv los ntawm Wunderground, thiab tso saib cov xwm txheej tam sim no, thiab qhov kub nyob hauv degrees Fahrenheit. Peb siv lub hauv paus thib ob ntawm ESP32, txhawm rau hloov kho peb cov ntaub ntawv txhua 10 feeb. Nws kuj yooj yim rau teeb.

YUAV UA LI CAS YUAV TSUM PAUB MINI: Lub tsev qiv ntawv (thiab kos duab saum toj no) siv 8x4 font, lub tsev qiv ntawv tseem muaj cov ntawv 5x4, uas kuv siv rau feem ntau ntawm cov lus piv txwv me me no. Muaj ob peb qhov teeb meem uas kuv tuaj yeem sau nrog tus tsiaj ntawv me, ib qho nws zoo li ua teeb meem thaum koj siv WIFI ntawm lub cuab yeej. Nov yog qee yam kuv xav tshawb nrhiav ntxiv, tab sis tau muaj sijhawm. Lwm qhov teeb meem yog nws tsis nqes mus, tsuas yog cov ntawv loj tuaj yeem txav tau. Yog li tsis muaj cov piv txwv no siv WIFI - lawv tsuas yog hloov kho cov zaub, thiab ntau ntxiv txog cov no yuav tom qab.

Cia peb pib…..

Kauj Ruam 2: Nruab DFRobot FireBeetle ESP32 Board rau hauv Arduino IDE

Yog li, kuv yuav xa koj mus rau DF Robot Wiki ntawm kev teeb tsa lub hauv paus tswj hwm rau Arduino IDE.

Nws yog qhov yooj yim ua nrog IDE niaj hnub no (1.8.x lossis zoo dua).

www.dfrobot.com/wiki/index.php/FireBeetle_…

Kuv pom tias lub tsev qiv ntawv WiFi tau tsim rau hauv Arduino IDE ua rau muaj teeb meem (PS lwm lub Tsev Qiv Ntawv WiFi uas tej zaum tau teeb tsa hauv koj phau ntawv teev npe yuav lossis yuav tsis ua teeb meem). Tib txoj hauv kev (lossis tsawg kawg yog txoj hauv kev yooj yim tshaj plaws) uas kuv pom los daws qhov teeb meem yog tshem WiFi lub tsev qiv ntawv los ntawm IDE phau ntawv teev npe. Hmoov tsis muaj txoj hauv kev zoo los qhia koj qhov twg nws tuaj yeem teeb tsa - nws nyob ntawm seb IDE tau teeb tsa li cas, thiab ntawm OS koj tab tom siv.

Qhov kuv tau ua yog pom lub tsev qiv ntawv WiFi uas ua rau muaj teeb meem, thiab tsuas yog txav cov npe WiFi npe mus rau koj lub desktop … thiab rov pib dua IDE. Txoj kev ntawd koj tuaj yeem khaws lub tsev qiv ntawv yog tias koj xav tau nws rau Arduino WIFI cov laug cam.

90% ntawm cov teeb meem kuv tau pom tau cuam tshuam nrog cov teeb meem saum toj no. Yog tias koj tau txais ntau qhov suav sau yuam kev, cuam tshuam nrog kev siv WiFi los ntawm Arduino IDE cov npe lossis Arduino Library directory, qhov no yog qhov teeb meem koj muaj.

Kuv qhov teeb meem thib ob yog qee zaum cov duab kos tsis upload - Hauv qhov xwm txheej twg kuv tsuas yog yuav tsum tau nyem lub pob upload dua, thiab nws ua haujlwm.

Thiab qhov kawg, yog tias koj muaj lub console txuas qhib, thiab tom qab ntawd kaw nws - FireBeetle khov.

Kuv paub tias DF Neeg Hlau tau nquag ua haujlwm ntawm pawg thawj coj saib xyuas, thiab tsuas yog nyob rau lub sijhawm luv luv uas kuv tau muaj lub rooj tsavxwm lawv tau tshaj tawm cov tub ntxhais tshiab. Hmoov tsis nws tsis daws qhov teeb meem WiFi uas yog kuv qhov teeb meem loj tshaj plaws.

* Espressif muaj tus thawj tswj hwm 'generic' uas tuaj yeem teeb tsa tau, cov tub ntxhais suav nrog FireBeetle ESP32 lub rooj tsavxwm, tab sis kuv tau muaj teeb meem nrog nws muaj tus lej lej li cas. Qhov txaus siab ntawm no yog WiFi lub tsev qiv ntawv ua haujlwm nrog lub tsev qiv ntawv WiFi built -in - yog li kuv paub tias muaj kev daws teeb meem rau qhov teeb meem ntawd nyob ib puag ncig.

Yog tias koj xav sim Espressif cores koj tuaj yeem paub cov ntaub ntawv ntau ntxiv ntawm no:

github.com/espressif/arduino-esp32

Kuv tus kheej nyiam li cas DF-Robot core ua haujlwm, txawm tias muaj qee qhov teeb meem uas kuv muaj.

** NCO TSEG: Kuv tab tom siv LinuxMint 18 uas yog Ubuntu 16.04 raws kuv xav, Kuv tsis tau sim qhov no ntawm lwm lub tshuab, tab sis kuv ntseeg tias qhov teeb meem tam sim no rau txhua qhov OSes raws qee qhov tshawb hauv internet kuv tau ua. **

Kauj Ruam 3: Nruab Ib Lub Tsev Qiv Ntawv rau Cov Haujlwm

Nruab Nruab Cov Tsev Qiv Ntawv rau Cov Haujlwm
Nruab Nruab Cov Tsev Qiv Ntawv rau Cov Haujlwm

Tag nrho cov haujlwm no siv ob peb lub tsev qiv ntawv, yog li nws yooj yim dua los ua cov kauj ruam tam sim no.

Nyob ntawm lub tsev qiv ntawv koj tuaj yeem pom nws hauv tus thawj tswj tsev qiv ntawv - uas yog qhov yooj yim tshaj plaws los teeb tsa lub tsev qiv ntawv.

Lwm txoj hauv kev yog teeb tsa ntawm zip cov ntaub ntawv, uas ua haujlwm ib yam nkaus thiab. Tab sis feem ntau kuv siv phau ntawv teeb tsa txheej txheem. Muaj kev qhia zoo ntawm peb txoj hauv kev ntawm Arduino Website.

www.arduino.cc/en/guide/libraries

Txog cov tsev qiv ntawv no, Kuv xav kom qhia tus txheej txheem - vim tias muaj ob peb lub tsev qiv ntawv sib txawv uas muaj tib lub npe, siv tus thawj tswj tsev qiv ntawv koj tuaj yeem xaus nrog qhov tsis raug.

Txhua qhov haujlwm no siv Tus Thawj Saib Xyuas WiFi kom yooj yim txuas rau koj lub wifi - Kuv txiav txim siab ua qhov no yog tias koj xav txav koj txoj haujlwm, koj tsis tas yuav rov tsim dua lub rooj tsavxwm. Nov yog qee yam uas kuv siv rau ESP8266 cov laug cam, thiab nws ua haujlwm tau zoo - nws tsis zoo tag nrho. Hmoov zoo rau siv lub tsev qiv ntawv tau xa mus rau siv ESP32 los ntawm tus neeg siv github npe bbx10. (Tus tswj hwm no yuav tsum ua haujlwm nrog ESP8266 cov laug cam)

Peb yuav tsum tau teeb tsa peb lub tsev qiv ntawv rau qhov no ib yam nkaus.

WiFiManager -

Lub WebServer -

Thiab thaum kawg DNSServer -

Kuj tseem muaj rau txhua qhov kev kos duab yog DF Neeg Hlau DFRobot_HT1632C lub tsev qiv ntawv rau LED Matrix.

www.dfrobot.com/wiki/index.php/FireBeetle_…

Lub tsev qiv ntawv tuaj yeem nrhiav tau ntawm no (Ib zaug ntxiv kuv xav kom phau ntawv teeb tsa txheej txheem)

github.com/Chocho2017/FireBeetleLEDMatrix

Ntawv ceeb toom tshwj xeeb: hauv kuv qhov chaw cia khoom github - Kuv muaj ob peb qhov hloov kho me ntsis DFRobot_HT1632C cov tsev qiv ntawv

github.com/kd8bxp/DFRobot-FireBeetle-ESP32…

Kev hloov kho yog rau cov ntawv me me, thiab tsuas yog siv rau qee qhov piv txwv ntxiv. Koj tuaj yeem siv lub tsev qiv ntawv hloov kho thiab nws yuav tsum tsis ua teeb meem. Kuj tseem muaj lub tsev qiv ntawv hloov kho me ntsis (Txuas rau qee qhov kev kos duab ua tabs) uas tuaj yeem ua cov duab bitmap.

Yog tias koj xaiv siv qhov hloov kho me ntsis, koj yuav tsum hloov npe "hloov kho-tsev qiv ntawv" cov npe rau FireBeetleLEDMatrix thiab txav cov ntawv ntawd rau hauv koj phau ntawv teev npe Arduino. Koj tsis tas yuav siv cov ntawv no rau cov haujlwm no, nws xav tau yog tias koj xav sim qee qhov fonts me me los ntawm cov piv txwv ntxiv.

Cov ntawd yog cov tsev qiv ntawv ntau - peb yuav txhim kho qee lub tsev qiv ntawv tshwj xeeb rau txhua qhov haujlwm.

Cia peb txav mus rau LED Matrix….

Kauj Ruam 4: 24x8 LED Matrix Npog

24x8 LED Matrix Npog
24x8 LED Matrix Npog
24x8 LED Matrix Npog
24x8 LED Matrix Npog
24x8 LED Matrix Npog
24x8 LED Matrix Npog

Rau Peb yuav ua raws nrog DF Robot Tutorial rau LED Matrix

www.dfrobot.com/wiki/index.php/FireBeetle_…

Taw qhia: Qhov no 24 × 8 LED Matrix zaub tau tsim tshwj xeeb rau FireBeetle series. Nws txhawb hom kev siv hluav taws xob qis thiab tso saib kom pom. Nrog HT1632C kev ua haujlwm siab LED tsav tsheb nti, txhua tus coj muaj kev tso npe ywj pheej, uas ua rau nws yooj yim rau tsav cais. Nws suav nrog 256KHz RC moos, tsuas yog 5uA nyob rau hauv qis zog hom, txhawb 16 teev PWM ci ci kev hloov kho. Cov khoom no tseem ua haujlwm nrog lwm Arduino micrcontroller zoo li Arduino UNO.

Kev qhia tshwj xeeb:

  • Kev Ua Haujlwm Voltage: 3.3 ~ 5VLED
  • Xim: Tib xim (Dawb/Xiav/Daj/Liab/Ntsuab)
  • Tsav Chip: HT1632C
  • Ua Haujlwm Tam Sim No: 6 ~ 100mA
  • Kev siv hluav taws xob qis: 5uARC
  • moos: 256KHz
  • Chip Xaiv (CS): D2, D3, D4, D5 xaiv tau
  • Kev txhawb nqa Scrolling zaub

Default PINs:

  1. NTAWV 6
  2. WRD7 (Feem ntau Tsis Siv)
  3. CSD2, D3, D4, D5 xaiv tau (D2 default)
  4. RDD8
  5. VCC 5VUSB; 3.7V LiPo Roj Teeb

(Txhua qhov haujlwm no siv D2 rau tus pin xaiv, qhov no tuaj yeem hloov pauv tau yooj yim raws li xav tau.)

Nyob sab nraum qab ntawm LED Matrix koj yuav pom 4 qhov hloov pauv me me, nco ntsoov tsuas yog xaiv ib qho ntawm CS pins. Cov kev hloov me me no yog qhov koj xaiv koj li CS Pin, thiab lub neej ntawd yog D2.

DF Neeg Hlau WIKI muaj qee tus qauv piv txwv, cov cai no tseem nyob hauv cov piv txwv rau lub tsev qiv ntawv. (Kuv ntseeg)

Lwm qhov ntawv: siv Dx tus lej rau koj tus pin - txwv tsis pub tus lej tus lej yuav yog tus lej IO tus lej/npe

Thiab qhov ntawd yuav ua rau koj muaj teeb meem.

Teeb lub ntsiab lus:

X yog 0 txog 23 (lossis yog koj xav txog nws raws li daim ntawv nthuav tawm cov no yog kab ntawv).

Y yog 0 txog 7 (lossis yog koj xav txog nws raws li daim ntawv nthuav tawm cov no yog kab).

Lub tsev qiv ntawv muab cov ntsiab lus teeb tsa ua haujlwm.

display.setPoint (x, y) qhov no yuav teeb tus cursor rau qhov chaw ntawd, qhov twg tam sim no koj tuaj yeem luam tawm cov lus.

display.print ("Nyob Zoo Ntiaj Teb", 40); // qhov no yuav ua rau cov zaub pom "Nyob Zoo Ntiaj Teb" pib ntawm x, y taw tes thiab nqes tawm ntawm qhov screen.

Kuj tseem muaj setPixel (x, y) thiab clrPixel (x, y) - setPixel yuav qhib ib qho LED ntawm x, y qhov chaw, thiab clrPixel yuav tua LED ntawm x, y qhov chaw.

Muaj qee yam ntxiv uas lub tsev qiv ntawv no tuaj yeem ua tau - thiab feem ntau suav nrog hauv qhov piv txwv.

(Kuv xav kom khiav thiab hloov cov piv txwv kom pom tias nws tuaj yeem ua dab tsi).

* Ib yam uas zoo li tsis muaj dab tsi yog kos duab bitmaps - lub tsev qiv ntawv tuaj yeem ua qhov no tiag tiag tab sis vim qee qhov nws yog qhov haujlwm ntiag tug ntawm lub tsev qiv ntawv. Pom qee qhov ntawm kuv cov piv txwv ntxiv rau qhov hloov kho me ntsis ntawm lub tsev qiv ntawv

** Lwm qhov nws suav nrog 5x4 font teeb tsa, uas yog qhov zoo kom muaj tus tsiaj ntawv me dua - nws tau tawm tswv yim tawm hauv lub tsev qiv ntawv li cas. Kuv tau ua tsis txaus siab rau nws, thiab kom nws ua haujlwm, tab sis pom qee qhov teeb meem nrog nws - qhov loj tshaj nws tsis nqes mus. Thiab kuv pom tias nws zoo li ua teeb meem nrog rau wifi lossis tej zaum muaj lwm lub tsev qiv ntawv uas kuv xav siv.

Ib qho ntawm cov tsev qiv ntawv hloov kho kuv suav nrog txawm li cas los xij siv tus ntawv 5x4.

Cia peb txav mus rau cov haujlwm ….

Kauj Ruam 5: Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Cov Sijhawm Ua Tub Rog lossis AMPM Zaub

Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Lub Sijhawm Ua Tub Rog lossis AMPM Zaub
Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Lub Sijhawm Ua Tub Rog lossis AMPM Zaub
Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Lub Sijhawm Ua Tub Rog lossis AMPM Zaub
Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Lub Sijhawm Ua Tub Rog lossis AMPM Zaub
Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Lub Sijhawm Ua Tub Rog lossis AMPM Zaub
Txoj Haujlwm 1: Yooj Yim LED Matrix NTP Moos Nrog Lub Sijhawm Ua Tub Rog lossis AMPM Zaub

Txoj Haujlwm 1: Puas yog qhov yooj yim LED Matrix NTP Moos nrog rau Cov Sijhawm Tub Rog lossis AMPM lub sijhawm tso saib, Lub moos no yuav txuas rau NTP (lub sijhawm server) rub lub sijhawm, thiab thov tshem tawm teeb tsa kom koj tau txais lub sijhawm hauv zos. Nws yuav tso saib lub sijhawm ntawm LED Matrix. - Nws yog lub moos yooj yim heev, thiab txoj haujlwm yooj yim heev 1.

Ua ntej peb pib nrog txoj haujlwm yooj yim no, nws yuav yog lub tswv yim zoo kom paub tias NTP yog dab tsi -

NTP yog kev sib txuas hauv is taws nem siv los synchronize moos ntawm khoos phis tawj rau qee lub sijhawm siv. Nws yog txheej txheem txheej txheem. NTP sawv rau Network Sijhawm raws tu qauv.

NTP siv UTC raws li lub sijhawm siv (UTC yog Kev Sib Tham Sijhawm Txhua Hnub) nws hloov zuj zus los ntawm GMT (Greenwich Mean Time), thiab hauv qee lub voj voog nws hu ua Zulu Sijhawm (Tub Rog). UTC yog ua raws li quantum resonance ntawm cov cesium atom.

NTP yog qhov ua txhaum-zam, thiab muaj peev xwm ntsuas tau zoo, cov txheej txheem yog qhov raug, siv qhov kev daws teeb meem tsawg dua nanosecond.

*

UTC lub moos tsis siv ntau rau cov neeg feem coob, yog li peb yuav tsum hloov kho peb lub moos rau lub sijhawm hauv nroog. Luckily peb tuaj yeem ua qhov no yooj yim heev. Yog li cia peb pib nrog qhov yooj yim NTP moos….

1st peb yuav tsum tau teeb tsa lub tsev qiv ntawv uas ua rau tham nrog NTP cov servers yooj yim.

github.com/arduino-libraries/NTPClient (lub tsev qiv ntawv no tej zaum nyob hauv tus thawj tswj tsev qiv ntawv)

Koj puas tau hla cov kauj ruam 3 - thiab tsis paub yuav ua li cas rau nruab cov tsev qiv ntawv (?) Zoo dua rov qab thiab nyeem qib 3:-)

Koj yuav tsum mus rau lub vev xaib no, thiab muab lub nroog ze tshaj rau koj uas nyob hauv koj lub sijhawm.

www.epochconverter.com/timezones

Thaum koj ntaus nkag, koj yuav pom "Cov txiaj ntsig hloov dua siab tshiab", thiab hauv qhov txiaj ntsig koj yuav tau txais koj li kev sib txawv (sib txawv rau GMT/UTC) hauv vib nas this (Rau kuv uas yog -14400)

Hauv dfrobot_firebeetle_led_matrix_ntp_clock kos duab ntawm kab 66 koj yuav pom:

#define TIMEOFFSET -14400 // Nrhiav koj Lub Sijhawm Zaum Tawm ntawm no https://www.epochconverter.com/timezones OFF Teeb Hauv vib nas this#txhais AMPM 1 // 1 = AM PM lub sijhawm, 0 = MILITARY/24 HR Sijhawm

hloov -14400 nrog koj cov offset. Kab tom ntej no koj yuav pom AMPM 1 - qhov no yuav ua rau lub moos tso saib lub sijhawm hauv AM/PM - yog tias koj xav pom nws hauv 24 teev sijhawm ua rau ib qho xoom.

Tom ntej upload cov duab kos rau koj lub rooj tsavxwm, txuas rau Access point (tus thawj tswj wifi) thiab sau cov ntsiab lus rau koj li wifi. Yog tias koj tau ua tiav qhov no, koj yuav tsum pom "txuas" txuas hla lub vijtsam thiab ob peb feeb tom qab koj yuav tsum pom lub sijhawm.

Qhov ntawd yog nws rau txoj haujlwm no - yooj yim thiab siv tau yooj yim…..

(Kev txhim kho uas tuaj yeem ua tau: Tso saib Lub Hli, Hnub thiab Xyoo, teeb tsa lub suab nrov thiab lub tswb - feem ntau tswj hwm qhov koj pom ntawm lub vev xaib. Cov tswv yim no yuav siv qhov rov sau dua tshiab ntawm daim duab yooj yim tam sim no)

Npaj rau lwm txoj haujlwm yooj yim - Zaub nyob qhov twg ISS yog - Dhau kev kwv yees, thiab pes tsawg tus neeg nyob hauv Chaw! (PS daim duab no siv lub vev xaib los tswj qhov uas tau tshwm sim)…..

Kauj Ruam 6: Txoj Haujlwm 2: ISS Pass Prediction Display,

Txoj Haujlwm 2: ISS Pass Prediction Display,
Txoj Haujlwm 2: ISS Pass Prediction Display,
Txoj Haujlwm 2: ISS Pass Prediction Display,
Txoj Haujlwm 2: ISS Pass Prediction Display,
Txoj Haujlwm 2: ISS Pass Prediction Display,
Txoj Haujlwm 2: ISS Pass Prediction Display,

Txoj Haujlwm 2: ISS Pass Prediction Display, txoj haujlwm no siv 2nd core ntawm tus txheej txheem. Nws yuav nthuav qhia ze li cas (mais) ISS yog, thaum yuav cia siab tias ISS tom ntej dhau ntawm koj qhov chaw nyob (Hauv UTC lub sijhawm), thiab xaiv seb muaj pes tsawg tus neeg nyob hauv qhov chaw. Txij li ntau cov ntaub ntawv no tsis hloov pauv ntau, peb siv lub hauv paus thib ob tsuas yog tshawb xyuas qhov hloov tshiab ntawm qhov kev twv ua ntej dhau los, lossis pes tsawg tus neeg nyob hauv qhov chaw txhua 15 feeb. Peb tuaj yeem tiv thaiv ntau tus API hu rau tus neeg rau zaub mov li no. Txoj haujlwm no nyuaj me ntsis, tab sis tseem yooj yim ua.

Txoj haujlwm no yog ua raws ib qho ntawm kuv cov phiaj xwm yav dhau los uas tuaj yeem pom ntawm no:

(Ib qho yooj yim ISS Kev Ceeb Toom) Hauv qhov ntawd kuv tau siv ESP8266 nrog rau ntawm lub vijtsam OLED (D-Duino). Rau feem ntau qhov haujlwm no tsuas yog siv cov kab ke sib txawv, kuv nthuav tawm nws kom koj tuaj yeem hloov qhov koj xav pom ntawm ya ntawm nplooj ntawv web. Yog li cia peb pib….

Feem ntau ntawm cov qhab nia kom yooj yim siv mus rau https://open-notify.org uas muaj qhov yooj yim heev thiab siv tau yooj yim API. Qhov qhib-ceeb toom API muaj peb yam uas tuaj yeem nthuav tawm, qhov chaw ntawm ISS hauv txoj kab nruab nrab thiab txoj kab nruab nrab, dhau qhov kev twv ua ntej raws qhov muab latitude thiab ntev. Thiab thaum kawg pes tsawg tus neeg (Thiab lawv lub npe) nyob hauv qhov chaw.

Peb yuav tau teeb tsa lwm lub tsev qiv ntawv - Lub tsev qiv ntawv ArduinoJson.

github.com/bblanchon/ArduinoJson

Peb kuj xav tau TimeLib.h tab sis kuv tsis paub meej tias kuv tau txais qhov ntawd los ntawm lossis yog tias nws suav nrog hauv IDE (thov txim)….

Yog li vim li cas thiaj kwv yees tias ISS yuav nyob qhov twg - ISS muaj ntau yam khoom siv xov tooj cua nyiam, thiab thaum nws "hla lub taub hau" tus xov tooj cua ham tuaj yeem sib cuag nrog ISS siv qee lub xov tooj cua yooj yim heev (thiab pheej yig). Kuv tseem tau ua nws thaum mobile (tsav tsheb). Koj yeej tsis xav tau ntau los ua txoj haujlwm no. Ib yam uas koj xav tau yog paub tias nws nyob qhov twg. Thiab taw tes tus kav hlau txais xov hauv nws txoj kev qhia dav dav pab.

Kab 57, 58, 59 yog qee qhov hloov pauv zaub - yog tias lawv tau teeb tsa rau 1 koj yuav pom cov zaub, yog tias lawv tau teeb tsa rau 0 (xoom) koj yuav tsis pom cov zaub. (Cov kev hloov pauv no tuaj yeem teeb tsa hauv qhov kos duab, lossis hloov kho los ntawm lub vev xaib uas lub foob pob hluav taws tsim - ntau ntxiv tom qab ntawd).

int locDis = 1; // Zaub Qhov Chaw ntawm ISSint pasDis = 0; // Zaub Pass Predictions int pplDis = 1; // Tso cov neeg hauv Chaw

yog li locDis yuav nthuav qhia qhov chaw ntawm ISS hauv latitude thiab longitude - nws kuj tseem qhia tau pes tsawg mais deb nws yog.

pasDis yuav tau txais qhov kev kwv yees dhau los ntawm open-notify.org thiab tso tawm rau lawv.

thiab thaum kawg, pplDis yuav tso saib cov npe thiab pes tsawg tus neeg nyob hauv qhov chaw - qhov no tuaj yeem tau ntev heev, nws tsis yog

hloov pauv ib yam nkaus. (koj tuaj yeem hloov cov no lossis tso tseg, nws yog qhov kev xaiv tag nrho)

Peb kuj yuav tsum paub peb qhov latitude thiab longitude thiab muab tso rau hauv daim duab.

Qhov no tsis tas yuav yog qhov tseeb lat/ntev, nws tuaj yeem yog qhov chaw nruab nrab ntawm koj lub nroog, lossis tawm me ntsis. Kev taw ntawm ISS yog dav thaum nws hla lub taub hau, thiab ntau pua (lossis ntau txhiab) mais tuaj yeem npog tau, yog li tawm me ntsis ntawm koj qhov lat/ntev yuav tsis yog qhov cuam tshuam cuam tshuam (feem ntau ntawm lub sijhawm), kev sib txuas lus dhau 500 mais yog qhov zoo nkauj heev.

Yog tias koj tsis paub koj qhov latitude thiab longitude lub vev xaib no tuaj yeem pab koj tawm.

www.latlong.net Nyob ze kab 84 ntawm qhov kos duab koj yuav pom qee yam zoo li no:

// Nrhiav koj lub Latitude thiab Longitude ntawm no // https://www.latlong.net/ float mylat = 39.360095; ntab mylon = -84.58558;

Qhov ntawd yuav tsum yog txhua yam uas yuav tsum tau hloov pauv. Muab cov duab kos, thiab txuas rau Firebeetle rau hauv internet - thiab koj yuav tsum pom, qhov chaw ntawm ISS muab rau hauv lat/ntev thiab pes tsawg mais deb nws yog (nco ntsoov qhov no yuav yog kwv yees li deb. ISS txav nrawm heev, thiab los ntawm lub sijhawm cov zaub tiav ISS tau txav deb ntau mais los ntawm qhov nws nyob). Koj yuav tsum pom cov neeg nyob hauv qhov chaw. (Yog tias koj tsis hloov pauv qhov sib txawv saum toj no).

Peb tab tom siv tus tub ntxhais thib ob ntawm ESP32 los khiav lub vev xaib, siv lub xaib muab peb tswj hwm yam uas tau tshwm ntawm LED matrix. Nws yuav tsum nkag siab zoo txog qhov nws ua haujlwm li cas, ib ntu qhia qhov qhib rau zaub, lwm ntu muaj "yog" "tsis yog" cov nyees khawm - nyem "yog" txhais tau tias koj xav pom nws, "tsis" txhais tau tias tsis t qhia nws. Koj kuj yuav tsum pom tias ntu ntu hloov pauv raws li cov nyees khawm.

Qhov tsuas yog qhov uas tsis yog txiav thiab qhuav ntawm no yog yuav ua li cas thiaj nrhiav tau tus IP chaw nyob ntawm Firebeetle - hmoov tsis kuv tsis tuaj yeem muaj txoj hauv kev zoo los nrhiav nws - yog li kuv tsuas yog siv cov ntawv txuas ntawm IDE los tso saib nws (9600 baud).

Qhib lub console, thiab koj yuav tsum pom tus IP chaw nyob. (qhib nws ua ntej koj tau txais cov lus txuas) - kuv lwm qhov kev xaiv yog los tso nws ntawm LED Matrix ib zaug thaum pib - Kuv txiav txim siab tawm tsam qhov ntawd vim tias koj yuav tsis saib lub sijhawm thiab koj yuav nco nws. Kuv tau txiav txim siab xa xov sms, lossis qee yam tab sis, thaum kawg kuv tsuas yog ua kom yooj yim. (Kuv kuj tau sim muab tus IP zoo li qub/rooj vag/lwm yam, Kuv tsis tuaj yeem ua nws txoj haujlwm nrog tus thawj tswj hwm wifi - tus lej tseem nyob hauv daim duab, yog li yog ib tus neeg suav nws tawm qhia rau kuv paub)

Cov duab kos tseem yuav siv ua ntej ntawm FreeRTOS tsim rau hauv ESP32 core - Peb muaj lub luag haujlwm uas ua haujlwm txhua 15 feeb lossis yog li, qhov no ua li cas yog hloov kho qhov kev twv ua ntej dhau los, nrog rau cov neeg nyob hauv qhov chaw. Zoo li kuv tau hais ua ntej cov neeg hauv qhov chaw tsis hloov pauv ntau, yog li ntawd tej zaum yuav raug hloov mus rau lwm txoj haujlwm thiab tej zaum tau khiav ib zaug txhua 12 teev (lossis 6 teev) - tab sis qhov no ua haujlwm, thiab nws ua kom yooj yim.

Rau cov uas tsis paub FreeRTOS yog ib txoj hauv kev cia ib leeg tub ntxhais micro-maub los ua haujlwm ntau ntxiv

Feem ntau koj yuav tsum suav nrog qee lub tsev qiv ntawv thiab lwm yam los ua kom nws ua haujlwm - txawm li cas los nws tau tsim rau hauv cov tub ntxhais rau ESP32 - uas ua rau ESP32 muaj zog heev. yog xav paub ntxiv txog FreeRTOS

freertos.org/

Hloov kho: muaj ntau yam uas tuaj yeem txhim kho rau txoj haujlwm no, thiab yuav luag txhua hnub kuv xav txog qee yam uas tuaj yeem ua tau txawv me ntsis, lossis hloov pauv, lossis ntxiv.

Thiab hauv ntau qhov piv txwv cov npe ntawm cov chaw cia khoom koj tuaj yeem pom qee qhov ua ntej/txawv qhov kuv xav txog- qee qhov no tsis ua haujlwm, qee qhov tsuas yog hloov pauv, thiab qee qhov uas suav nrog hauv daim duab tam sim no.

* Ntawm ib kis kuv tau sim ntxiv neopixel rau cov zaub yog li nws yuav zoo li me ntsis zoo li kuv txoj haujlwm yav dhau los - Kuv yeej tsis tau txais nws ua haujlwm tau zoo (Kuv pom nws yog qhov teeb meem lub zog uas kuv tsis tau txiav txim siab) Kuv yog ua haujlwm ntawm txoj hauv kev los txhim kho lub tswv yim no *

Thaum sau cov theem no, kuv xav tias, tej zaum kuv tuaj yeem ntxiv txoj hauv kev hloov kho koj qhov latitude thiab longitude mus rau lub vev xaib - txoj kev kos duab yuav tsis tas yuav hloov kho - Kuv yuav xav txog qhov no me ntsis ntxiv thiab.

Ib txoj hauv kev txhim kho kom tau txais IP chaw nyob yog lwm yam kuv xav ua (tseem xav txog qhov ntawd ib yam nkaus)

Cia peb txav mus rau peb qhov haujlwm tom ntej ….

Kauj Ruam 7: Txoj Haujlwm 3: Yooj Yim Tsiv Mus Sau Npe Siv MQTT

Txoj Haujlwm 3: Qhov Yooj Yim Tsiv Mus Sau Npe Siv MQTT
Txoj Haujlwm 3: Qhov Yooj Yim Tsiv Mus Sau Npe Siv MQTT
Txoj Haujlwm 3: Qhov Yooj Yim Tsiv Mus Sau Npe Siv MQTT
Txoj Haujlwm 3: Qhov Yooj Yim Tsiv Mus Sau Npe Siv MQTT
Txoj Haujlwm 3: Qhov Yooj Yim Tsiv Mus Sau Npe Siv MQTT
Txoj Haujlwm 3: Qhov Yooj Yim Tsiv Mus Sau Npe Siv MQTT

"chaw thau khoom =" tub nkeeg "" chaw thau khoom = "tub nkeeg"

Tshooj 2 - Zaub Duab
Tshooj 2 - Zaub Duab
Tshooj 2 - Zaub Duab
Tshooj 2 - Zaub Duab
Tshooj 2 - Zaub Duab
Tshooj 2 - Zaub Duab

Yog li nws hloov tawm, tias lub tsev qiv ntawv tuaj yeem tso saib cov duab - koj rau qee qhov laj thawj uas ua haujlwm zoo li "ntiag tug" - zoo, rau cov duab kos tom ntej no kuv hloov lub tsev qiv ntawv ib zaug ntxiv thiab ua kos duab duab ua haujlwm rau pej xeem.

Lub sijhawm no, Kuv muab cov tsev qiv ntawv hloov pauv hauv cov kab kos duab, yog li koj tsis tas yuav rov nruab lub tsev qiv ntawv, kos duab saib ntawm nws tus kheej ua ntej, tom qab ntawd nws yuav saib hauv phau ntawv teev npe, yog li peb zoo!

*** Kuv tab tom npaj yuav xa qhov kev hloov pauv no mus rau DFRobot, vim nws yog qhov txias heev, thiab ua kom zoo kom muaj peev xwm ua tau cov duab zoo li no ***

LED Matrix Cov duab kos, ntawm no kuv tau xub sim los xyuas seb lub tsev qiv ntawv xav tau dab tsi, thiab dab tsi yuav thiab yuav tsis ua haujlwm - nrog kev sib txawv ntawm kev ua tiav. Kuv pom tias 8x8 cov duab ua haujlwm zoo tshaj plaws, tab sis koj tuaj yeem tau txais lwm tus los ua haujlwm ib yam. Kuv pom ob peb online coj tus kws kho qhov muag hauv online ib yam, qee qhov ua haujlwm zoo dua li lwm tus.

xantorohara.github.io/led-matrix-editor/-zoo li ua haujlwm tau zoo, ua 8x8 cov duab, thiab koj xav kom lawv ua byte arrays.

www.riyas.org/2013/12/online-led-matrix-fo… qhov no ua haujlwm tau zoo, thiab muaj peev xwm ua kom loj dua 8x8 cov lus qhia, cov zaub zoo li tig rau nws ib sab nrog cov zaub no txawm li cas los Byte arrays zoo li ua haujlwm zoo tshaj plaws ntawm no. Kuv siv nws los ua "qhov chaw nkag" pom hauv cov vis dis aus saum toj no.

Yog li qhov no ua haujlwm li cas, drawImage (const byte * img, uint8_t width_t, uint8_t height_t, int8_t x, int8_t y, int img_offset);

duab byte array sib txawv, qhov dav ntawm daim duab (8), qhov siab ntawm daim duab (8), txoj haujlwm pib ntawm qhov screen x (0), y (0) feem ntau, thiab tus lej offset, uas kuv tsis yog 100% paub tseeb tias nws ua dab tsi, yog li feem ntau kuv tso nws ntawm xoom.

Hauv qhov kos duab LED Matrix Cov Duab - muaj 8 qhov sib txawv byte arrays - nrog peb txoj kev sib txawv ib yam nkaus.

- foob pob hluav taws yog thawj pawg, ua siab ncaj Kuv tsis paub tseeb tias qhov no ua haujlwm li cas - tab sis nws ua haujlwm.

tom ntej no muaj lub qhov ncauj - qhov no tsis ua haujlwm zoo tiag tiag, lub qhov ncauj tso qhov tsis raug rau ib tus, thiab sim ua qhov hloov pauv tsuas yog ua rau nws tsis zoo. (kawm paub dab tsi ua haujlwm thiab dab tsi tsis yog ib nrab ntawm kev lom zem)

Ua raws los ntawm thawj marioImg - qhov no loj dhau rau cov zaub, thiab kuv xav tias qhov no yog qhov chaw teeb tawm los ua si - Kuv tau siv nws ntawm no, thiab koj tuaj yeem pom pem hauv ntej ntawm mario, yog tias koj hloov qhov offset rau 1 koj ' yuav pom nws nraub qaum. (koj kuv tsis tuaj yeem qhia koj yog vim li cas lossis qhov offset ua dab tsi. Nws zoo li hloov cov duab tab sis vim li cas 2 hloov nws kom koj tuaj yeem pom ntawm nws xub ntiag thiab yog vim li cas 1 hloov lwm txoj kev kuv tsis tuaj yeem qhia koj)

IMAGES - byte array yog @ kos npe uas kuv tau ua - nws zoo li kuv tau siv lub cuab yeej ntawm

pic1 byte array kuj zoo li qhov kuv tau sim ua, tsuas yog nws me dua qhov kuv tau sim - nws yog dab tsi kuv tsis tuaj yeem hais, tab sis kuv tuaj yeem hais feem ntau nws zoo li kuv tau ua dab tsi hauv tus editor.

mario2Img - qhov no yog kuv tus kheej qhov loj ntawm Mario ua rau 8x8 npo loj - thiab koj muaj ib lossis ob lub pixels tawm ntawm qhov chaw (kuv ua txhaum, tsis yog cov lus qhia) nws zoo li me me Mario (sorta).

invader1 thiab invader2 - ob qho tib si kuv lub tswv yim rau qhov chaw invader. lawv tau ua tiav zoo nkauj, thiab los ntawm kev tso cov duab nyob rau sab saum toj ntawm txhua lwm yam, Kuv tuaj yeem tsim cov nyhuv ntawm taw txav.

Muaj ob daim duab kos duab foob pob hluav taws hauv cov npe, txhua qhov sib txawv me ntsis, thiab tsim nyog sim.

Ib qho muaj lub foob pob hluav taws txav hla lub vijtsam, yog li me ntsis ntxiv/txawv cov duab … lwm qhov muaj ob lub foob pob hluav taws tso tawm tib lub sijhawm

Kuj tseem muaj peb daim duab "ntxeem tau", txhua tus sib txawv me ntsis, ib tus muaj tus neeg txav mus hla lub vijtsam, thiab koj tuaj yeem saib seb kuv tau ua li cas - (muaj tej zaum yuav zoo dua ua nws, Kuv tsis paub)

Txawm Ntau: Muaj qee qhov kev kos duab hauv cov ntawv xeem ntawm lub chaw cia khoom - feem ntau ntawm cov no tsis ua haujlwm zoo li kuv xav, lossis yog cov tswv yim uas kuv xav ua, tab sis tsis ua haujlwm raws li kuv xav tau. Kuv tau tso lawv tseg vim tias qee tus neeg kuv tau txais qee lub tswv yim *(Kuv tau ua "daim thaiv" me me nrog WS2812 pixel rau nws siv nrog ISS zaub, tab sis kuv txuas nws mus rau 3v kab, thiab tsuas yog tsis muaj txaus lub zog nrog LED Matrix ua haujlwm ib yam, pixel ua haujlwm tau zoo, tsis muaj LED Matrix koj, yog li tseem muaj qee yam uas kuv yuav ua nrog nws)*

Kuj tseem muaj cov npe hu ua "Piv Txwv Ntxiv" - cov no yog kev hloov pauv ntawm qee qhov kev kos duab ntawm qhov haujlwm, txawm yog kuv tau ntxiv lossis tshem tawm, lossis hloov qee yam. Rau cov no, lawv ua haujlwm - lawv tsuas yog tsis yog qhov haujlwm kawg. Yog li kuv tso lawv tseg dua ib tus neeg yuav tau txais qee yam muaj txiaj ntsig zoo rau lawv. (Tej zaum)

Kuv vam tias koj nyiam qhov kev qhia no ntau npaum li kuv nyiam ua cov haujlwm no:-)

Kauj ruam 11: LInks…

Txoj haujlwm no tau txhawb nqa thiab txhawb nqa los ntawm DF Robot. Thov siv qhov txuas hauv qab no rau cov khoom lag luam:

Firebeetle ESP32 -

Firebeetle Npog 24x8 LED Matrix -

Kuv Qhov Chaw Khaws Khoom:

Yog tias koj pom qhov no lossis ib qho ntawm kuv cov phiaj xwm muaj txiaj ntsig lossis txaus siab thov txhawb nqa kuv. Txhua yam kuv ua tau mus yuav ntau qhov thiab ua ntau yam/cov haujlwm zoo dua.

www.patreon.com/kd8bxp

NTPClient Library

ArduinoJson.h

ESP8266 Huab Cua Huab Cua

Json-Streaming-Parser Library

Pom zoo: