Cov txheej txheem:

ESP8266 Huab Cua Huab Cua: 9 Kauj Ruam (nrog Duab)
ESP8266 Huab Cua Huab Cua: 9 Kauj Ruam (nrog Duab)

Video: ESP8266 Huab Cua Huab Cua: 9 Kauj Ruam (nrog Duab)

Video: ESP8266 Huab Cua Huab Cua: 9 Kauj Ruam (nrog Duab)
Video: Seis Patitos - Canciones de la Granja de Zenón 2 2024, Hlis ntuj nqeg
Anonim
Image
Image

[Ua Si Video]

Txais tos rau kuv qhov Huab Cua Huab Cua Tshiab.

Koj tuaj yeem pom tag nrho kuv cov phiaj xwm ntawm:

Huab cua huab cua yog daim ntawv thov uas tuaj yeem rub tawm ntawm koj lub PC, laptop lossis lub xov tooj ntawm tes thiab ua txoj haujlwm muab kev nkag tau yooj yim rau cov ntaub ntawv huab cua, tab sis kuv ib txwm sim ua qee yam txawv. Yog li kuv mus hauv internet kom tau txais qee yam Tom qab ob peb hnub ntawm kuv txoj haujlwm, thaum kawg kuv ua nws Kuv tau qhia qhov no kom txhua tus tuaj yeem ua tau yooj yim.

Qhov no yog ESP8266 raws li Huab Cua Qhia Hauv Chav uas khaws cov ntaub ntawv huab cua los ntawm https://www.wunderground.com/ los ntawm WLAN thiab muab tso rau ntawm 128x64 OLED Display.

Tus Widget tso saib cov khoom hauv qab no

1. Lub Sijhawm Tam Sim No nrog Hnub Tim

2. Cov ntaub ntawv huab cua niaj hnub no zoo li Kub, Siab, Vaum thiab Los nag.

3. Kev kwv yees yav tom ntej rau 3 hnub

Kuv xav muab qhov txiaj ntsig rau kuv tus phooj ywg Dani Eichhorn uas tau ua txhua yam ntawm cov phiaj xwm. Nws tab tom hloov kho software ntawm nws nplooj Github tsis tu ncua nrog cov yam ntxwv tshiab. Koj tuaj yeem mus ntsib SquixTechBlog kom pom ntau txoj haujlwm ntawm ESP8266.

Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej Yuav Tsum Tau

Qhov Chaw thiab Cov Cuab Yeej Yuav Tsum Tau
Qhov Chaw thiab Cov Cuab Yeej Yuav Tsum Tau

Yuav tsum muaj AmazonParts:

1. ESP8266 -01 (Amazon)

2. Yeem Xaiv NodeMCU ESP8266-12 (Amazon)

3. OLED Zaub (Amazon)

4. Voltage Regulator AMS1117 (Amazon)

5. Tactile Hloov (Amazon)

6. Slide Hloov (Amazon)

7. Resistors (10K thiab 330R)

8. Female Ob Kab Kab Ncaj Tus Pin Header (Amazon)

9. Txiv neej Txoj Cai Lub Taub Hau Pin Header (Amazon)

9. Jumper Wires (Amazon)

10. Prototype Board (Amazon)

Cov Cuab Yeej Yuav Tsum Tau:

1. Soldering Iron (Amazon)

2. Wire Cutter (Amazon)

3. Wire Stripper (Amazon)

Kauj ruam 2: Ua Circuit Court

Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit

Ua lub Circuit Court ntawm lub rooj tsav xwm tsab raws li cov txheej txheem pom saum toj no.

Qhov tseem ceeb yog tias Pawg Thawj Coj no tuaj yeem siv rau kev ua haujlwm ESP8266 -01 module los ntawm Arduino IDE. Koj tuaj yeem siv nws rau ib qho ntawm koj txoj haujlwm.

Tag nrho Circuit Court suav nrog ESP8266-01 module, OLED Display thiab ob peb yam ntxiv

1. AMS1117: Nov yog qhov ntsuas hluav taws xob uas hloov 5V rau 3.3V xav tau rau ESP8266 module.

2. Tactile Hloov (S1): Siv rau rov pib dua ESP8266

3. Slide Hloov (S2): Siv los hloov hom ESP8266. Muaj ob hom qub thiab Hom Kev Kawm.

4. resistors: R1 yog rub tawm resistor thiab R2 yog tam sim no txwv resistor.

5. Header CP2102: Siv rau kev ua haujlwm

6. Header Power: Muab lub zog los ntawm LiPo Roj teeb qhov no yog nyob ntawm yeem, vim tias koj tuaj yeem siv qhov chaw nres nkoj cov phiaj xwm ob tus pin rau lub zog.

7. Header OLED: Kev sib txuas rau OLED Zaub

Hloov kho raws li ntawm 2016-03-13: Cov ntaub ntawv PCB tshiab

Ua tsaug rau kuv tus phooj ywg spilz uas tau siv nws lub zog los ua qhov PCB zoo no. Tam sim no koj tuaj yeem ua nws los ntawm rub cov ntaub ntawv gerber txuas hauv qab no.

Cheebtsam PCB:

1. AMS: AMS1117-3.3

2. C1: 100nF

3. C2: 10uF

4. C3: 100nF

5. C4: 10uF

6. C5: 100nF

Nco tseg: Ib qho ntxiv resistor R2 ntxiv hauv PCB los tiv thaiv ESP8266.

Rau ib qho kev txhim kho thov qhia.

Kauj Ruam 3: Rub tawm thiab Txhim Kho Softwares

1. Arduino Code

ESP8266 Huab cua Chaw Nres Tsheb

2. Tsev qiv ntawv:

Json Streaming Parser

ESP8266 Oled Driver rau SSD1306 zaub

Tom qab rub tawm lub tsev qiv ntawv unzip nws thiab teeb tsa nws nrog koj tus Thawj Saib Xyuas Tsev Kawm Ntawv Arduino hauv

Sketch> Xws li Tsev Qiv Ntawv> Tswj Tsev Qiv Ntawv …

3. ESP8266 pawg thawj coj ntawm Arduino IDE:

Txhawm rau teeb tsa ESP8266 lub rooj tsavxwm ntawm koj li arduino IDE ua raws li txuas hauv qab no.

github.com/esp8266/Arduino

Hloov tshiab rau 2/1/2016:

Raws li cov lus tawm tswv yim, ntau tus neeg ntsib teeb meem hauv kev suav sau cov cai. Kuv Kuv xav tias nws zoo dua los qhia cov cai uas kuv tau siv. Koj tuaj yeem rub cov ntaub ntawv.zip txuas hauv qab no.

Kauj Ruam 4: Tau Txais Huab Cua API Ntsiab

Tau Huab Cua API Ntsiab
Tau Huab Cua API Ntsiab
Tau Huab Cua API Ntsiab
Tau Huab Cua API Ntsiab
Tau Huab Cua API Ntsiab
Tau Huab Cua API Ntsiab

Cov Chaw Tshawb Xyuas Huab Cua cov ntaub ntawv lub sijhawm tiag tiag tau los ntawm Huab Cua Hauv Qab (https://www.wunderground.com) lub vev xaib. Yog li koj yuav tsum tau txais Wunderground API Key. Tsis muaj tus nqi thov rau qhov tseem ceeb, uas ntau dua li txaus rau peb cov kev xav tau.

Ua raws cov theem hauv qab no:

1. Mus rau https://www.wunderground.com/weather/api/d/login.h… ib tus as khauj Huab Cua Dawb.

2. Nkag mus rau koj tus email chaw nyob, tus lej zais, thiab tus tuav (lub npe siv), tom qab ntawd nyem rau "Sau Npe" khawm.

3. Weather Underground yuav xa email rau koj sai li sai tau nrog qhov txuas txuas. Koj yuav tsum nyem qhov txuas no hauv email kom qhib koj tus lej nyiaj (koj yuav raug coj rov qab mus rau lub vijtsam nkag).

4. Nkag mus rau Huab Cua Hauv Qab siv tus lej uas koj nyuam qhuav tsim thiab qhib.

5. Nyem rau ntawm “Tshawb Kuv Cov Kev Xaiv” khawm. Mloog lub pob “Kev Yuav Khoom” nyob rau saum toj lossis hauv qab ntawm nplooj ntawv (koj yuav tsis raug nug txog txoj hauv kev them nyiaj).

6. Peb Huab Cua Hauv Nroog yuav nug koj kom ua daim ntawv yooj yim txhawm rau ua kom tiav koj daim ntawv thov.

Thaum nug tias API yuav siv qhov twg, teb "Lwm Yam".

Thaum nug yog tias API yog rau kev lag luam, teb "Tsis yog".

Thaum nug yog tias API yog rau kev ua chip, teb "Tsis yog".

Kauj ruam 5: Teeb Software

Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software

Tom qab rub tawm Arduino Code, koj yuav tsum hloov cov khoom hauv qab no

1. Qhib qhov kos duab hauv Arduino IDE

2. Nkag mus rau Wunderground API Key

3. Nkag mus rau koj li ntaub ntawv pov thawj Wifi

4. Kho qhov chaw raws li Wunderground API, piv txwv li Is Nrias teb, Kolkata

5. Kho UTC offset

Kauj Ruam 6: Tshaj Tawm Txoj Cai

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Txuas FTDI Programmer raws li hauv qab no

ESP8266 CP2102

Vcc Vcc

GND GND

Txx Rx

Rx Txi

Xaub tus tes hloov mus rau Txoj Haujlwm Txoj Haujlwm

Hauv Arduino IDE, xaiv pawg thawj coj raws li "Generic ESP8266 Module"

Tom qab ntawd upload cov cai.

Kauj Ruam 7: Xeem

Image
Image
Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem

Tam sim no tshem tus programmer thiab nws cov kev sib txuas.

Xaub qhov hloov mus rau nws txoj haujlwm ib txwm muaj

Txuas Cov Khoom Siv Hluav Taws Xob Kuv siv lub roj teeb LiPo rau nws.

Tom qab ob peb vib nas this OLED yuav tso tawm txhua qhov huab cua ntsuas.

Kauj Ruam 8: Ua Nrog Node MCU

Image
Image
Ua Nrog Node MCU
Ua Nrog Node MCU
Ua Nrog Node MCU
Ua Nrog Node MCU

Yog tias koj tsis txaus siab ua lub Circuit Court los ntawm kev siv ESP8266-01 tus qauv, tom qab ntawd qhov no yog lwm txoj hauv kev rau koj. Koj tuaj yeem ua tib yam Huab Cua Huab Cua los ntawm kev siv Node MCU board. NodeMCU yog qhov qhib IoT platform. Nws suav nrog cov software uas ua haujlwm ntawm ESP8266 Wi-Fi SoC, thiab kho vajtse uas yog raws ESP-12 module. Koj tseem tuaj yeem siv koj nyiam Arduino IDE thiab Arduino code rau program nws. yog tias koj tsis xav tau cais FTDI programmer los ua haujlwm rau nws Ib lub micro USB cable txaus rau nws. Koj tuaj yeem siv koj lub xov tooj ntse/ntsiav tshuaj them nyiaj cable rau nws.

Ua raws cov kauj ruam:

Ua ntej hloov kho NodeMCU mus rau qhov hloov kho tshiab tshaj plaws. Koj tuaj yeem pom cov vis dis aus los ntawm TornTech rau kev siv.

1. Ua qhov Circuit Court ntawm lub rooj mov ci

Node MCU OLED

3.3 V -Vcc

GND GND

D5-- SDA

D6-- TSW

2. Txuas lub micro USB cable

3. Plug rau koj lub laptop/PC USB chaw nres nkoj.

4. Teeb tsa Software raws li tau hais hauv cov kauj ruam ua ntej.

5. Set lub rooj tsavxwm rau "NodeMCU 1.0 (ESP-12E Module)"

6. Upload cov cai

Koj ua tiav !!!

Kauj Ruam 9: Ua daim ntawv kaw

Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw

Koj tuaj yeem ua koj lub thaiv nrog koj tus kheej xaiv.

Tab sis kuv yuav hais kom saib mus rau qhov zoo nkauj 3D luam ntawv thaiv tsim los ntawm smily77. Kuv tau luam kuv lub thawv ntawv tab sis tseem tshuav ob peb txoj haujlwm tseem tshuav. Kuv yuav hloov kho nws ib zaug ua tiav. Nyob twj ywm …

Rub tawm. STL cov ntaub ntawv los ntawm Thingiverse.

Ua raws li cov lus qhia txhawm rau luam tawm Cov Ntaub Ntawv.

Tom qab ntawd ntxig tag nrho cov khoom siv sab hauv. Tam sim no Huab Cua Huab Cua tau npaj tiav !!!

Yog tias koj nyiam kab lus no, tsis txhob hnov qab xa nws nrog!

Ua raws kuv rau ntau qhov haujlwm DIY thiab tswv yim. Ua tsaug !!!

Pom zoo: