Cov txheej txheem:

Visuino - Tau Txais Lub Sijhawm Los Ntawm Internet NIST Server Siv NodeMCU: 8 Kauj Ruam
Visuino - Tau Txais Lub Sijhawm Los Ntawm Internet NIST Server Siv NodeMCU: 8 Kauj Ruam

Video: Visuino - Tau Txais Lub Sijhawm Los Ntawm Internet NIST Server Siv NodeMCU: 8 Kauj Ruam

Video: Visuino - Tau Txais Lub Sijhawm Los Ntawm Internet NIST Server Siv NodeMCU: 8 Kauj Ruam
Video: Qhib brand li cas kom muag tau 100 lab ntawm 2 lub hlis #mayc-share 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv NodeMCU Mini, OLED Lcd, thiab Visuino los tso saib lub sijhawm nyob hauv internet los ntawm NIST Server ntawm Lcd. Saib daim vis dis aus. Cov nyiaj qiv rau kev tshoov siab mus rau tus neeg siv youtube "Ciprian Balalau".

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
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • NodeMCU Mini
  • OLED LcdRed LED
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas GND los ntawm NodeMCU rau tus pin breadboard (gnd)
  • Txuas 5V tus pin los ntawm NodeMCU rau tus pin breadboard (zoo)
  • Txuas tus pin 0 (SCL) los ntawm NodeMCU rau OLED LCD tus pin (SCL)
  • Txuas tus pin 1 (SDA) los ntawm NodeMCU rau OLED LCD tus pin (SDA)
  • Txuas OLED LCD tus pin (VCC) mus rau tus pin breadboard (zoo)
  • Txuas OLED LCD tus pin (GND) rau tus pin breadboard (GND)

Kauj Ruam 3: Pib Visuino, thiab Xaiv NodeMCU ESP-12

Pib Visuino, thiab Xaiv NodeMCU ESP-12
Pib Visuino, thiab Xaiv NodeMCU ESP-12
Pib Visuino, thiab Xaiv NodeMCU ESP-12
Pib Visuino, thiab Xaiv NodeMCU ESP-12

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 raws cov kauj ruam hauv Cov Lus Qhia no teeb tsa Arduino IDE rau program ESP 8266! Visuino 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 "NodeMCU ESP-12" raws li qhia hauv daim duab 2

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 InternetTime tivthaiv
  • Ntxiv Pulse Generator tivthaiv thiab teeb tsa zaus rau: 0.1166667
  • Ntxiv DeleteRightText tivthaiv thiab teem sijhawm rau: 8
  • Ntxiv DeleteLeftText tivthaiv thiab teem sijhawm rau 1
  • Ntxiv OLED zaub I2C

Ob npaug nyem rau ntawm OLED Cov khoom tiv thaiv thiab rub "Kos duab plaub fab" mus rau sab laug (saib daim duab), teeb qhov siab: 30, dav: 120, x: 4, Y: 15

tseem rub "Cov ntawv" rau sab laug (saib daim duab), teeb x: 17 Y: 30

Kauj ruam 5: Teeb WiFi

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

Xaiv NodeMCU ESP-12 thiab hauv cov khoos phis tawj Modules> WiFi> Cov Ntsiab Lus Nkag Mus, nyem rau […] khawm, kom lub qhov rai “Access points” yuav qhib

Hauv qhov kev hloov kho no rub lub WiFi nkag mus rau sab laug.

  • 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 Rub tus TCP Client los ntawm sab xis mus rau sab laug

Nyob rau hauv Properties window set host: time-b-g.nist.gov

Hauv qab Properties window teeb chaw nres nkoj: 37

Kauj Ruam 6: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas NodeMCU ESP-12 Modules. WiFi. Sockets. TCPClient1 PIN [IN] rau InternetTime1 PIN [Qhov (Socket)
  • Txuas PulseGenerator1 PIN [OUT] rau InternetTime1 PIN [Moos]
  • Txuas InternetTime1 PIN [Tawm] rau NodeMCU ESP-12 Serial [0] PIN [IN] thiab kom DeleteRightText1 PIN [IN]
  • Txuas DeleteRightText1 PIN [OUT] mus rau DeleteLeftText1 PIN [IN]
  • Txuas DeleteLeftText1 PIN [Tawm] mus rau DisplayOLED1 Elements. Text Field1 PIN [IN]
  • Txuas DisplayOLED1 PIN [OUT] rau NodeMCU ESP-12 I2C PIN [IN]

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
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 8: Ua si

Yog tias koj ua zog NodeMCU module, OLED Lcd yuav pib qhia lub sijhawm tam sim no thiab hnub tim.

Nrog koj zoo siab! Koj tau ua tiav koj qhov Live Internet Time project nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau qhov Qhia Qhia no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino: Rub tawm txuas

Pom zoo: