Cov txheej txheem:

Flash Programming the Joinrun Smart Socket (EU Plug): 6 Cov Kauj Ruam
Flash Programming the Joinrun Smart Socket (EU Plug): 6 Cov Kauj Ruam

Video: Flash Programming the Joinrun Smart Socket (EU Plug): 6 Cov Kauj Ruam

Video: Flash Programming the Joinrun Smart Socket (EU Plug): 6 Cov Kauj Ruam
Video: Review Runx Project 2024, Kaum ib hlis
Anonim
Flash Programming lub Joinrun Smart Socket (EU Plug)
Flash Programming lub Joinrun Smart Socket (EU Plug)
Flash Programming lub Joinrun Smart Socket (EU Plug)
Flash Programming lub Joinrun Smart Socket (EU Plug)

Qhov "Joinrun Smart Wifi" lub qhov (socket) nrog USB yog lwm ESP8266 raws li wifi tswj lub hwj chim lub qhov (socket) Nws los nrog kev tsim kom haum, daim ntawv me me thiab nrog rau USB ntxiv chaw nres nkoj. Nws xav tau lub smartlife app los tswj nws ntawm Suav teb tus tswv server los ntawm koj lub cuab yeej ntse thiab muaj cov txuj ci los ua haujlwm nrog cov pab tsev ntse los ntawm amazon thiab google. Nws xav tau kev sib txuas hauv is taws nem tab sis yog tias koj xav kom koj lub tsev tswj hwm hauv koj tus kheej lub network koj tuaj yeem nyem lub maub los nrog cov software sib txawv xws li tasmota. Tasmota ntxiv lub web server rau lub cuab yeej yog li koj tuaj yeem tswj nws ncaj qha los ntawm qhov browser hauv koj lub tsev network.

Kauj Ruam 1: Qhib Rooj Plaub

Qhib Rooj Plaub
Qhib Rooj Plaub
Qhib Rooj Plaub
Qhib Rooj Plaub

Muaj 2 qhov ntsia hlau tom qab lub hau npog hauv qab uas yuav tsum tau muab tshem tawm kom qhib rooj plaub.

Kauj ruam 2: Nkag mus rau Esp8266ex Module

Nkag mus rau Esp8266ex Module
Nkag mus rau Esp8266ex Module
Nkag mus rau Esp8266ex Module
Nkag mus rau Esp8266ex Module

Cov cuab yeej tsis tau tsim hauv qhov program header, yog li nyem nws koj yuav tsum tau siv cov phiajcim xov hlau. ESP8266 nyob ntawm ib pawg cais uas tau muab sib dhos rau ntawm lub rooj tsavxwm loj.

Hmoov tsis zoo qhov kev pab cuam ua kom tus pin (GPIO0) tsis yooj yim. Yog li koj yuav tsum hu ncaj qha rau ntawm lub rooj tsavxwm.

Kuv tau muab ESP pawg thawj coj saib tsis tau los ntawm lub rooj tsav xwm loj uas siv cov braid desoldering, tom qab ntawd kuv tau siv lub xaim me me rau GPIO0 ncoo. Qhov lwm tus lej xov tooj muaj nyob rau ntawm lub rooj tsav tsheb raws li qhia hauv daim duab.

Kauj Ruam 3: Npaj Flashing Device

Npaj Flashing Device
Npaj Flashing Device
Npaj Flashing Device
Npaj Flashing Device

Txhawm rau nyem lub cuab yeej Kuv siv pheej yig USB-rau-Serial adapter los ntawm Aliexpress

CP2102 MICRO USB rau UART TTL Module los nrog 6 tus pin header thiab tuaj yeem ua haujlwm nrog 5V thiab 3.3V cov cuab yeej.

Yog tias koj ntsaws nws rau hauv koj lub PC PC nws tsim qhov chaw nres nkoj COM uas koj tuaj yeem pom hauv tus thawj tswj ntaus ntawv. Mine nyob ntawm COM6 thiab kuv teeb tsa chaw nres nkoj rau 57600 baud.

Tshem lub CP2102 los ntawm koj lub PC thiab txuas nws mus rau ESP module.

Txuas 3.3V thiab GND mus rau cov khoom sib thooj ntawm ESP module. Connect TxD rau RxD ntawm tus qauv thiab RxD rau TxD feem.

Txhawm rau pab kom hom phiaj hom phiaj GPIO0 yuav tsum raug rub mus rau GND xws li nrog 2k resistor.

Kauj Ruam 4: Npaj Koj Txoj Haujlwm Ib puag ncig

Muaj ntau txoj hauv kev los teeb tsa tus qauv esp8266 thiab piav qhia lawv tag nrho yog dhau qhov uas tau qhia tseg no. Koj tsuas yog siv koj lub tshuab tshawb fawb uas nyiam tshaj los saib kom ntxaws.

Kuv siv cov arduino programming IDE qhov twg esp8266 pawg thawj coj tuaj yeem ntxiv los ntawm cov thawj tswj hwm cov ntawv qhia zaub mov. Qhov no yog teeb tsa esptool.exe uas tuaj yeem siv tau yooj yim nyem lub binary rau ESP module.

Tasmota binary sonoff.bin tuaj yeem rub tawm los ntawm github. Nws kuj tseem muaj ntau yam lus.

Kauj Ruam 5: Flash Programming ESP Module

Qhov tseeb flashing tuaj yeem ua tau yooj yim los ntawm kev hais kom ua sai sai ntawm lub qhov rais.

Mus rau daim nplaub tshev qhov twg esptool.exe nyob

xws li cd /d %USERPROFILE %\ AppData / Local / Arduino15 / pob khoom / esp8266 / cuab yeej / esptool cd 0.4.13

Tom qab ntawd nyem lub cuab yeej nrog rub tawm sonoff binary zoo li no

esptool.exe -vv -cd nodemcu -cb 57600 -ca 0x00000 -cp COM6 -cf %HOMEPATH %\ Documents / Downloads / sonoff.bin

Kauj Ruam 6: Kho Tus Qauv

Kho qhov Module
Kho qhov Module
Kho qhov Module
Kho qhov Module

Tom qab ua tiav qhov ua tau zoo GPIO0 tus pin xav tau tso tawm los ntawm GND thiab ESP rov ua dua.

Ntawm nplooj ntawv teeb tsa thawj zaug koj tuaj yeem luam theej duab koj li wifi, xaiv lub network tsim nyog thiab sau koj tus password wifi.

Tom qab ntawd rov pib dua thiab ESP yuav tshwm rau ntawm koj lub network xaiv.

Txheeb xyuas lub network hauv koj lub router kom pom tus IP chaw nyob.

Tom qab ntawd txuas rau IP nrog koj tus browser thiab teeb tsa hom ntaus ntawv rau "18 yam" thiab txuag nws.

ESP ua qhov rov pib dua tsis siv neeg tom qab uas koj tuaj yeem teeb tsa qhov txuas thiab khawm chaw nres nkoj raws li qhia hauv daim duab.

Koj kuj tseem yuav xav mus rau "lwm qhov chaw" los teeb lub npe phooj ywg, txhawm rau MQTT yog tias koj tsis muaj nws thiab pab kom Belkin WeMo kev ua kom lub ntsaws ua haujlwm nrog Alexa.

Tom qab txhua yam ua haujlwm thaum kawg rov ua dua tus qauv rau lub rooj tsavxwm tseem ceeb thiab rov sib dhos dua.

Pom zoo: