Cov txheej txheem:

ESP8266 OLED - Tau Txais Sijhawm thiab Hnub Los Ntawm Internet: 8 Kauj Ruam
ESP8266 OLED - Tau Txais Sijhawm thiab Hnub Los Ntawm Internet: 8 Kauj Ruam

Video: ESP8266 OLED - Tau Txais Sijhawm thiab Hnub Los Ntawm Internet: 8 Kauj Ruam

Video: ESP8266 OLED - Tau Txais Sijhawm thiab Hnub Los Ntawm Internet: 8 Kauj Ruam
Video: ALAT KECIL INI BISA TAHU PASSWORD WI-FI ? 2024, Kaum ib hlis
Anonim

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 ESP8266 OLED 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
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • ESP8266 OLED
  • Visuino program: Rub tawm Visuino

Kauj Ruam 2: Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type

Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type
Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type
Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type
Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua tiav ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program WeMos D1 Mini! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. 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 "WeMos D1 Mini" raws li qhia hauv daim duab 2

Kauj ruam 3: Teeb WiFi

Teeb WiFi
Teeb WiFi
Teeb WiFi
Teeb WiFi
  • Xaiv WeMos D1 Mini thiab hauv cov khoos phis tawj Modules> WiFi> Nkag Mus Rau Cov Ntsiab Lus, nyem rau ntawm […] khawm, kom lub qhov rai “Access points” yuav qhib.
  • Hauv cov khoom qhov rai Hauv qab "SSID" muab lub npe ntawm koj li WiFi Network
  • Hauv qab "Tus password" tso tus password nkag rau koj lub WiFi network
  • Kaw qhov "Access points" window
  • Ntawm sab laug hauv tus khoos phis tawj xaiv Modules> Wifi> Sockets, nyem rau ntawm […] khawm, yog li “Qhov nyob” qhov rai yuav qhib Luag TCP/IP Client los ntawm sab xis mus rau sab laug, tom qab ntawd hauv Properties window teeb tsa chaw nres nkoj: 37 thiab tus tswv: time-ag.nist.gov
  • Kaw qhov "Sockets" window

Kauj Ruam 4: 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
  • Ntxiv "SSD1306/SH1106 OLED Display (I2C)" tivthaiv

Kauj Ruam 5: 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
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
  • Ob npaug nias rau ntawm "DisplayOLED1" tivthaiv

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
  • Hauv Cov Ntsiab Lus Dialog nthuav "Kab" ntawm sab xis thiab rub "Kos Kab" los ntawm sab xis mus rau sab laug
  • Xaiv "Kos Text1" ntawm sab laug thiab hauv lub qhov rai khoom teeb tsa "Ntawv" rau 'Sijhawm & Hnub' (lossis qee cov ntawv nyeem) thiab teeb tsa me me rau 2
  • Xaiv "Kos Kab 1" thiab hauv cov khoom qhov rai teeb tsa "Dav" txog 120 thiab "Y" txog 20
  • Xaiv "Text Field1" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2 thiab "Y" txog 25
  • Xaiv "Text Field2" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2 thiab "Y" txog 45

Kaw Elements Dialog

Kauj Ruam 6: 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 "WeMos D1 Mini"> 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" pin [Tawm] rau "DisplayOLED1"> Text Field1 tus pin [Hauv]
  • Txuas "DeleteLeftText2" pin [Tawm] rau "DisplayOLED1"> Text Field2 tus pin [Hauv]

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

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

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 8: Ua si

Yog tias koj ua lub zog ESP8266 OLED module, nws yuav txuas rau hauv is taws nem 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 Internet Sijhawm 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: