Cov txheej txheem:

WiFi Pocket Remote: 4 Kauj Ruam
WiFi Pocket Remote: 4 Kauj Ruam

Video: WiFi Pocket Remote: 4 Kauj Ruam

Video: WiFi Pocket Remote: 4 Kauj Ruam
Video: Wait what 😱 Flipper Zero 🐬 2024, Kaum ib hlis
Anonim
WiFi Pocket Chaw Taws Teeb
WiFi Pocket Chaw Taws Teeb
WiFi Pocket Chaw Taws Teeb
WiFi Pocket Chaw Taws Teeb

Cov chaw taws teeb yooj yim tuaj yeem ua ke rau cov phiaj xwm cuam tshuam nrog WiFi. Koj tuaj yeem ua ib qho los ntawm cov khoom hauv qab no:

  • Peb lub khawm tactile*
  • ESP8266 v2 (Amica) IoT board (thiab cov yas qhwv nws tuaj hauv)
  • 0.91 "generic suav LCD screen, adafruit lub tsev qiv ntawv sib xws
  • 3x7 centimeters pcb protoboard
  • 9V roj teeb
  • 9V roj teeb cable
  • On/Off hloov aka 2-txoj hauj lwm swb hloov*
  • Ib 100 ohm resistor*
  • Peb 1000 ohm resistors*
  • nplaum rov qab velcro (Tsis teb los tau)

*Txuag nyiaj los ntawm khaws cov khoom siv no los ntawm lub tso suab tawg lossis cov khoom siv tsis zoo (sim koj lub khw muag khoom hauv zos)

Nrog cov cuab yeej hauv qab no:

  • Tsom iav kev nyab xeeb
  • Soldering Hlau
  • Solder (Kuv siv 0.8 hli)
  • Cov kua nplaum kub kub nrog ib daim nplaum nplaum
  • Pab txhais tes (zoo nyob ntawm no) (pheej yig ntawm no)
  • Cov tshuab txiav hlau tsim los txiav cov xov hlau me yog li lawv yaug nrog cov nplaim dej
  • Needlenose Pliers
  • Micro USB kab
  • Lub khoos phis tawj nrog Arduino IDE thiab ESP8266 addon tau teeb tsa
  • Hnab looj tes **
  • Ntsia Hlau **
  • Rauj **
  • Cordless Laum **

** tsuas yog xav tau yog tias koj npaj yuav khaws koj cov khoom

Nws kuj tseem tsim nyog hais tias qhov kev tswj chaw taws teeb no tuaj yeem siv rov qab - txhawm rau txheeb xyuas cov ntaub ntawv tau txais los ntawm lwm qhov.

Kauj Ruam 1: Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter

Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter
Ntsuas Haum Txhua Yam ntawm Protoboard. Glue Down LCD. Kuaj cov Resistors thiab Khawm Pins Nrog Multimeter

Nco ntsoov tias koj tab tom siv nodeMCU "v2" los ntawm Amica, raws li "v3" Lolin version loj dua me ntsis thiab yuav tsis haum!

Khawm tsis tas yuav muaj plaub tus pin - tab sis thaum lawv ua, koj yuav tsum txheeb xyuas lawv. Teem koj lub multimeter los nyeem kev tawm tsam. Kov ob tus pin. Yog tias qhov tsis kam nyeem xoom, cov pins txuas nrog ib leeg. Nws yooj yim dua los ntsuam xyuas cov nyees khawm thaum lawv zaum ntawm lub protoboard.

Cov neeg tawm tsam tuaj yeem dag koj! Piv txwv li, peb xav tau peb 1k resistors, uas yog xim av, dub, liab. Cov qhab liab tuaj yeem yooj yim tsis meej pem nrog txiv kab ntxwv, uas xaiv 10k resistor! Tsis tas li, txhua lub sijhawm koj khaws ib feem, nws yog qhov zoo los tshuaj xyuas tias nws tseem ua haujlwm raug, yog tias ua tau. Tsuav ntev li txhua tus 1k resistors nyeem qee yam ze rau 1, 000 ohms, koj zoo mus.

Kauj Ruam 2: Cuam Tshuam On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Tiv Thaiv, Tom qab ntawd NodeMCU. Saib Schematic

Solder On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Hluav Taws Xob, Tom qab ntawd NodeMCU. Saib Schematic
Solder On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Hluav Taws Xob, Tom qab ntawd NodeMCU. Saib Schematic
Solder On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Hluav Taws Xob, Tom qab ntawd NodeMCU. Saib Schematic
Solder On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Hluav Taws Xob, Tom qab ntawd NodeMCU. Saib Schematic
Solder On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Hluav Taws Xob, Tom qab ntawd NodeMCU. Saib Schematic
Solder On/Off Hloov Ua Ntej, Tom qab ntawd Cov Hluav Taws Xob/Khawm/Cov Hluav Taws Xob, Tom qab ntawd NodeMCU. Saib Schematic

TinkerCAD tau siv los tsim cov duab kos duab. Txij li TinkerCAD tsis muaj NodeMCU hauv cov npe khoom uas muaj, kuv siv cov kab ntawv taub hau los sawv cev rau nws. Cov ntawv tau ntxiv nrog tus kws yees duab.

Feem ntau ntawm cov Circuit Court yuav raug them los ntawm NodeMCU thiab lub roj teeb, yog li nws yog qhov tseem ceeb los tshuaj xyuas txhua yam ob zaug. Saib xyuas tias koj lub zog hloov pauv yuav tsis thaiv qhov chaw nres nkoj usb ntawm NodeMCU. Siv lub pliers los qhia txog 9V roj teeb xov hlau, ib zaug, dhau los ntawm lub qhov ntsaws. Qhov no yuav tiv thaiv cov xov hlau tsis tawg thaum lub sijhawm. Tom qab koj tau siv tag nrho cov seem hauv Circuit Court, Kuv pom zoo tsuas yog siv cov NodeMCU tus pin uas koj yuav siv.

Tom ntej no los tiv thaiv yas zoo li qub. Txiav ib daim tawm ntawm lub hnab NodeMCU tuaj. Hotglue cov yas rau sab hauv qab ntawm tus tiv thaiv qhov twg lub roj teeb yuav mus. Qhov no yuav tiv thaiv cov laug thiab tus pin los ntawm luv luv tiv thaiv lub roj teeb casing, lossis lwm yam uas koj yuav teeb tsa cov chaw taws teeb nyob saum. Tsis tas li, cov yas muab cov nplaim du uas tso lub roj teeb.

Kauj Ruam 3: Kev Xeem Kho Vajtse

Kev Xeem Kho Vajtse
Kev Xeem Kho Vajtse
Kev Xeem Kho Vajtse
Kev Xeem Kho Vajtse

Hloov chaw ntawm kev nyeem lub digital on/off teeb liab, peb tab tom nyeem cov analog voltage. Qhov no tso cai rau peb tso tag nrho peb lub khawm ntawm ib tus pin. Txhua lub khawm muaj qhov sib txawv sib txawv, uas yog tom qab ntawd txuas nrog qhov faib hluav taws xob thaum koj nias lub pob. NodeMCU yuav nyeem qhov nruab nrab ntawm 0-3.3 volts thiab muab tus nqi sib xws ntawm 0-1024. Kuv suav nrog cov duab kos uas yuav tua lub vijtsam lcd thiab tso saib tus nqi raug ntes los ntawm tus pin A0. Qhov no yuav tso cai rau koj qhia seb cov nyees khawm ua haujlwm li cas. Cov txiaj ntsig kuv tau ntes, ntawm sab laug mus rau sab xis, yog 545, 520, thiab 365 tab sis koj li yuav txawv me ntsis. Thaum tsis muaj cov nyees khawm raug nias, tus nqi sib xws yuav tsum yog ntawm 0-15.

Kauj Ruam 4: Xaiv Qhov Kev Xaiv WiFi

Xaiv Kev Xaiv WiFi
Xaiv Kev Xaiv WiFi

Muaj ntau txoj hauv kev los teeb tsa cov chaw taws teeb los tham nrog lwm cov khoom siv hauv WiFi thiab txawm tias hla hauv is taws nem. Txoj kev koj xaiv yuav nyob ntawm koj qhov xwm txheej tshwj xeeb. Nws kuj tseem tsim nyog hais tias qhov kev tswj chaw taws teeb no tuaj yeem siv rov qab (txhawm rau txheeb xyuas cov ntaub ntawv tau txais los ntawm lwm qhov). Ob txoj hauv kev loj uas kuv tau pom yog HTTP thiab MQTT. Nov yog qee qhov kev qhia uas koj tuaj yeem ua raws ntawm no:

HTTP Software Qhia

Raspberry Pi MQTT Teeb Qhia Qhia

MQTT Software Tutorial

PubNub Tutorial

Kuj txheeb xyuas cov piv txwv suav nrog NodeMCU lub tsev qiv ntawv kho vajtse (duab)!

Tsaug rau kev nyeem ntawv! Muaj ntau txoj hauv kev koj tuaj yeem xaiv los nthuav raws qhov kev tswj chaw taws teeb no ib zaug koj tau txais qhov dai ntawm nws. Los ntawm txhua txoj hauv kev, tshaj tawm koj cov txiaj ntsig. Kuv yuav nyiam saib yuav ua li cas nws tshwm sim!

Pom zoo: