Cov txheej txheem:

DIY Motion Sensor (ESP - 8266): 5 Kauj Ruam
DIY Motion Sensor (ESP - 8266): 5 Kauj Ruam

Video: DIY Motion Sensor (ESP - 8266): 5 Kauj Ruam

Video: DIY Motion Sensor (ESP - 8266): 5 Kauj Ruam
Video: PIR Motion Sensor Light | Motion Sensor Module | PIR Module | How to Use PIR Motion Sensor | 2024, Hlis ntuj nqeg
Anonim
DIY Tsab ntawv tsa suab Sensor (ESP - 8266)
DIY Tsab ntawv tsa suab Sensor (ESP - 8266)
DIY Tsab ntawv tsa suab Sensor (ESP - 8266)
DIY Tsab ntawv tsa suab Sensor (ESP - 8266)
DIY Tsab ntawv tsa suab Sensor (ESP - 8266)
DIY Tsab ntawv tsa suab Sensor (ESP - 8266)

Txoj haujlwm no yog tsim los rau DIY kev nyab xeeb hauv tsev. Qhov haujlwm no yog ua los ntawm Konnected project. Konnected coj lub neej tshiab rau cov tswv tsev uas muaj lub ntsej muag ua ntej pom lub suab los ntawm ADT thiab lwm lub tuam txhab. Los ntawm muab nws hloov kho tshiab nrog thev naus laus zis thaum tsis muaj tus nqi them txhua hli. Kuv txhawb koj kom txheeb xyuas https://konnected.io yog tias koj xav paub ntau ntxiv.

Kuv yog tus siv loj ntawm Samsung Smartthings platform thiab txoj haujlwm no tau tsim los rau qhov ntawd. Ib qho teeb meem kuv tau tawm ntawm lub qhov rooj yog kuv lub tsev tsis tau txuas ua ntej. Kuv raug ntxias kom xaim kuv lub tsev tab sis qhov ntawd ua haujlwm ntau dhau. Yog li kuv tau tsim cov ntawv luam tawm 3D kom tuav lub cim suab thiab ESP-8266 uas tau teeb nrog Konnected rau ib puag ncig 8 daus las. Ua ntej peb pib yog kuv paub tias kuv tuaj yeem yuav GE Z-Wave Plus Wireless Smart Sensor; tab sis nws lom zem los tsim khoom, kawm qee yam tshiab, thiab txuag nyiaj me ntsis. Kuv tsis suav nrog Smartthings hub hauv tus nqi. Kuv cia siab tias koj yuav tau teeb tsa ntawd.

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Kuv TSIS TXAUS SIAB, sawv cev, lossis tau txais txhua yam rau qhov piv txwv hauv qab no.

Smartthings hub

ESP - 8266

DIY PIR sensor

3D Tshuab Luam Ntawv (Yog tias koj tsis muaj, muaj cov vev xaib online uas yuav luam tawm tus nqi.)

  • Hlau https://www.amazon.com/Multicolored-Breadboard-Du… (txhua lub xov hlau yuav tsum ua haujlwm)
  • Micro USB charger thiab lub zog cib

Kauj ruam 2: Cov ntaub ntawv thiab Software rub tawm

Cov khoos kas siv yog rau lub khoos phis tawj Windows.

NODEMCU Firmware Programmer

ESPlorer - Qhov no yuav siv los nyem cov ntaub ntawv lua

Konnected software thiab thawj phau ntawv qhia

Cov ntawv luam tawm 3D

Kauj Ruam 3: Teeb Software / Teeb

Flashing lub firmware

Txuas ESP 8266 rau hauv koj lub computer.

Qhib lub nodemcu-flasher-master nplaub tshev (uas yog hauv koj cov ntawv rub tawm)

Xaiv yeej 32 lossis yeej 64 (nyob ntawm koj lub computer)

Qhib cov ntawv tso tawm thiab nyem ob npaug rau ESP8266Flasher.exe

NodeMcu firmware programmer

Hauv kev ua haujlwm tab txheeb xyuas qhov chaw nres nkoj com yog qhov raug

Xaiv lub Config tab

Nyem rau thawj lub cim iav

Cov ntaub ntawv tshawb fawb yuav tsum qhib. Nrhiav cov ntawv sib txuas-firmware-X-X-X.bin. (rub tawm- txuas kev nyab xeeb tus tswv -firmware)

Xaiv cov haujlwm tab

Nyem nyem. Qhov kev nce qib yuav tshwm nyob ze rau hauv qab

Tos kom txog thaum lub flash ua tiav ua ntej koj mus txuas ntxiv

ESPlorer -Txhim kho cov ntaub ntawv lua

Qhib ESPlorer program

Txheeb xyuas lub npov uas nyob ib sab tom ntej kom pub dawb tau teeb tsa rau 115200 -click qhib (nws yuav hloov mus kaw) -lub RTS khawm ob peb zaug kom koj pom (Konnected Firmware)

Nyem upload ze rau hauv qab

Cov ntaub ntawv tshawb fawb yuav qhib. Nrhiav cov src nplaub tshev (hauv kab ntawv txuas kev ruaj ntseg mater) Nias tswj A kom xaiv txhua

Nyem qhib Sab yuav qhia koj qhov kev nce qib

Txuas rau Wifi thiab teeb tsa Smartthings

Kuv ua raws cov lus qhia ntawm lub vev xaib txuas mus teeb Wifi thiab Smartthings

Kauj Ruam 4: Kev thaiv kab

Thaiv
Thaiv

Siv cov xaim hauv qhov kev piav qhia lossis ib qho uas koj yuav tau pw ib puag ncig.

  • Txuas

    • Av los ntawm PIR mus rau ib qho GND ntawm ESP 8266
    • Cov zis los ntawm PIR mus rau tus pin D1 ntawm ESP 8266
    • 5 v pin rau 3.3v ntawm ESP 8266 (yog qhov no yuav ua haujlwm)

Fais fab

Txuas ESP 8266 rau hauv Hwj chim, tos ob peb feeb.

sim nws los ntawm kev txav mus los ntawm lub sensor.

Yog tias txhua yam ua haujlwm, maj mam xaub cov khoom siv hluav taws xob rau hauv rooj plaub 3D luam tawm.

Kauj Ruam 5: Kawg Kuv Qhov Kev Paub

Kuv hais txog cov teeb meem/ kev hloov pauv uas kuv yuav tsum tau ua hauv qhov xwm txheej koj khiav mus rau lawv.

Tsis paub txav? Kho qhov rhiab heev -

Tawm mus txhua feeb? Kuv yuav tsum tau hloov lub Sensor thiab cov xov hlau.

Kuv siv 2 Amp them nyiaj thaiv.

Tom qab ib lub lim tiam ntawm kev siv, Kuv teeb tsa kev siv tshuab hauv Smartthings app rau kuv chav teeb.

Qhov ntawd yog qhwv. Kuv vam tias koj txaus siab rau txoj haujlwm.

Pom zoo: