Cov txheej txheem:

Me me ESP8266 Dash-Button (Rov Kho Tau): 15 Kauj Ruam
Me me ESP8266 Dash-Button (Rov Kho Tau): 15 Kauj Ruam

Video: Me me ESP8266 Dash-Button (Rov Kho Tau): 15 Kauj Ruam

Video: Me me ESP8266 Dash-Button (Rov Kho Tau): 15 Kauj Ruam
Video: skibidi toilet multiverse 023 bloopers 2024, Kaum ib hlis
Anonim
Me me ESP8266 Dash-Button (Rov Kho Tau)
Me me ESP8266 Dash-Button (Rov Kho Tau)
Me me ESP8266 Dash-Button (Rov Kho Tau)
Me me ESP8266 Dash-Button (Rov Kho Tau)
Me me ESP8266 Dash-Button (Rov Kho Tau)
Me me ESP8266 Dash-Button (Rov Kho Tau)

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

Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
Cov Ntaub Ntawv thiab Cov Cuab Yeej Xav Tau
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

Programming
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)

Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
Txoj Cai Ua Haujlwm Li Cas (Yog tias Koj Xav Tau, Txwv Tsis Pub Cia Li Hla)
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

Schematic
Schematic

Qhov no yuav tsum pab koj tsim nws, hauv ob peb kauj ruam tom ntej.

Kauj Ruam 5: Desolder Tus Pin Header

Desolder tus Pin Header
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

Solder Hloov
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

Txuas CH_PD rau VCC
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

Tshem lub hwj chim LED
Tshem lub hwj chim LED
Tshem lub hwj chim LED
Tshem lub hwj chim 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

Solder Configuration Hloov
Solder Configuration Hloov

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

Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
Ntxiv Cov Khoom Siv Hluav Taws Xob, Tus Tswj Xyuas thiab Txuas Txuas
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

Superglue Nws Toghether
Superglue Nws Toghether
Superglue Nws Toghether
Superglue Nws Toghether
Superglue Nws Toghether
Superglue Nws Toghether

Kauj ruam kawg kom txhua yam nyob hauv qhov chaw yog superglue txhua yam hauv qhov chaw.

Kauj ruam 12: Them

Them
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

Kho
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:

  1. Txuas mus rau 'ESP_Button' WiFi Access Point, nrog tus password 'wifibutton'
  2. Mus ntsib https://192.168.4.1 qhib nplooj ntawv teeb tsa.
  3. Tom qab teeb tsa koj qhov txiaj ntsig, nyem rau ntawm 'Save' khawm ces 'Restart'
  4. 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

Image
Image

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

Hloov Kho: 3D Luam Ntawv Case
Hloov Kho: 3D Luam Ntawv Case
Hloov Kho: 3D Luam Ntawv Case
Hloov Kho: 3D Luam Ntawv Case
Hloov Kho: 3D Luam Ntawv Case
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: