Cov txheej txheem:

Tau Sijhawm thiab Hnub Los Ntawm Is Taws Nem - Qhia: 9 Kauj Ruam
Tau Sijhawm thiab Hnub Los Ntawm Is Taws Nem - Qhia: 9 Kauj Ruam

Video: Tau Sijhawm thiab Hnub Los Ntawm Is Taws Nem - Qhia: 9 Kauj Ruam

Video: Tau Sijhawm thiab Hnub Los Ntawm Is Taws Nem - Qhia: 9 Kauj Ruam
Video: Kuv Hmoov Phem Los Koj Siab Phem-LOKY(Official MV ) 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas kom tau txais hnub thiab sijhawm los ntawm NIST TIME server siv M5Stack StickC thiab Visuino, Saib daim vis dis aus.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

M5StickC ESP32: koj tuaj yeem tau txais nws ntawm no

Visuino program: Rub tawm Visuino

Nco tseg: Txheeb xyuas cov ntawv qhia no ntawm yuav ua li cas rau Nruab StickC ESP32 pawg thawj coj

Kauj Ruam 2: Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cuab Yeej" khawm ntawm Arduino tivthaiv (Daim duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "M5 Stack Stick C" raws li qhia hauv daim duab 2

Kauj Ruam 3: Hauv Visuino teeb tsa StickC Board

Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board
Hauv Visuino teeb tsa StickC Board

Nyem rau ntawm "M5 Stack Stick C" Board kom xaiv nws

Hauv "Properties" window xaiv "Modules" thiab nyem "+" kom nthuav dav, Xaiv "Zaub ST7735" thiab nyem "+" txhawm rau nthuav nws, Teeb "Kev taw qhia" rau "goRight"

Teeb "Xim Xim" rau "ClBlack" Xaiv "Elements" thiab nyem rau ntawm lub pob xiav nrog 3 tus cim …

Elements Dialog yuav qhia

Hauv Cov Ntsiab Lus Sib Tham nthuav "Cov Ntawv" ntawm sab xis thiab rub "Kos Cov Ntawv" thiab rub 2X "Cov Ntawv Sau" los ntawm sab xis mus rau sab laug

  • Xaiv "Kos Text1" cov ntawv ntawm sab laug thiab hauv cov khoom qhov rai teeb tsa me me rau 2, xim rau aclLime thiab ntawv rau 'Hnub & Sijhawm'
  • Xaiv "Text Field1" ntawm sab laug thiab hauv cov khoom qhov rai teeb tsa me me rau 2, xim rau aclAqua thiab Y txog 10
  • Xaiv "Text Field2" ntawm sab laug thiab hauv cov khoom qhov rai teeb tsa me me rau 2 thiab Y txog 30

Kauj ruam 4: Teeb WiFi

Teeb WiFi
Teeb WiFi
Teeb WiFi
Teeb WiFi
Teeb WiFi
Teeb WiFi

Nyem rau ntawm "M5 Stack Stick C" Board kom xaiv nws

Hauv "Properties" qhov rai xaiv "Modules" thiab nyem "+" Txhawm rau nthuav dav, "WiFi" thiab nyem "+" Txhawm rau nthuav dav, Xaiv "Txuas Mus Rau Cov Ntsiab Lus" thiab nyem rau ntawm lub pob (3 dots)

Hauv "AccessPoints" qhov rai rub "WiFi Access Point" mus rau sab laug.

Tom qab ntawd ntawm sab laug xaiv "Access Point1" thiab hauv cov khoom qhov rai teeb tsa

  • Hauv qab "SSID" muab lub npe ntawm koj li WiFi Network
  • Hauv qab "Tus password" tso tus password nkag rau koj lub WiFi network

Hauv "Cov Khoom" qhov rai xaiv "Modules" thiab nyem "+" Txhawm rau nthuav dav, "WiFi" thiab nyem "+" kom nthuav dav,> Qhov nyob, nyem rau ntawm […] khawm, yog li "Sockets" window yuav qhib Drag TCP Client los ntawm sab xis rau sab laug thiab Hauv qab Properties window teeb tsa

  • cev: 37u
  • tus tswv tsev: time-b-g.nist.gov

Kauj Ruam 5: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam

Ntxiv "Pulse Generator" tivthaiv

Ntxiv "Internet Sijhawm Raws Cai" tivthaiv

Ntxiv 2X "Rho Tawm Txoj Cai Sub Text" tivthaiv

Ntxiv 2X "Rho Tawm Cov Ntawv Hauv Qab" cov ntawv

Kauj Ruam 6: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  • Xaiv "PulseGenerator1" thiab hauv cov khoom qhov rai teeb tsa zaus rau 0.1166667
  • Xaiv "DeleteRightText1" thiab hauv cov khoom qhov rai teeb tsa Ntev mus rau 13
  • Xaiv "DeleteRightText2" thiab hauv cov khoom qhov rai teeb tsa Ntev rau 5
  • Xaiv "DeleteLeftText2" thiab hauv cov khoom qhov rai teeb tsa Ntev mus rau 12

Kauj Ruam 7: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "PulseGenerator1" tus pin [Tawm] rau "InternetTime1" tus pin [Hauv]
  • Txuas "InternetTime1" tus pin [Socket] rau "M5 Stack Stick C"> TCP Client1 tus pin [Hauv]
  • Txuas "InternetTime1" tus pin [Tawm] rau "DeleteRightText1" tus pin [Hauv] thiab "DeleteRightText2" tus pin [Hauv]
  • Txuas "DeleteRightText1" tus pin [Tawm] rau "DeleteLeftText1" tus pin [Hauv]
  • Txuas "DeleteRightText2" tus pin [Tawm] rau "DeleteLeftText2" tus pin [Hauv]
  • Txuas "DeleteLeftText1" tus pin [Tawm] rau "M5 Stack Stick C"> Display ST7735> Text Field1 tus pin [Hauv]
  • Txuas "DeleteLeftText2" tus pin [Tawm] rau "M5 Stack Stick C"> Display ST7735> Text Field2 tus pin [Hauv]

Kauj Ruam 8: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Nyem rau Arduino lub cim ntawm lub cuab yeej, qhov no yuav tsim cov cai thiab qhib Arduino IDE. Lub pob nyob ib sab ntawm nws yuav suav sau thiab xa cov cai ncaj qha mus rau lub cuab yeej. Koj yuav xav qhib IDE thawj zaug kom ntseeg tau tias qhov chaw nres nkoj COM tau teeb tsa raug. Tom qab ntawd Arduino IDE yuav txuag koj cov chaw.

Ib zaug hauv Arduino IDE xyuas kom tseeb tias koj lub Rooj Tswjhwm Saib, Kev Ceev, thiab Chaw Nkoj tau teeb tsa kom raug. Koj yuav zoo li yuav tsum teeb tsa COM chaw nres nkoj los ntawm cov ntawv qhia zaub mov, tab sis lwm qhov yuav tsum tau teeb tsa cia. Yog tias koj muaj ntau dua ib qho chaw nres nkoj COM sim tshem koj li M5Stick, saib thiab pom cov chaw nres nkoj twg tseem nyob, tom qab ntawd rov txuas M5Stick thiab pom qhov twg rov qab los. Qhov ntawd yog nws qhov chaw nres nkoj COM.

Tom qab ntawd nyem Upload. Qhov no yuav Txheeb Xyuas (suav sau) thiab Tshaj Tawm.

Kauj ruam 9: Ua si

Yog tias koj siv lub zog M5Sticks, nws yuav txuas rau hauv internet thiab cov zaub yuav tsum pib qhia hnub thiab sijhawm los ntawm NIST server

. Koj tseem tuaj yeem sim nrog lwm cov servers uas koj tuaj yeem pom ntawm no

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm M5Sticks nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

Pom zoo: