Cov txheej txheem:

MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Kub Logging, Wifi thiab Txawb Stats: 4 Cov Kauj Ruam
MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Kub Logging, Wifi thiab Txawb Stats: 4 Cov Kauj Ruam

Video: MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Kub Logging, Wifi thiab Txawb Stats: 4 Cov Kauj Ruam

Video: MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Kub Logging, Wifi thiab Txawb Stats: 4 Cov Kauj Ruam
Video: Вводный урок по программированию ESP32, ESP8266 на MicroPython 2024, Hlis ntuj nqeg
Anonim
MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Logging, Wifi thiab Txawb Stats
MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Logging, Wifi thiab Txawb Stats
MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Logging, Wifi thiab Txawb Stats
MicroPython ntawm Pheej Yig $ 3 ESP8266 WeMos D1 Mini rau 2x Kub Logging, Wifi thiab Txawb Stats

Nrog me me pheej yig ESP8266 nti / ntaus ntawv koj tuaj yeem teev cov ntaub ntawv kub sab nraum, hauv chav, tsev cog khoom, chav kuaj mob, chav txias lossis lwm qhov chaw dawb kiag li. Qhov piv txwv no peb yuav siv los ntsuas cua txias hauv chav sov, sab hauv thiab sab nraum.

Cov cuab yeej yuav txuas nrog internet ntawm Wifi

Koj yuav tuaj yeem tshawb xyuas qhov kev nyeem tshiab kawg ntawm koj lub xov tooj ntawm tes, desktop lossis lwm yam khoom siv nrog browser

Khoom siv

Koj xav tau cov khoom kho vajtse txhawm rau txiav cov cuab yeej Koj tuaj yeem yuav cov cuab yeej xav tau ntawm no (yam tsawg kawg nkaus xav tau):

  • WeMos D1 mini
  • micro USB cable
  • 2x DS18B20 waterproof nrog module board

Kuj zoo kom muaj:

  • USB charger rau Fais fab koj lub cuab yeej
  • Waterproof thaiv

Kauj Ruam 1: Ntxiv Koj Cov Ntaus rau LoggingPlatform

Ntxiv koj lub cuab yeej rau LoggingPlatform
Ntxiv koj lub cuab yeej rau LoggingPlatform

Ntawm no koj tuaj yeem ntxiv koj lub cuab yeej kom tau txais cov yuam sij api xav tau tom qab:

Kauj Ruam 2: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas

Txuas 2x DS18B20 Tawm rau WeMos D1 hauv

DS18B20 siv onewire thiab tuaj yeem txuas nrog tus pin tib yam, tab sis koj ua kom yooj yim txuas yam tsis muaj soldering, peb yuav txuas sib cais.

Daim duab piv txwv ntawm daim duab 1

Nco ntsoov tias DIgital inputs/outputs ntawm WeMos D1 mini tsis zoo ib yam li hauv cov cai, ntawm no yog piv txwv hloov pauv, qhov no yog vim li cas hauv cov cai peb siv tus pin 4 thiab 5, tab sis ntawm cov laug cam tau sau ua D1, D2 raws li ntawm daim duab 2

Kauj Ruam 3: Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)

Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)

Txuas lub cuab yeej rau USB ntawm koj Windows PC Rub tawm thiab nruab Python ntawm no:

Rub tawm thiab khiav uPyCraft IDE cov cuab yeej los nyem koj NodeMCU ntawm no: uPyCraft.exe

Image 1: Xaiv COM chaw nres nkoj (qhov no yog ib txwm muaj ntau dua yog tias koj tsis muaj lwm yam khoom siv txuas nrog)

Duab 2:

Hlawv microPython rub tawm lub firmware rau lub cuab yeej Yog tias koj muaj pyBoard lossis ntaus ntawv nrog lub khoos phis tawj ua ntej koj tuaj yeem hla cov kauj ruam no

Rub tawm MicroPython firmware rau NodeMCU ntawm no:

Duab 3:

Upload LoggingForest cov cai yooj yim piv txwv rau ntaus ntawv Rub tus lej piv txwv ntawm no: main.py

Siv cov ntawv qhia zaub mov-> Txuag nplooj ntawv lossis CTRL+S txhawm rau rub tawm los ntawm nplooj ntawv no main.py

Tam sim no qhib cov ntawv hauv uPiCraft cov cuab yeej thiab hloov pauv tsis tau txais ntawm loggingforest.com lub vev xaib

Duab 4:

Download tau thiab khiav

Kauj Ruam 4: Txheeb Xyuas Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb

Txheeb Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb
Txheeb Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb
Txheeb Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb
Txheeb Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb
Txheeb Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb
Txheeb Koj Cov Ntaub Ntawv ntawm Desktop lossis Txawb

Tom qab ntawd koj lub cuab yeej yuav pib xa cov ntaub ntawv mus rau kev txiav ntoo thiab koj tuaj yeem pom nws nyob ntawd Duab 1: Hauv kev txiav ntoo txiav cov cuab yeej hloov kho tsuas yog txhais lub npe thiab tus nqi

Duab 2:

Nyem rau saib ua ntej

Duab 3:

Thiab koj yuav pom cov ntaub ntawv zoo, kub hauv chav txias thiab sab nraud kub

Pom zoo: