Cov txheej txheem:

Tsev Automation Nrog ESP8266 WiFi Tsis Siv Blynk !: 24 Kauj Ruam (nrog Duab)
Tsev Automation Nrog ESP8266 WiFi Tsis Siv Blynk !: 24 Kauj Ruam (nrog Duab)

Video: Tsev Automation Nrog ESP8266 WiFi Tsis Siv Blynk !: 24 Kauj Ruam (nrog Duab)

Video: Tsev Automation Nrog ESP8266 WiFi Tsis Siv Blynk !: 24 Kauj Ruam (nrog Duab)
Video: 5 Yam: Txhob pub muaj nyob hauv Tsev (Tsis Zoo) 2024, Hlis ntuj nqeg
Anonim
Tsev Automation Nrog ESP8266 WiFi Tsis Siv Blynk!
Tsev Automation Nrog ESP8266 WiFi Tsis Siv Blynk!

Ua ntej tshaj, Kuv xav ua tsaug rau txhua tus uas ua rau kuv yeej hauv Automation Contest 2016 rau qhov INSTRUCTABLE. Yog li, raws li kuv tau cog lus rau koj, ntawm no yog cov lus qhia rau kev tswj cov khoom siv hauv tsev nrog ESP8266 WiFi module.

Kauj Ruam 1: Tom ntej hauv Tsev Automation

Txhawm rau kom nyob ntawm lub rooj zaum thiab tswj txhua yam khoom siv hluav taws xob nrog tsuas yog TV chaw taws teeb, Kuv tsim cov lus qhia rau qhov ntawd thiab tam sim no nws yog lub sijhawm hloov kho rau WiFi. Tam sim no koj yuav tuaj yeem tswj txhua yam nrog koj lub smartphone. Suab nyuab !!! Tab sis yooj yim heev ua !!!

Kauj Ruam 2: Vim Li Cas ESP8266?

Vim li cas ESP8266?
Vim li cas ESP8266?

Tam sim no koj yuav xav yog vim li cas kuv thiaj siv WiFi ntawm no? Kuv yuav tau siv Bluetooth lossis RF tab sis vim li cas tsuas yog Wifi nrog ESP8266? Cov lus teb yooj yim yog: • ESP8266 yuav pheej yig dua Bluetooth module (ntawm eBay, nws tsuas yog nyob ib ncig $ 2) • Los ntawm kev siv ESP8266, koj tuaj yeem txuas tus qauv rau internet thiab tswj nws los ntawm ib feem ntawm lub ntiaj teb.

Kauj Ruam 3: Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?

Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?
Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?
Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?
Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?
Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?
Qhov ESP Module Kuv Yuav Tsum Tau Yuav Dab Tsi?

Tam sim no muaj lus nug tshiab tau tsa ntawm no Qhov twg ESP8266 tus qauv kuv yuav tsum yuav? Zoo tam sim no muaj ntau qhov kev hloov pauv ntawm cov qauv no. Nov ntawm qhov qhia no, Kuv tau siv ESP-01 tus qauv. Nov yog thawj qhov qauv qhia thiab tseem yog qhov pheej yig tshaj yog li yog tias koj yog tus pib rau IoT, tom qab ntawd koj zoo dua mus rau qhov no. Tus qauv koj yuav tsum yuav nyob ntawm seb muaj pes tsawg gpio (dav-hom phiaj-tawm-tso tawm) pins koj xav tau. Qhov no yuav txiav txim siab pes tsawg yam koj yuav tuaj yeem tswj tau los ntawm WiFi. Rau cov pib tshiab kuv xav pom ESP-01 module.

Kauj Ruam 4: Qee Cov Ntaub Ntawv Tseem Ceeb ntawm WIFI !

Qee Cov Ntaub Ntawv Tseem Ceeb ntawm WIFI !!!
Qee Cov Ntaub Ntawv Tseem Ceeb ntawm WIFI !!!

WiFi yog thev naus laus zis uas tso cai rau cov khoom siv hluav taws xob txuas rau Wireless LAN (WLAN) network, feem ntau yog siv 2.4 gigahertz (12 cm) UHF thiab 5 gigahertz (6 cm) SHF ISM xov tooj cua band. Wi-Fi yog lub npe nrov thev naus laus zis thev naus laus zis sib txuas uas siv xov tooj cua nthwv dej kom muab wireless Internet ceev thiab sib txuas sib txuas. Ib qho kev nkag siab yuam kev yog tias lub sijhawm Wi-Fi luv rau "Wireless Fidelity", txawm li cas los xij qhov no tsis yog qhov tseeb. Wi-nkaus tsuas yog cov lus cim lag luam uas txhais tau tias IEEE 802.11x.

Kauj ruam 5: Tsis muaj Blynk !

Tsis yog Blynk !!!
Tsis yog Blynk !!!

Koj tuaj yeem nrhiav Tsev Automation nrog esp8266 thoob plaws Cov Lus Qhia tab sis qhov ib txwm yog tias lawv tswj hwm lawv li es hla Blynk app. Zoo, Blynk app kuj tseem yog qhov zoo rau ESP tab sis tseem muaj qee qhov tsis zoo. • Ua ntej tshaj, nws xav tau kev siv internet kom lub app tuaj yeem txuas nrog nws lub server. • Thib ob, zoo li lwm txoj hauv kev, Blynk app ntxiv rau Esp yuav tsum txuas mus rau WiFi Hotspot. Yog li, cov neeg uas tsis muaj kev txuas mus tas li lossis router raws li hotspot tsis tuaj yeem siv Blynk app.

Kauj Ruam 6: Tom qab ntawd Dab Tsi Tshwj Xeeb Hauv Kuv Qhov System !

Hauv kuv qhov system, Kuv tau tsim ib qho android app uas txuas ncaj qha rau koj esp es tsis txhob txuas rau lub hotspot. Qhov no tseem yuav tsum tsis muaj kev sib txuas is taws nem lossis lwm qhov wifi hotspot li ob lub tshuab yuav txuas ncaj qha ua rau muaj kev cuam tshuam sai ntawm ESP.

Kauj Ruam 7: Sau Txhua Qhov

Sau Txhua Qhov
Sau Txhua Qhov
Sau Txhua Qhov
Sau Txhua Qhov
Sau Txhua Qhov
Sau Txhua Qhov

Nov yog txhua qhov koj xav tau hauv Txoj Haujlwm no tau hais thiab txuas los ntawm qhov koj tuaj yeem yuav lawv tab sis kuv xav kom koj yuav tsum xub sim nrhiav cov khoom hauv zos vim tias txoj hauv kev no koj tuaj yeem yuav lawv sai dua thiab tej zaum pheej yig dua tab sis yog tias lawv tsis yog muaj nyob hauv zos koj ib txwm tuaj yeem yuav lawv nrog cov kab ntawv muab. Kuv ib txwm yuav txhua yam los ntawm ebay 'ua rau nws pheej yig tshaj. Rau qhov haujlwm no koj yuav xav tau:

  • ESP8266 WiFi Module
  • FTDI Kev Tawm Tsam (lossis ARDUINO UNO)
  • 2 x 1K Resistors
  • 2 x BC547 Transistor
  • 2x5v wb
  • 2x 1 N4007 DIODE
  • 2x Ntsia Hlau Sijhawm.

Kauj Ruam 8: Ua Nws Breadboard Tus Phooj Ywg

Ua Nws Breadboard Tus Phooj Ywg
Ua Nws Breadboard Tus Phooj Ywg
Ua Nws Breadboard Tus Phooj Ywg
Ua Nws Breadboard Tus Phooj Ywg
Ua Nws Breadboard Tus Phooj Ywg
Ua Nws Breadboard Tus Phooj Ywg

Los ntawm tam sim no, koj yuav tau pom tias ESP-01 tsis tuaj yeem haum rau ntawm lub khob cij yog li peb yuav tsum ua kom nws Breadboard Friendly. Qhov kauj ruam yooj yim koj tsuas yog yuav tsum txiav 4 x 4 dots pcb, txuas tus txiv neej lub taub hau thiab poj niam lub taub hau raws li qhia hauv cov duab saum toj no.

Kauj ruam 9: Android Daim Ntawv Thov

Android Daim Ntawv Thov
Android Daim Ntawv Thov

Txog kev tswj hwm ESP8266 ncaj qha los ntawm koj lub xov tooj ntawm tes, Kuv tau tsim ib qho app siv MIT app inventor. Koj tuaj yeem pom lub app ntawm no.

Ua ntej koj yuav tsum txuas koj lub xov tooj ntawm tes mus rau esp8266 WiFi thiab tom qab ntawd teeb ip chaw nyob rau koj tus lej IP chaw nyob hauv app. Hauv kuv qhov xwm txheej, nws yog 192.168.4.1

Kauj Ruam 10: SIJ HAWM NTAWM QHOV TSEEB !

Ua ntej peb yuav tsum txuas ESP tus qauv rau lub khoos phis tawj kom hloov kho lub khoos phis tawj thiab ntxiv rau nws qhov program.

Kauj ruam 11: Hloov 5v rau 3.3v !

Hloov 5v rau 3.3v !!!
Hloov 5v rau 3.3v !!!

Qhov tseem ceeb tshaj plaws yog qhov esp8266 module ua haujlwm nkaus xwb nrog 3.3v thiab tsis yog 5v.

5v tuaj yeem tua nws, yog li txhawm rau hloov 5v rau 3.3v peb yuav tsum tsim qhov faib hluav taws xob.

Tsim qhov faib hluav taws xob los ntawm kev txuas 1K thiab 2K resistor raws li qhia hauv daim duab.

Kauj Ruam 12: Txuas FTDI rau Esp !

Txuas FTDI rau Esp !!!
Txuas FTDI rau Esp !!!

Tsuas yog ua raws cov txheej txheem los txuas koj li esp mus rau FTDI kev tawm tsam. Nco ntsoov siv 3.3v nkaus xwb ntawm koj qhov FTDI kev tawm tsam.

Kauj Ruam 13: Koj Tsis Muaj FTDI Breakout

Koj Tsis Muaj FTDI Breakout!
Koj Tsis Muaj FTDI Breakout!

Yog tias koj tsis muaj FTDI kev tawm tsam ib yam li kuv, koj kuj tuaj yeem siv koj li arduino los teeb tsa lub esp. REMOVE ATMEGA 328 IC los ntawm ARDUINO BOARD ua ntej PROGRAMMING. Tsis txhob hnov qab tias ESP8266 ua haujlwm ntawm 3.3v THIAB TSIS YOG 5v. ARDUINO ESP82663.3v ---------------- VCCGROUND ------------ GROUND3.3v ------------- --- CHP_PWD (CHIP POWER DOWN) TX --------------- TXRX --------------- RX

Kauj Ruam 14: Nyem Koj ESP

Flash Koj ESP
Flash Koj ESP

Nyem koj ESP mus rau lub khoos phis tawj tshiab kawg.download tau qhov software tsim nyog.lasher.exe Nco ntsoov txuas gpio 0 rau hauv av. Qhov no yuav pab kom hom nyem hauv koj li esp.

Rub tawm cov ntawv. >>>>> Cov ntaub ntawv yuav nyob hauv zip cov ntaub ntawv yog li zaws lawv thiab qhib esp8266_flasher.exe >>>>> Koj tuaj yeem siv.bin firmware twb tau muab hauv zip file. >>>>> Tom qab ntawv xaiv koj li kev sib tham (COM) PORT, thiab nkag mus 0x00080 hauv lwm kab ntawv. >>>>>>> Ntaus Download.

Kauj Ruam 15: Txheeb Xyuas Yog Txhua Yam Zoo Li Cas !

Tshawb xyuas yog tias txhua yam yog lawm !!!
Tshawb xyuas yog tias txhua yam yog lawm !!!

Tom qab flashing ESP, nws yog lub sijhawm los tshuaj xyuas yog tias txhua yam yog lawm.

  • Mus rau Arduino IDE
  • Mus rau tus saib xyuas
  • Xaiv baud tus nqi 115200
  • Tam sim no sau cov lus txib hauv qab no.

AT

Tom qab nkag mus rau cov lus txib no nyem SEND thiab yog tias koj tau txais OK ces koj txhua tus tau npaj mus.

Koj tuaj yeem ua si nrog tus qauv nrog lwm AT Commands raws li qhia hauv cov duab saum toj no.

Kauj ruam 16: Ua ntej Coding

Ua ntej Coding
Ua ntej Coding
Ua ntej Coding
Ua ntej Coding
Ua ntej Coding
Ua ntej Coding
Ua ntej Coding
Ua ntej Coding

Txhawm rau teeb tsa ESP los ntawm Arduino IDE, koj yuav tsum teeb tsa qee qhov xav tau softwares.

1. Mus rau Arduino IDE 2. Mus rau File >>>> Preferences 3. Hauv kab ntawv ntawm ADDITIONAL BOARDS MANAGER URL, luam thiab muab txoj hauv qab no

arduino.esp8266.com/package_esp8266com_inde…

4. Mus rau TOOLS >>>>> BOARD >>>>> BOARD MANAGER5. Ntaus esp hauv kab ntawv tshawb fawb thiab tsuas yog ib qho kev xaiv yuav nyob. 6. Nruab qhov ESP8266 PACKAGE.

Kauj ruam 17: Lub sijhawm rau Coding

Tom qab teeb tsa ESP8266 Pob, Mus rau TOOLS >>>>> BOARDS >>>>> Xaiv qhov qauv koj muaj (Yog tias koj muaj tus qauv esp-01 zoo li kuv, xaiv GENERIC ESP8266 MODULE)

Tam sim no hloov qhov Properties raws li koj tus lej hauv cov cuab yeej ntawv qhia zaub mov.

Tam sim no nco ntsoov tias koj muaj ESP8266WIFI lub tsev qiv ntawv.

Upload cov cai rau koj esp.

Kauj Ruam 18: Ua Circuit Court !

Ua lub Circuit !!!
Ua lub Circuit !!!
Ua lub Circuit !!!
Ua lub Circuit !!!
Ua lub Circuit !!!
Ua lub Circuit !!!

Ua ntej sim ua lub Circuit Court ntawm daim ntawv tais thiab tom qab ntawd ua kom nws ruaj khov ntawm pcb board.

Tab sis qhov teeb meem loj tshaj plaws yog ESP8266 xav tau 3.3v thiab tsis yog 5v.

Tsis txhob poob siab lub zog ntawm 5v, nws txaus los tua koj li ESP module.

*** Hlo! raug qhov chaw ??? Kuv ib txwm nyob ntawd los pab koj hauv cov lus hauv qab no !!! ***

Kauj Ruam 19: CEEV FAJ !!! HIGH VOLTAGE !

CEEV FAJ !!! HIGH VOLTAGE !!!
CEEV FAJ !!! HIGH VOLTAGE !!!

CEEB TOOM !

Kev siv tsis raug lossis tsis raug tuaj yeem ua rau:

  • Kev raug mob loj lossis tuag.
  • Lub cev puas rau khoom.
  • Tsim kev phom sij txaus ntshai.

*** Kuv tsis muaj lub luag haujlwm ntawm ib qho ntawm koj li kev ua ***

Kauj Ruam 20: Yuav Siv Li Cas Ntawm Koj Lub Tsev !

Yuav Siv Li Cas Ntawm Koj Lub Tsev !!!
Yuav Siv Li Cas Ntawm Koj Lub Tsev !!!

Cia peb hais tias koj xav tswj koj lub teeb thiab kiv cua ntawm koj chav pw, koj tuaj yeem teeb tsa lub voj voog no ntawm lub rooj hloov. Tsuas yog qhib lub rooj hloov pauv uas tswj koj lub teeb thiab cov kiv cua thiab koj yuav pom tias ob lub xov hlau txuas nrog rau qhov hloov pauv. Tsuas yog tshem cov xov hluav taws xob los ntawm kev hloov thiab txuas lawv mus rau PCB qhov kawg thiab koj ua tiav. Super yooj yim tab sis Npaum.

*** Cov menyuam, nyob deb ntawm cov xov hluav taws xob nyob. Muaj ib tus neeg laus nyob ib sab ua qhov hluav taws xob hluav taws xob ua haujlwm ***

Kauj Ruam 21: TroubleShooting!@#$%

TroubleShooting!@#$%
TroubleShooting!@#$%

Hmm … Tsis ua haujlwm raws li qhov xav tau ???

Sim phau ntawv qhia Teeb Meem Teeb Meem no yog li koj tuaj yeem ua rau koj txoj haujlwm zoo li ntxim nyiam !!

Ua ntej kos cov cai. Nco ntsoov tias koj muaj txhua lub tsev qiv ntawv teeb tsa raug. Yog tsis yog ces koj yuav tsum rub tawm lawv ua ntej

  • Nco ntsoov tias Kev Sib Txuas raug lawm. Siv qhov ua haujlwm txuas ntxiv ntawm koj lub ntsuas ntsuas rau txhua qhov kev sib txuas tsis raug lossis luv Circuit Court !!!
  • Nco ntsoov tias koj tau ua haujlwm ESP thiab xa tawm.
  • Nco ntsoov tias koj tau tso lub diode kom raug qhov tseeb.
  • Nco ntsoov tias koj tau txuas koj lub xov tooj mus rau qhov tshwj xeeb los ntawm WiFi.

*** Yog tias koj muaj kev ua xyem xyav txog qhov no koj tuaj yeem nug kuv hauv cov lus hauv qab no ***

Kauj Ruam 22: Txheeb Cov Ntsiab Lus no !

  • Ua ntej kuaj lub Circuit, ob zaug txheeb xyuas txhua qhov kev sib txuas nrog kev ua haujlwm txuas ntxiv ntawm ntau lub ntsuas rau ib qho kev sib txuas tsis raug lossis luv Circuit Court.
  • Txhim kho lub diode nruab nrab ntawm cov coils kom raug raws li nws yuav tiv thaiv peb lub Circuit Court los ntawm kev thim rov qab tam sim no.
  • Kuv pom zoo tias ua ntej ntsuas lub Circuit nrog HIGH AC VOLTAGE, xub sim nws nrog LED yooj yim.
  • Tsis tas li tsis txhob siv cov cuab yeej zoo li no uas rub tau tam sim no ntau dua li koj li Relay cov qhab nia.

Kauj ruam 23: Dab tsi tshwm sim ntawm no ???

Hmm … tsis meej pem tam sim no … cia kuv qhia koj Dab tsi tshwm sim ntawm no ???

Thaum koj nias lub pob ON ntawm lub WiFi tswj app, nws xa lub teeb liab ON rau ESP. Cov qauv no tau teeb tsa txoj hauv kev uas thaum nws tau txais ON lub teeb liab, nws hloov nws lub xeev gpio mus rau HIGH. Los ntawm kev ua li ntawd, lub relay tau qhib thiab yog li cov cuab yeej qhib. Ib yam nkaus thaum koj nias OFF, esp hloov nws lub xeev gpio mus rau LOW, thiab yog li cov kev xa tawm tawm yog li cov cuab yeej siv. Lub hauv paus ntsiab lus ua haujlwm yog yooj yim heev piv rau qhov nyuaj hauv Blynk app.

Yog tias koj xav tau cov ntaub ntawv ntxiv tshawb xyuas GreatScott cov lus qhia ntawm no.

*** Yog tias koj tseem muaj qee qhov ua xyem xyav, thov hu rau hauv kab lus hauv qab no ***

Kauj Ruam 24: Xaus !

Xaus !!!
Xaus !!!

Hav !!! Hmoov zoo rau kev tsim qhov no ntawm koj tus kheej. Yog tias koj raug ntaus ib qhov twg, thov hu rau kuv hauv cov lus hauv qab no. Kuv ib txwm nyob ntawd los pab. Yog tias koj muaj lus qhia qhia nws rau kuv, thiab yog tias koj nyiam qhov project ntaus lub pob zoo li no, qhia qhov project raws li qhov koj ua tau thiab thov VOTE hauv kev sib tw.

Tsaug rau kev nyeem ntawv,

YAVNIK SHARMA

Pom zoo: