Cov txheej txheem:

Yuav Siv Li Cas Wemos ESP-Wroom-02 D1 Mini WiFi Module ESP8266 + 18650 los ntawm Kev Siv Blynk: 10 Kauj Ruam
Yuav Siv Li Cas Wemos ESP-Wroom-02 D1 Mini WiFi Module ESP8266 + 18650 los ntawm Kev Siv Blynk: 10 Kauj Ruam

Video: Yuav Siv Li Cas Wemos ESP-Wroom-02 D1 Mini WiFi Module ESP8266 + 18650 los ntawm Kev Siv Blynk: 10 Kauj Ruam

Video: Yuav Siv Li Cas Wemos ESP-Wroom-02 D1 Mini WiFi Module ESP8266 + 18650 los ntawm Kev Siv Blynk: 10 Kauj Ruam
Video: Qhia siv line ປະຊຸມ yuav siv li cas...? 2024, Hlis ntuj nqeg
Anonim
Yuav Siv Li Cas Wemos ESP-Wroom-02 D1 Mini WiFi Module ESP8266 + 18650 los ntawm Kev Siv Blynk
Yuav Siv Li Cas Wemos ESP-Wroom-02 D1 Mini WiFi Module ESP8266 + 18650 los ntawm Kev Siv Blynk

Kev qhia tshwj xeeb:

  • Tau tshaj nrog nodemcu 18650 charging system kev koom ua ke
  • Qhov taw qhia LED (ntsuab txhais tau tias tag nrho liab txhais tau tias them) tuaj yeem siv thaum them nyiaj
  • Hloov kev tswj fais fab
  • SMT txuas tuaj yeem siv rau hom pw tsaug zog · 1 ntxiv LED programmable (gpio16)
  • 0.5a them tam sim no
  • 1A tso zis
  • Kev tiv thaiv ntau tshaj
  • Tshaj tawm kev tiv thaiv
  • 10 tus lej digital nyeem/sau/cuam tshuam/PWM/I2C/kab kev txhawb nqa (tshwj tsis yog D0)
  • Yog tias lub roj teeb nyob hauv qhov tsis ncaj ncees lawm, lub nti them yuav raug rhuav tshem.

Nta:

  • Ib qho AD inputs.
  • Micro USB cov tswv yim.
  • Ib qho programmable LED (D0).
  • AUTO PROGRAM circuit. ESP8266 (ESP-WROOM-02 Nrog TELEC) yog sib npaug rau NodeMCU.
  • Analog Input (AD): Built-in faib cov resistor (AD = 220K-ADC-100K = GND).
  • Muaj SOLDER lub davhlau ya nyob twg rau SLEEP MODE.
  • Tau tshaj nrog Arduino thiab NodeMCU.
  • Kev ua haujlwm thiab them nqi yog ua tau tib lub sijhawm.
  • 18650 them nqi hluav taws xob suav nrog 5V txhawb kev sib txuas nrog TP5410.
  • Kev tiv thaiv kev tiv thaiv ntau dhau, kev tiv thaiv kev tso tawm dhau.
  • LED: Liab = Them, Ntsuab = Them tag nrho.
  • 3000 mA 18650 Nws tuaj yeem ua haujlwm ntau dua 17 teev ntawm lub roj teeb.
  • Kev koom ua ke 18650 roj teeb them thiab tso tawm.
  • Ib qho kev hloov pauv tswj seb lub 18650 roj teeb tau siv los yog tsis.
  • OLED's SDA thiab SCL txuas nrog D1 tus pin thiab D2 tus pin feem.
  • Tsib lub nyees khawm tau tswj los ntawm FLASH, RESET, D5, D6, thiab D7 feem.
  • 5 Digital pins tuaj yeem teeb tsa kev sau/nyeem/cuam tshuam/PWM/I2C/ib-xaim txhawb nqa cais.
  • Kev ua haujlwm thiab NodeMCU zoo ib yam, ntxiv cov programmable LED, koj tuaj yeem siv GPIO16 los tswj, tso saib 8266 qhov xwm txheej thiab lwm yam haujlwm.
  • Kev koom ua ke nrog OLED thiab tsib khawm, yooj yim dua rau kev txhim kho.
  • Lub tswv yim tsim tawm los ntawm qhov qhib qhov project NodeMCU, thiab pawg thawj coj txhim kho suav nrog 18650 them nyiaj thiab tso tawm tshuab nrog them nyiaj thiab tshem tawm kev tiv thaiv.
  • Nyob rau tib lub sijhawm, ib qho OLED thiab tsib lub nyees khawm coj los ua ke kom pab txhawb txoj kev txhim kho.

Kauj Ruam 1: Kev Npaj Khoom

Hauv qhov kev qhia no peb xav tau:

  1. Wemos ESP-Wroom-02 D1 Mini Wifi Module ESP8266 + 18650 Roj Teeb Npog
  2. Micro USB kab

Hauv qhov kev qhia no, peb yuav siv daim ntawv thov los ntawm lub xov tooj smartphone "Blynk" los tswj Arduino Wemos D1 (ESP8266) nrog LED Teeb Pom Kev Teeb.

Ua ntej peb pib, npaj txhua yam khoom xav tau:

  • Cov qhob cij
  • Wemos ESP-Wroom-02 D1 Mini Wifi Module ESP8266 + 18650 Roj Teeb Npog
  • Jumper xov hlau txiv neej rau poj niam
  • LED Teeb Pom Kev Teeb (koj tseem tuaj yeem siv lub hauv paus LEDs)
  • micro USB
  • Smartphone (Koj yuav tsum rub tawm "Blynk" los ntawm Play Store/iStore)
  • Ultrafire 3.7V 1100mAh Li-Ion Roj teeb (yog xav tau)

Kauj ruam 2: Tus Pin Txuas

Tus Pin Txuas
Tus Pin Txuas

Ua raws li qhov txuas raws li qhia saum toj no.

Kauj Ruam 3: Kev Txhim Kho Pawg Thawj Coj

Kev Txhim Kho Pawg Thawj Coj
Kev Txhim Kho Pawg Thawj Coj
Kev Txhim Kho Pawg Thawj Coj
Kev Txhim Kho Pawg Thawj Coj
Kev Txhim Kho Pawg Thawj Coj
Kev Txhim Kho Pawg Thawj Coj

Tom ntej no, qhib Arduino IDE thiab mus rau [File => Preferences]. Lub thawv sib tham tshwm. Hauv lub npov no, muaj tus saib xyuas lub rooj saib xyuas URL ntxiv lub thawv ntawv.

  • Luam thiab muab cov URL hauv qab no tso rau hauv lub thawv thiab nyem OK mus rub cov pob khoom.
  • https://arduino.esp8266.com/stable/package_esp8266com_index.json

Kauj Ruam 4: Nrhiav Hauv Tus Thawj Saib Xyuas Haujlwm

Nrhiav hauv Board Manager
Nrhiav hauv Board Manager
Nrhiav hauv Board Manager
Nrhiav hauv Board Manager

Tom ntej no, mus rau [Cov Cuab Yeej => Pawg Thawj Coj => Tus Thawj Saib Xyuas Haujlwm] hauv koj Arduino IDE. Lub Rooj Tswjhwm Saib qhov rai tshwm raws li hauv qab no. Qhib cov laug cam hauv tus thawj tswj hwm pawg xaiv ESP8266 los ntawm cov npe ntawm cov laug cam. Nyem rau nruab kom pib teeb tsa.

Kauj Ruam 5: Xaiv Pawg Thawj Coj

Xaiv Pawg Thawj Coj
Xaiv Pawg Thawj Coj

Tom ntej no, xa koj thawj qhov program xaiv hom "LOLIN (WEMOS) D1 R2 & mini" board los ntawm [Cov cuab yeej => Cov laug cam] ntu hauv koj Arduino IDE.

Kauj Ruam 6: Piv Cai

Piv txwv li Code
Piv txwv li Code
Piv txwv li Code
Piv txwv li Code
Piv txwv li Code
Piv txwv li Code

Txhawm rau kom tau txais tus lej piv txwv los ntawm Blynk koj yuav tsum rub lub tsev qiv ntawv los ntawm Blynk lub vev xaib.

www.blynk.cc/getting-started/

Ua raws cov theem no:

  1. Xaiv "Rub tawm Blynk Library".
  2. Xaiv rau "Blynk_Release_v0.5.4.zip".
  3. Luam cov ntawv thiab luam ob qho ntawm cov ntaub ntawv (tsev qiv ntawv, cuab yeej).
  4. Qhib Arduino IDE mus rau [Cov Ntaub Ntawv => Nyiam] nrhiav cov ntaub ntawv uas tshwm ntawm "Sketchbooks qhov chaw".
  5. Qhib cov ntaub ntawv Arduino thiab muab ob qho ntawm cov ntawv koj tau theej.
  6. Tom qab ntawd, qhib koj Arduino IDE, mus rau [Cov Ntaub Ntawv => Piv txwv => Blynk => Boards Wifi => Standalone] rau tus lej piv txwv.

Kauj Ruam 7: Blynk Teeb

Blynk teeb tsa
Blynk teeb tsa
Blynk teeb tsa
Blynk teeb tsa
Blynk teeb tsa
Blynk teeb tsa
Blynk teeb tsa
Blynk teeb tsa

Tom ntej no, koj yuav tsum teeb tsa koj li "Blynk" los ntawm koj lub smartphone.

Ua raws cov theem no:

  1. Rub tawm "Blynk" ntawm Play Store/iStore.
  2. Sau npe siv koj tus email.
  3. Mus rau "Txoj Haujlwm Tshiab" Sau koj lub npe haujlwm (yog tias xav tau).
  4. Xaiv lub cuab yeej "WeMos D1 mini".
  5. Hom kev sib txuas "Wifi" ces "Tsim". (Tom qab tsim koj yuav tau txais Auth Token los ntawm koj tus email).
  6. Xaub mus rau sab laug kom qhib "Widget Box".
  7. Xaiv "Khawm" ntxiv khawm.
  8. Kov lub pob rau "Button Settings".
  9. Xaiv [Output => Digital => D2, D3, D4] xaiv tus pin txuas.
  10. Hom tig mus rau "Hloov".

Kauj ruam 8: Uploading

Tso tawm
Tso tawm
Tso tawm
Tso tawm

Tam sim no koj yuav tsum txheeb xyuas koj tus email inbox thiab theej tus Auth token code.

Ntxig rau Auth Token, Network name, thiab Password rau koj lub cajmeem. Tam sim no xa cov cai rau koj WeMos D1 mini los ntawm micro USB. Nco ntsoov tias koj siv qhov chaw nres nkoj raug los ntawm kev xaiv ntawm [Cuab Yeej => Chaw Nres Nkoj].

Kauj Ruam 9: Sim Tawm Blynk Khawm

Sim Tawm Blynk Khawm
Sim Tawm Blynk Khawm

Xaiv lub pob ua si los ntawm sab saud sab xis thiab tig rau tus pin khawm.

Kauj ruam 10: Ua tiav

Pom zoo: