Cov txheej txheem:

IoT Notifier Siv ESP-12E: 7 Cov Kauj Ruam (nrog Duab)
IoT Notifier Siv ESP-12E: 7 Cov Kauj Ruam (nrog Duab)

Video: IoT Notifier Siv ESP-12E: 7 Cov Kauj Ruam (nrog Duab)

Video: IoT Notifier Siv ESP-12E: 7 Cov Kauj Ruam (nrog Duab)
Video: 🚀 RUTUBE и ТОЧКА. Разработка РУТУБА за 5 часов *БЕЗ ВОДЫ* [Next / React / Nest / PostgreSQL / Redux] 2024, Hlis ntuj nqeg
Anonim
IoT Notifier Siv ESP-12E
IoT Notifier Siv ESP-12E

Puas nyob hauv tsev deb ntawm koj tus hlub? Thaum lub sijhawm nyuaj no, txoj haujlwm me me lom zem no yuav tau sim ua kom luag ntxhi rau koj lub ntsej muag.

Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav ua li cas tso saib cov ntawv ceeb toom los ntawm koj lub xov tooj ntawm tes hauv daim ntawv ntawm kev ua kom pom ntawm lub Ceeb Toom.

Cia peb pib

Khoom siv

ESP12E WiFi Module x1

WS2812B LEDs x 27

AMS1117 3.3V Voltage Regulator x1

10k SMD (0805) Resistor x4

100nF SMD (0805) Resistor x1

NodeMCU rau kev ua haujlwm ESP12E

Kauj Ruam 1: Txoj Kev Npaj

Txoj Kev Npaj
Txoj Kev Npaj
Txoj Kev Npaj
Txoj Kev Npaj

Lub phiaj xwm yog siv IFTTT (Yog Qhov No Yog Qhov ntawd) txhawm rau tshuaj xyuas cov xwm txheej tshwj xeeb tshwm sim ntawm lub xov tooj ntawm tes uas tom qab ntawd ua rau lub vev xaib thov. Dweet yog siv los tshaj tawm cov ntaub ntawv los ntawm IFTTT thiab tom qab ntawd tau txais tib cov ntaub ntawv siv ESP12E.

Thaum kuv pib nrog txoj haujlwm lub tswv yim yog ua kom ceeb toom uas qhia rau kuv paub yog tias muaj xov, hu, thiab lwm yam los ntawm ib tus neeg tshwj xeeb. Tab sis tom qab ntawd kuv nkag siab tias ntau yam tuaj yeem ua tiav siv IFTTT. Yog li, kuv txiav txim siab ntxiv cov ntawv ceeb toom zoo li roj teeb qis, khawm widget thiab Twitter. Koj tuaj yeem ntxiv cov xwm txheej los ntawm IFTTT.

Kauj Ruam 2: Nws Ua Haujlwm Li Cas?

Yog tias muaj xwm txheej (lus, roj teeb tsawg, hu xov tooj, thiab lwm yam) tshwm sim, Tom qab ntawv thov lub vev xaib tau ua rau Dweet thiab "tshaj tawm" cov ntaub ntawv hauv JSON daim ntawv.

Piv txwv li, yog tias lub roj teeb poob qis dua 15%, ib qho xwm txheej tau tshwm sim uas ua rau lub vev xaib thov mus rau https://dweet.io/dweet/for/mythingname?Noti=batt. Qhov no ntxiv "Noti": "batt" rau JSON code. Noti yog 'tus yuam sij' thiab kev sib ntaus yog nws 'tus nqi'.

ESP12E txuas mus rau Dweet thiab "tau txais" cov ntaub ntawv tshaj tawm siv https://dweet.io/get/latest/dweet/for/mythingname thiab txheeb xyuas JSON saum toj no txhawm rau txheeb xyuas tus nqi ntawm "Noti". Txhua qhov xwm txheej tau muab tus nqi sib txawv thiab qhov no yog li cas ESP12E paub qhov xwm txheej tau tshwm sim.

ESP-12E tom qab ntawd nthuav qhia cov duab tas mus li kom txog thaum koj nias lub pob nyob tom qab.

Kauj Ruam 3: Teeb IFTTT thiab Dweet

Teeb IFTTT thiab Dweet
Teeb IFTTT thiab Dweet
Teeb IFTTT thiab Dweet
Teeb IFTTT thiab Dweet
Teeb IFTTT thiab Dweet
Teeb IFTTT thiab Dweet

Teeb tsa Dweet:

  • Koj tsuas yog xav tau lub npe rau yam.
  • Txhawm rau txheeb xyuas seb nws puas muaj, ntaus
  • Yog tias koj tau txais cov lus teb raws li qhia hauv daim duab, tom qab ntawv nws muaj.

Teeb tsa IFTTT Applet:

  • Mus ntsib IFTTT thiab tsim ib tus as khauj
  • Nyem rau ntawm "Tshawb" thiab tom qab ntawd "Ua rau koj tus kheej Applets los ntawm kos"
  • Nyem rau "Qhov no" thiab xaiv "Android Roj teeb" los ntawm cov npe
  • Xaiv qhov txhais - "Roj teeb poob qis dua 15%"
  • Nyem rau ntawm "Ntawd" thiab xaiv "Webhooks" los ntawm cov npe
  • Xaiv qhov kev txiav txim - "Ua lub vev xaib thov"
  • URL -
  • Txoj Kev - POST
  • Cov ntsiab lus hom - ntawv/dawb
  • Nyem rau ntawm "Tsim Ua"

Rub tawm IFTTT Android/iOS app thiab nkag mus rau hauv koj tus lej nyiaj. Lub app yuav cia li nug koj kom tso cai nkag mus rau ntau yam kev pabcuam nyob ntawm cov applets tsim. Lwm qhov, koj yuav tsum tau tso cai rau tus kheej.

Hauv app, mus rau Chaw> Kev xaiv ua haujlwm thiab ua kom "Ua Haujlwm Qhov Chaw, Android Roj Teeb thiab WiFi txuas tau sai dua".

Ib yam li ntawd, koj ua ntau applets. Tsuas yog hloov qhov URL uas yog qhov siab

Android Roj teeb - sib ntaus

Twitter - Twitter

Khawm - khawm

Kauj Ruam 4: PCB Tsim

PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim

Koj tuaj yeem siv cov software uas koj nyiam rau tsim PCBs. Kuv tab tom siv EasyEDA raws li nws tsim nyog rau cov neeg tshiab zoo li kuv. Kuv tau txuas nrog schematic. Nyem qhov no mus rub cov ntaub ntawv Gerber rau PCB.

Nco ntsoov tias tsis muaj lub dav hlau hauv av qis dua WiFi tus kav hlau txais xov ntawm ESP-12E tus qauv.

Rau lub hom phiaj ua haujlwm, cov ntaub qhwv tau muab rau TX, RX, RST, D3 thiab GND.

Thaum koj tau ua tiav kev tsim PCB, tau txais nws los ntawm cov chaw tsim khoom uas koj xaiv. Kuv xaiv JLCPCB vim nws qhov kev pabcuam sai.

Kuv tau siv lub 27 LEDs siv qhov rov ua dua tshiab siv cov ntaub hlau. Kuv yuav tsum tau muab tes laug ESP-12E tus qauv ntxiv rau qee qhov lwm yam SMD cov khoom nyob tom qab ntawm lub rooj tsavxwm.

Yuam kev uas kuv tau ua:

  1. Kuv tsis tau tshuaj xyuas cov txheej txheem thiab yog li nco qhov txuas GND mus rau LED. Kuv yuav tsum tau khawb daim npog qhov ncauj tawm ntawm daim phiaj av thiab txuas cov laug txuas.
  2. Kuv tsis tau ntxiv 100nF capacitor ntawm qhov tso tawm ntawm qhov ntsuas hluav taws xob. ESP-12E rub ntau dua tam sim no thaum nws txuas rau WiFi. Thaum tsis muaj lub capacitor, qhov hluav taws xob poob qis txaus kom rov pib dua ESP-12E.

Tsis txhob txhawj! Kuv tau muab cov ntaub ntawv kho dua rau PCB.

Kauj ruam 5: Lub sijhawm rau Coding

Sijhawm rau Coding
Sijhawm rau Coding
Sijhawm rau Coding
Sijhawm rau Coding
Sijhawm rau Coding
Sijhawm rau Coding

Muaj ntau txoj hauv kev uas ESP-12E tuaj yeem ua haujlwm tau. Koj tuaj yeem nyeem txog nws ntawm no. Kuv yuav siv NodeMCU los ua haujlwm rau nws thiab yog vim li cas kuv thiaj tau ua cov ntaub qhwv rau RX, TX, RST, D3 thiab GND. Nco ntsoov tias pawg thawj coj tau siv ON (los ntawm 5V) kom 3.3V muaj rau ESP-12E. Ua qhov kev sib txuas rau NodeMCU raws li sau rau ntawm pawg thawj coj. Txuas EN (Pab Tau) tus pin ntawm NodeMCU rau GND. Qhov no ua tsis taus tus qauv ntawm NodeMCU kom cov qauv ntawm peb pawg thawj coj tuaj yeem ua haujlwm. Txuas NodeMCU rau koj lub khoos phis tawj thiab qhib.ino cov ntawv txuas nrog ntawm no.

Ua ntej koj rub tawm, ua cov kev hloov hauv qab no:

  1. Sau koj li WiFi SSID
  2. Sau koj tus password WiFi
  3. Sau koj lub npe dweet 'yam' tshwj xeeb.

Nruab ArduinoJson thiab FastLED cov tsev qiv ntawv los ntawm tus thawj tswj tsev qiv ntawv.

Nco tseg: Xaiv qhov qis dua (5.13.5) thaum txhim kho ArduinoJson.

Xaiv Pawg Thawj Coj> NodeMCU 1.0 thiab ntaus Upload!

Kauj Ruam 6: Luam Ntawv 3D

3D Luam Ntawv
3D Luam Ntawv

Tsis muaj dab tsi zoo nkauj ntawm no. Tsuas yog sawv ntsug yooj yim nrog lub cev zoo li lub plawv.

Lub rooj muag zaub muaj cov channel los ntawm qhov uas USB cable taug kev los ntawm lub hauv paus mus rau lub rooj tsavxwm. Kuv tau tsim lub cev tseem ceeb xws li nws yog kev sib txhuam haum.

Kuv tseem tabtom txhim kho tsim. Kuv yuav hloov kho cov ntaub ntawv thaum kuv ua tiav nrog nws.

Kauj ruam 7: Txaus siab rau

Plug nws rau lub xov tooj ntawm tes thiab tsis txhob hnov qab ceeb toom!

Ua tsaug rau koj lo rau qhov kawg. Vam tias koj txhua tus nyiam txoj haujlwm no thiab kawm paub qee yam tshiab hnub no. Qhia rau kuv paub yog tias koj ua ib qho rau koj tus kheej. Sau npe yuav ua rau kuv tus YouTube channel rau ntau txoj haujlwm zoo li no. Ua tsaug ntau ntau!

Kev sib tw plawv
Kev sib tw plawv
Kev sib tw plawv
Kev sib tw plawv

Qhov khoom plig thib ob hauv Kev Sib Tw Lub Plawv

Pom zoo: