Cov txheej txheem:

ESP01/01S RELAY MODULE TUTORIAL: 4 Kauj Ruam
ESP01/01S RELAY MODULE TUTORIAL: 4 Kauj Ruam

Video: ESP01/01S RELAY MODULE TUTORIAL: 4 Kauj Ruam

Video: ESP01/01S RELAY MODULE TUTORIAL: 4 Kauj Ruam
Video: DIY Home Automation with ESP-01 Relay Module: Simple and Effective Solutions| wifi relay module 2024, Lub Xya hli ntuj
Anonim
ESP01/01S RELAY MODULE TUTORIAL
ESP01/01S RELAY MODULE TUTORIAL

Nqe lus piav qhia

Qhov txuas WiFi no raws li AI-Thinker ESP-01/ 01S WiFi module, peb siv GPIO0 ntawm ESP-01/ 01S los tswj kev xa tawm los ntawm qib qis. Nws yog qhov yooj yim rau DIY koj lub ntse hloov mus rau ib qho khoom siv twg los ntawm koj lub xov tooj nyob txhua qhov chaw nrog cov ntse txuas no.

Kev qhia tshwj xeeb

  • Ua haujlwm voltage: DC 5V-12V
  • Ua haujlwm tam sim no: ≥250mA
  • Kev sib txuas lus: ESP01 lossis ESP 01S
  • WiFi module Kev xa mus deb: qhov siab tshaj plaws kis nrug yog 400m (qhib ib puag ncig, lub xov tooj ntawm tes nruab nrog WiFi module)
  • Thauj khoom: 10A/ 250VAC, 10A/ 30VDC, 10A/ 30VDC, 10A/ 28VDC
  • Loj: 37 x 25mm

Kauj Ruam 1: Kev Npaj Khoom

Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom

Hauv qhov kev qhia no, peb tsuas yog siv cov ntaub ntawv hauv qab no:

  1. USB rau UART FTDI Converter
  2. ESP8266 WiFi Serial Transceiver Module

thiab kawg tab sis tsis tsawg, ESP01/01S Relay Module.

Peb txuas ESP8266 WiFi Serial Transceiver Module rau ESP01/01S Relay Module kom peb tuaj yeem tswj kev xa tawm ntawm WiFi. Txhawm rau program ESP8266, FTDI Converter xav tau txuas nrog ESP8266.

Kauj Ruam 2: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse

Raws li kev sib txuas ntawm ESP8266 thiab FTDI Converter, nws tau qhia raws li daim duab saum toj no lossis teev tseg hauv qab no:

  1. RX -> TX
  2. TX -> RX
  3. VCC -> VCC
  4. CH_EN -> VCC
  5. GPIO -0 -> GND
  6. GND -> GND

Cov pins rau ESP8266 kuj tseem sau npe ua daim duab 2.

Tom qab ua tiav xa cov cai rau ESP8266, yooj yim txuas nws rau ESP01/01S Relay Module.

Kauj Ruam 3: Xa Cov Cai

Txog kev sau tus lej, hloov SSID thiab PASSWORD rau koj li WiFi SSID thiab Password feem. Hauv cov cai, nws tau hais tias pib ua ntu zus yog 115200, yog li nco ntsoov tias lub xov tooj ntawm tes yog 115200 txwv tsis pub nws yuav tsis tso tawm dab tsi. Peb teeb URL rau https://192.168.0.178/ thiab nws yuav siv tom qab.

Kauj Ruam 4: Cov txiaj ntsig

Cov txiaj ntsig
Cov txiaj ntsig
Cov txiaj ntsig
Cov txiaj ntsig

Thaum peb nkag mus rau URL, nws yuav qhia raws li daim duab 1 saum toj no. Nco ntsoov tias koj tau qhib lub ESP8266 nrog rau ESP01/01S Relay Module nrog ntau ntawm 5V txog 12V kom koj tuaj yeem nkag mus rau URL. Cov txiaj ntsig rau tus qauv tau qhia raws li daim duab 2 uas LED teeb pom kev qhia tias kev xa xov yog ON.

Thaum peb nias OFF hauv URL, qhov txuas yuav raug muab OFF ib txhij thiab rov ua dua rau ON xaiv.

Pom zoo: