Cov txheej txheem:

ESP8266/ESP-01 Arduino Powered Leak Detector: 3 Cov Kauj Ruam (nrog Duab)
ESP8266/ESP-01 Arduino Powered Leak Detector: 3 Cov Kauj Ruam (nrog Duab)

Video: ESP8266/ESP-01 Arduino Powered Leak Detector: 3 Cov Kauj Ruam (nrog Duab)

Video: ESP8266/ESP-01 Arduino Powered Leak Detector: 3 Cov Kauj Ruam (nrog Duab)
Video: Make a WiFi smart plug using Esp 01 2024, Kaum ib hlis
Anonim
Image
Image
Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau

Dej puas yog cov khoom zoo heev? Tsis ntau npaum li cas thaum nws raug yuam kom tawm hauv nws lub tsev thiab pib ua luam dej nyob ib puag ncig koj lub tsev hauv av. Kuv paub qhov no yog qhov 'tom qab qhov tseeb' txoj haujlwm, tab sis kuv vam tias nws tuaj yeem pab lwm tus kom tsis txhob muaj dej nyab thiab puas tsuaj. Peb lub rhaub dej kub lub tank nthuav dav tau tso lub qhov dej tawm tsis ntev los no thiab pib txau dej nrog npau taws. Ua tsaug rau lub qhov rooj qhov rooj nws teeb tom qab muaj nws cov aqueous projectile path uas txo qis kev puas tsuaj. Qhov ntawd … thiab qhov tseeb uas kuv tau hnov lub suab nrov nrov tau cawm peb … Lub sijhawm no. Yog tias kuv tau teeb tsa Gizmo koj yuav pom ntawm no, Kuv yuav tau hnov nws ntau sai dua. Tus ncaws pob yog, Kuv teeb qee yam zoo sib xws rau xyoo tas los no tsuas yog "saib" ib puag ncig nrog qee yam ntawm kuv cov khoom ua si. Hindsight Mannn! Cov lus qhia tshwj xeeb no yog rau lub hauv paus ntsuas pom uas tsuas yog ceeb toom nrog lub tswb nrov thiab pom pom LED. Koj tuaj yeem pom daim vis dis aus ntawm cov ntawv no ntawm no.

Kauj ruam 1: Kho vajtse - Yam Koj Yuav Tsum Tau:

Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
  • Kuv TSIS TXAUS SIAB, sawv cev, lossis tau txais txhua yam rau qhov piv txwv hauv qab no.
  • ESP8266 ESP-01 ** Koj tuaj yeem khaws ESP thiab Tus Kws Ua Haujlwm raws li pob ntawv cog lus ntawm no **
  • Programmer ** Koj tuaj yeem khaws ESP thiab Tus Kws Ua Haujlwm raws li pob ntawv cog lus ntawm no **
  • Mini Breadboard Cov
  • LED (Zoo nkauj nyab xeeb thawj koom ruam koj twb muaj qee qhov tso tseg ib puag ncig nrog koj cov khoom GEEK)
  • Piezo Buzzer Cov
  • Cov neeg dhia
  • ESP01 Breadboard Adapter
  • Dej/Los Sensor (Hygrometer)

Kauj ruam 2: Software - Yam Koj Yuav Tsum Tau

Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau

Kev kwv yees: Kev paub ua haujlwm ntawm Arduino IDE/Cov Tsev Qiv Ntawv thiab paub txog ib qho ntawm txoj hauv kev los thauj cov cai rau ESP01. (Cia siab tias koj muaj ib tus Adapters tau hais hauv Cov Lus Qhia no … Yooj yim dua)

Arduino IDE Cov

Lub tsev qiv ntawv ESP8266WiFi.h tsuas yog xav tau yog tias koj xav kom lov tes taw WiFi tag nrho. Cov Lus Qhia Yav Tom Ntej yuav siv WiFi rau sab nrauv sib txuas lus Tswb pom los ntawm lub ntsuas no.

Txuag thiab thauj cov duab kos uas txuas nrog. Ua kom ntseeg tau tias koj hloov lub rooj tsavxwm mus rau 'Generic ESP8266' thiab xaiv qhov chaw nres nkoj raug.

Kauj Ruam 3: Teeb Kho Vajtse thiab thaiv

Kho vajtse teeb thiab thaiv
Kho vajtse teeb thiab thaiv
Kho vajtse teeb thiab thaiv
Kho vajtse teeb thiab thaiv
Kho vajtse teeb thiab thaiv
Kho vajtse teeb thiab thaiv
  1. Txheeb xyuas lub zog siv rau koj li ESP. Kuv siv tus ESP programmer qub txuas rau hauv kuv lub laptop USB, thiab ntsaws VCC thiab Grnd dhia mus rau hauv lawv qhov chaw. (Saib Duab)
  2. Straddle lub ESP breadboard adapter hla nruab nrab ntawm cov channel ntawm lub khob cij me me kom ib kab ntawm 4 tus pin nyob ntawm ob sab.
  3. Txuas Vcc Source rau ESP's Vcc, Ch_Pd, thiab Hygrometer.
  4. Txuas Grnd Source rau ESP's Grnd, Hygrometer, thiab Piezo/LED 'luv' txhais ceg.
  5. Txuas tus ESP tus pin 2 mus rau Hygrometer Cov Ntaub Ntawv (Tsis yog analog).
  6. Txuas tus ESP tus pin 0 mus rau Piezo/LED 'ntev' txhais ceg.
  • Tswv yim

    • TSIS TXHOB xav tias cov xim jumper hauv cov duab txuas sawv cev rau Vcc lossis Grnd.
    • Piezo thiab/lossis LED tsis tuaj yeem txuas thaum khau raj. Yog tias lawv yog, ESP yuav ua kom muaj zog nyob rau hauv hom bootload thiab yuav tsis ua tiav txoj cai thauj khoom. Txuas lawv tom qab ESP tau txhawb zog.
    • Kho qhov rhiab heev raws li xav tau ntawm Hygrometer nrog txuas nrog Potentiometer. WrapUp: Kuv npaj yuav ua kom muaj kev sib txuas ntawm qhov ruaj khov no thiab ua vaj tsev tag nrho nws nyob hauv qhov zoo. Cov ntaub ntawv ntawd yuav tuaj yeem ua lwm qhov ntawm kuv lub npe Lego lub npe dua !! Thaum nws ua tiav kuv mam qhia nws ib yam. Tsis tas li… Kuv yuav ntxiv WiFi kev ua haujlwm rau yav tom ntej ntawm lub ntsuas hluav taws xob thiab yuav ntxiv cov Lus Qhia no ib yam.

Pom zoo: