Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
- Kauj ruam 2: Programming
- Kauj Ruam 3: Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
- Kauj ruam 4: Schematic
- Kauj Ruam 5: Desolder Tus Pin Header
- Kauj Ruam 6: Solder Hloov
- Kauj Ruam 7: Txuas CH_PD rau VCC
- Kauj Ruam 8: Tshem Tawm Lub Hwjchim LED
- Kauj Ruam 9: Hloov Kho Cov Txheej Txheem
- Kauj Ruam 10: Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
- Kauj ruam 11: Superglue Nws Toghether
- Kauj ruam 12: Them
- Kauj ruam 13: Kho
- Kauj Ruam 14: Sim Nws
- Kauj Ruam 15: Hloov Kho: 3D Luam Ntawv Case
Video: Me me ESP8266 Dash-Button (Rov Kho Tau): 15 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nov yog qhov me me ESP8266 raws qhov khawm-khawm. Nws nyob hauv kev tsaug zog tsaug zog, ib zaug koj nias lub pob nws ua GET thov mus rau qhov tshwj xeeb URL thiab yog teeb tsa kuj tseem dhau qhov khoom siv hluav taws xob raws li qhov sib txawv. Qhov zoo tshaj plaws yog los ntawm kev yooj yim txuas ob tus pin koj tuaj yeem ua rau nws nkag mus rau kev teeb tsa hom. Tso cai rau koj hloov pauv txhua qhov chaw yam tsis rov sau dua tshiab.
Txhawm rau ua raws cov lus qhia no kuv xav tias koj paub qee yam, xws li; yuav ua li cas txhawm rau, yuav ua li cas ua raws cov txheej txheem thiab yuav ua li cas rub tawm cov program thiab SPIFFS cov ntaub ntawv mus rau ESP.
Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
Rau qhov haujlwm no koj yuav xav tau:
- ESP-01 (Pom tseeb)
- 50mAh lossis zoo li Li-Po Roj teeb
- 2x1 poj niam tus pin header
- 3.3V LDO (Pom zoo kom HT-7333A, Nws muaj qhov zoo tshaj tam sim no ntawm 4uA thiab 170mV tso tawm)
- Ib lub me me laub khawm
- Qee cov xov hlau nyias (Cov ntaub qhwv cov xov hlau ua haujlwm zoo)
Koj tseem yuav xav tau:
- ESP lub rooj tsavxwm
- Ib qho tooj liab hlau / solder / flux
- Lub twj tso kua mis desoldering
- Tweezers thiab/lossis cov hlua hlau
- Ntawv xeb
- Superglue
Kauj ruam 2: Programming
Txoj haujlwm no tau qhib tag nrho, yog tias koj xav hloov kho cov cai nws nyob ntawm kuv GitHub. Tab sis tsis tas yuav. Lub pob no tuaj yeem rov tsim dua yam tsis tau rov sau dua.
Koj tuaj yeem rub tawm cov lej ua ntej ua ke ntawm no.
Tsuas yog ntsaws rau hauv koj li ESP programmer thiab koj ESP8266 (Nco ntsoov txuas GPIO_02 rau GND kom nkag mus rau hom kev ua haujlwm) thiab xa cov ntaub ntawv.bin thiab cov ntaub ntawv SPIFFS.
Nws yog ib qho tseem ceeb heev kom xa cov ntaub ntawv SPIFFS, tsis muaj nws cov cai yuav tsis khau raj. Thiab tom qab tshem tus pin headers yuav tsum tau rov qab mus rau reprogram yuav ua rau dhuav heev.
Kauj Ruam 3: Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
Thaum ESP khau looj plab hlaub, nws nyeem thiab cais tawm 'config.jsn' cov ntaub ntawv los ntawm SPIFFS cov ntaub ntawv kaw lus siv ArduinoJSON lub tsev qiv ntawv. Qhov no thauj tag nrho cov teeb tsa teeb tsa mus rau qhov sib txawv.
Tom qab ntawd nws kuaj xyuas seb GPIO_03 [RX] txuas nrog hauv av yog tias nws yog nws yuav nkag mus rau kev teeb tsa hom.
Yog tias nws tsis yog nws yuav sim txuas rau WiFi thiab tom qab ntawd tus neeg rau zaub mov. Nws ua tiav GET thov thiab nkag mus pw tsaug zog kom txuag lub zog.
Hauv kev teeb tsa hom, koj tuaj yeem teeb tsa txhua qhov chaw. (ntau ntxiv ntawm qhov no ntawm qib 13)
Txij li kev txuag lub zog yog qhov tseem ceeb ntawm no, yog tias muaj dab tsi siv sijhawm ntev heev lossis yog txuas rau wifi/server tsis ua, nws yuav yooj yim ntsais tsib zaug sai thiab tom qab ntawd ntsais muag ntev los qhia qhov ua yuam kev thiab rov qab mus pw tsaug zog.
Yog tias txhua yam mus tau zoo, nws yuav ua ntsais ntsais tom qab ntawd ntsais muag ntev. Txhawm rau qhia nws ua tiav. Tom qab ntawd nkag mus pw tsaug zog.
Tseem xav paub? saib ntawm kuv GitHub.
Kauj ruam 4: Schematic
Qhov no yuav tsum pab koj tsim nws, hauv ob peb kauj ruam tom ntej.
Kauj Ruam 5: Desolder Tus Pin Header
Ua ntej tshaj, 100% paub tseeb tias koj tau teeb tsa ESP8266 kom raug thiab 100% paub tseeb tias koj tau tshaj tawm cov ntaub ntawv SPIFFS.
Tom qab ntawd thawj kauj ruam yog desolder 2x4 tus pin header, qhov no yuav cia peb ua peb lub pob me dua. Tab sis nws kuj txhais tau tias koj tsis tuaj yeem rov tsim dua yam tsis tau rov muag nws. Nco ntsoov tias txoj haujlwm thiab SPIFFS tau flashed.
Koj tseem yuav tuaj yeem rov teeb tsa cov chaw.
Qhov no yog qhov yooj yim dua nrog cov ntsiab lus taw qhia cov hlau thiab lub twj tso kua mis desoldering. Kuv lub tswv yim yog ua thawj choj tag nrho yim tus pin nrog cov laug, tom qab ua kom sov tag nrho lawv ib zaug thiab yank lub taub hau tawm nrog qee tus tweezers. Tom qab ntawd tom qab tshem cov laug ntau dhau, Kuv muab lub qhov los ntawm sab saum toj nrog hlau thiab nqus cov laug tawm nrog kuv lub twj tso kua mis hla hauv qab.
Kauj Ruam 6: Solder Hloov
Tom ntej no, koj yuav xav muab koj lub laub hloov pauv ntawm GND thiab RST. Hauv kuv rooj plaub lub khawm khawm tsuas yog tuab me ntsis, yog li kuv yuav tsum txiav lawv me ntsis nrog qee qhov snips. Nco ntsoov tias lub khawm tso tawm nrog lub rooj tsavxwm, txwv tsis pub nws yuav tawg dhau sijhawm nrog kev ntxhov siab ntawm kev raug thawb.
Kauj Ruam 7: Txuas CH_PD rau VCC
Txhawm rau tso cai ESP los ua tus lej, tsis txhob hnov qab txuas CH_PD rau VCC.
Kauj Ruam 8: Tshem Tawm Lub Hwjchim LED
Lub pob yuav tsum tau siv lub zog me me li sai tau. Thiab vim nws ib txwm nyob, lub zog coj yuav ib txwm siv ~ 4mA. Qhov no yuav txo lub roj teeb lub neej mus rau kaum ob teev. Yog li desolder nws los yog snap nws tawm.
Kauj Ruam 9: Hloov Kho Cov Txheej Txheem
Txhawm rau nkag mus rau kev teeb tsa hom, GPIO_03 [RX] xav tau txuas nrog GND. Txhawm rau ua kom yooj yim ua li ntawd kuv tau siv me ntsis qib uas tuaj yeem raug thawb rau sab kom ua qhov txuas.
Kauj Ruam 10: Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Nov yog qhov ntev tshaj plaws ntawm kev tsim. Koj yuav tsum tau muab lub roj teeb tso rau, tus tswj hluav taws xob thiab lub txuas txuas them raws li cov txheej txheem.
Txhawm rau kom txhua qhov haum hauv qhov chaw me me hauv qab ESP-01 Kuv yuav tsum tau xuab zeb nqes tus tswj qhov hluav taws xob TO92 pob. Nco ntsoov npaj koj cov txheej txheem ua ntej siv cov khoom siv, nws yuav nruj heev tab sis yuav tsum tseem ua tau.
Yog tias koj lub roj teeb loj dhau, koj tuaj yeem xaiv tshem tawm qhov ntsuas hluav taws xob. Qhov no yuav ua haujlwm tab sis yuav pheej hmoo ua rau ESP8266 puas tsuaj. Nws tsuas yog ntsuas kom nce mus txog qhov siab tshaj ntawm 3.6V, tab sis tau them LiPo them tag nrho 4.2V. Ua ntawm koj tus kheej txoj kev pheej hmoo.
Kauj ruam 11: Superglue Nws Toghether
Kauj ruam kawg kom txhua yam nyob hauv qhov chaw yog superglue txhua yam hauv qhov chaw.
Kauj ruam 12: Them
Txhawm rau them koj lub pob koj yuav xav tau qee yam ntawm LiPo lub charger, Kuv tsuas yog siv lub USB Li-Po lub rooj sib txuas dav dav txuas nrog lub khawm ntawm lub txuas txuas. Ceev faj tsis txhob hloov lub polarity ncig.
Kauj ruam 13: Kho
Koj yuav luag npaj siv koj lub khawm thawj zaug.
Txhawm rau nkag mus rau kev teeb tsa hom koj yuav tsum txuas GPIO_03 [RX] rau GND, qhov no yuav yooj yim dua yog tias koj tau siv tus pas nrig zoo li hauv qib 9. Tom qab ntawd los ntawm nias lub pob kom rov pib ESP, nws yuav tsum nkag mus rau kev teeb tsa. Tam sim no koj tuaj yeem txuas tus lej.
Tom qab ntawd koj tuaj yeem yooj yim:
- Txuas mus rau 'ESP_Button' WiFi Access Point, nrog tus password 'wifibutton'
- Mus ntsib https://192.168.4.1 qhib nplooj ntawv teeb tsa.
- Tom qab teeb tsa koj qhov txiaj ntsig, nyem rau ntawm 'Save' khawm ces 'Restart'
- Koj lub pob yuav rov pib dua, ua qhov kev thov thiab nkag mus pw tsaug zog.
Nco ntsoov tsuas yog ntaus lub npe nyob hauv tus tswv tsev, tsis muaj https:// lossis https:// thiab cais qhov seem ntawm URL hauv URI teb.
Kauj Ruam 14: Sim Nws
Koj yuav tsum yog txhua tus mus tau zoo, nias lub pob yuav ua rau koj tau txais kev thov.
Cov vis dis aus saum toj no yog kuv khawm txuas rau kuv lub vev xaib thiab IFTTT, tshaj tawm cov kev cai tsim tawm tweet.
Kev teeb tsa GET qhov kev thov tawm ntawm qhov kev qhia no, tab sis koj yuav tsum yooj yim tuaj yeem txuas qhov no rau IFTTT lossis lwm yam kev pabcuam. Yog tias koj txaus siab sau qee qhov kev cai PHP thiab tswj nws ntawm koj tus kheej lub vev xaib zoo li kuv tau ua koj yuav tseem tuaj yeem saib xyuas lub roj teeb.
Yog tias koj muaj teeb meem lossis xav tau kev pab daws teeb meem thov tawm lus hauv qab no.
Txhua tus neeg tau txais tos los muab tswv yim yuav ua li cas txhim kho qhov no, zoo li tej zaum yog rooj plaub? xD ua
Tawm lus tawm yog tias koj yog Kws Kho Mob Tus Kws Kho Mob.
Cheers!
Kauj Ruam 15: Hloov Kho: 3D Luam Ntawv Case
Tom qab qee lub sijhawm siv khawm khawm Kuv tau txiav txim siab los ua rooj plaub rau nws. STL thiab Fusion 360 cov ntawv txuas nrog.
Pom zoo:
Tau Txais Ntawv Ceeb Toom Email Thaum Ib Qho Chaw ntawm ThingSpeak Tsis Tau Hloov Kho Ib Ntus: 16 Kauj Ruam
Tau Txais Ntawv Ceeb Toom Email Thaum Ib Qho Chaw ntawm ThingSpeak Tsis Tau Hloov Kho Rau Ib Lub Sijhawm: Zaj dab neeg keeb kwm Los ntawm kev siv cov kev cai tsim lub xov tooj ntawm tes app, Kuv tuaj yeem saib xyuas thiab cuam tshuam nrog cov cuab yeej siv tau yooj yim hauv txhua lub tsev cog khoom. Kuv tuaj yeem qhib / kaw qhov yeej
Rov Qab/Rov Rov Los Li-Poob (Lithium Polymer) Roj Teeb!: 6 Cov Kauj Ruam
Rov Qab/Rov Rov Los Li-Poob (Lithium Polymer) Roj Teeb!: Roj teeb LiPo yuav tsum tsis txhob tso qis dua 3.0V/cell, lossis nws yuav ua rau lawv puas tas mus li. Ntau tus neeg them nyiaj tsis txawm tso cai rau koj them lub roj teeb LiPo qis dua 2.5V/cell. Yog li, yog tias koj yuam kev khiav koj lub dav hlau/tsheb ntev dhau, koj tsis muaj koj qhov qis
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
UDuino: Tus Nqi Tsawg Tus Nqi Arduino Tau Txais Kev Txhim Kho Kev Txhim Kho: 7 Cov Kauj Ruam (nrog Duab)
UDuino: Tus Nqi Tsawg heev Arduino Compatible Development Board: Arduino boards yog qhov zoo rau kev tsim qauv. Txawm li cas los xij lawv tau txais qhov kim dua thaum koj muaj ntau txoj haujlwm sib xws lossis xav tau ntau lub rooj tswj hwm rau txoj haujlwm loj dua. Muaj qee qhov zoo, pheej yig dua (Boarduino, Freeduino) tab sis
Yuav Ua Li Cas Rov Qhib Cov Ntawv Thaum Koj Rov Nkag Nkag Rov Los Tom Qab Koj Logoff: 5 Kauj Ruam
Yuav Ua Li Cas Rov Qhib Cov Ntawv Thaum Koj Rov Nkag Los Tom Qab Koj Logoff: Okay yog li qhov xwm txheej no, koj tab tom siv lub khoos phis tawj nrog ntau thiab ntau ntawm koj cov ntawv qhib tau qhib … Tom qab ntawd, koj niam tuaj txog tsev ntxov dua qhov xav tau! Koj paub zoo tias yog nws ntes koj siv lub khoos phis tawj, qhov twg koj yuav tsum tau pw hauv txaj vim yog