Cov txheej txheem:

Tasmotized NodeMCU 8CH Sonoff Relay: 11 Kauj Ruam
Tasmotized NodeMCU 8CH Sonoff Relay: 11 Kauj Ruam

Video: Tasmotized NodeMCU 8CH Sonoff Relay: 11 Kauj Ruam

Video: Tasmotized NodeMCU 8CH Sonoff Relay: 11 Kauj Ruam
Video: Tasmotized NodeMCU 8CH Sonoff Relay 2024, Kaum ib hlis
Anonim
Tasmotized NodeMCU 8CH Sonoff Relay
Tasmotized NodeMCU 8CH Sonoff Relay

Nov yog NodeMCU Tasmota-Sonoff Firmware Flashed 8CH Relay Control Project

Sonoff-Tasmota yog lwm txoj hauv kev rau ESP8266 raws li cov cuab yeej zoo li NodeMCU tso cai tswj hwm WiFi ntawm Ntse Tsev (ioT) Systems.

Kuv lub tswv yim yog kom muaj 8CH Kev Tshaj Tawm tswj hwm WiFi nrog Tasmota Firmware Flashed (Tasmotized) NodeMCU board.

Kuv tau kev tshoov siab los ntawm:

Txoj kev nrawm tshaj plaws rau nyem thiab teeb tsa ESP8266 Raws Li Sonoff Devices nrog Tasmota lossis lwm yam firmware - los ntawm Vicious Computer hauv Youtube

Yuav Hloov Li Cas Firmware ntawm Sonoff Devices rau siv hauv Tsev Automation Projects - los ntawm DrZzs hauv Youtube

Flashing SONOFF Tasmota Firmware ntawm NodeMCU Los Ntawm Sarath341 ntawm Cov Lus Qhia

www.instructables.com/id/Flashing-SONOFF-T…

Kauj Ruam 1: Cov Cheeb Tsam thiab Cov Software Xav Tau

NodeMCU Development Board

Sonoff Tasmota Firmware

Termite Software (PC)

Advanced IP Scanner (PC)

lossis Ntiv tes (Android/IOS APP)

Arduino IDE

8CH Relays Board

Dupont poj niam rau poj niam xaim

Breadboard

MicroUSB Cable

Kauj ruam 2: Yam yuavtsum tau kawm uantej

Rub tawm Sonoff Tasmota Firmware los ntawm Github

Nco ntsoov tias koj muaj ESP8266 Lub Tsev Qiv Ntawv tau teeb tsa ntawm koj Arduino IDE.

Yog tias koj xav paub yuav nruab ESP8266 lub tsev qiv ntawv kom raug mus ntsib qhov ua tiav blog no ntawm Flashing SONOFF Tasmota Firmware ntawm NodeMCU

Kauj Ruam 3: Kev koom ua ke

Image
Image

Tasmotized NodeMCU 8CH Relay tuaj yeem koom ua ke nrog ntau yam IoT platform:

HomeAssistant

Yeti (Domotic App rau Android thiab iOS)

MQTT Broker

(Piv txwv teeb tsa:

(Piv txwv ntawm muaj pub dawb MQTT Cloud Broker:

Nws kuj tseem tuaj yeem nkag ncaj qha rau Tasmotized NodeMCU 8CH Kev Tshaj Tawm los ntawm nws cov WEB server nkag (xws li AP lossis nrog DHCP lossis IP chaw nyob zoo li qub) siv Web Browser.

Txhawm rau nkag mus rau Tasmotized NodeMCU 8CH Relay los ntawm Is Taws Nem koj yuav tsum tau xa mus rau tom ntej koj lub router kom hloov mus rau Tasmotized NodeMCU 8CH Relay Web Server (saib hauv qab nplooj ntawv Web nkag tau ntawm lub Vev Xaib)

Kauj Ruam 4: Web Server ntawm Tasmotized NodeMCU 8CH Relay

Kev teeb tsa ntawm Tasmota Firmware Flashed Device
Kev teeb tsa ntawm Tasmota Firmware Flashed Device

Nov yog Lub Vev Xaib nplooj ntawv nkag los ntawm koj lub vev xaib uas xav tau txhawm rau nkag ncaj qha rau Tasmotized NodeMCU 8CH Relay thiab hais kom 8 relay ntawm nws tus kheej.

Los ntawm nplooj ntawv no nws tseem tuaj yeem teeb tsa Tasmotized ntaus ntawv, ua tiav kev txhim kho firmware thiab xa cov lus txib ntawm console rau lub cuab yeej.

Saib kuj:

Initial Configuration Tasmota Firmware:

Kho Sonoff Tasmota Firmware:

Integrazione SONOFF con MQTT: esempi di programmazione:

Kauj Ruam 5: Kev teeb tsa ntawm Tasmota Firmware Flashed Device

Los ntawm lub neej ntawd, Tasmota Firmware fashed ntaus ntawv yuav nyob hauv Sonoff Basic.

Yog li koj yuav tsum hloov nws mus rau 'Generic' hauv 'Configuration' menu.

Nyem 'Configuration' thiab sab hauv uas xaiv 'Configure Module'.

Kauj Ruam 6: Kev teeb tsa rau ESP8266 NodeMCU los Tswj 8CH Cov Rooj Sib Tham Sib Txuas

Kev teeb tsa rau ESP8266 NodeMCU los tswj 8CH Cov Rooj Sib Tham Sib Txuas
Kev teeb tsa rau ESP8266 NodeMCU los tswj 8CH Cov Rooj Sib Tham Sib Txuas

Xaiv lub Rooj Tswjhwm Saib ua Generic thiab Txuag.

Lub cuab yeej yuav rov pib dua.

Qhov kev xaiv no yog rau txhua pawg ESP8266.

Tam sim no yog tias koj nyem qhov teeb tsa, tom qab ntawd koj tuaj yeem pom ntau qhov kev xaiv GPIO.

Siv qhov ntawd koj tuaj yeem xaiv GPIO Kev Ua Haujlwm.

Nyob ntawm GPIO teeb tsa qhov kev xaiv yuav tshwm rau ntawm Homepage zoo li DHT, Relay, Hloov thiab Ntau yam ntxiv.

Hauv qhov haujlwm no kuv siv:

GIO0 li Relay8 (tus pin D3 ntawm NodeMCU) - Txuas nrog tus pin txuas 8 ntawm 8CH Relay Board

GPIO2 li Relay7 (tus pin D4 ntawm NodeMCU) - Txuas nrog tus pin txuas 7 ntawm 8CH Relay Board

GPIO4 li Relay6 (tus pin D2 ntawm NodeMCU) - Txuas nrog tus pin txuas 6 ntawm 8CH Relay Board

GPIO5 raws li Realy5 (tus pin D1 ntawm NodeMCU) - Txuas nrog tus pin txuas ntawm 5 ntawm 8CH Relay Board

GPIO12 li Relay2 (tus pin D6 ntawm NodeMCU) - Txuas nrog tus pin txuas 2 ntawm 8CH Relay Board

GPIO13 li Relay4 (tus pin D7 ntawm NodeMCU) - Txuas nrog tus pin txuas 4 ntawm 8CH Relay Board

GPIO14 li Relay3 (tus pin D5 ntawm NodeMCU) - Txuas nrog tus pin txuas 3 ntawm 8CH Relay Board

GPIO15 li Relay2 (tus pin D8 ntawm NodeMCU) - Txuas nrog tus pin txuas 2 ntawm 8CH Relay Board

GPIO16 li Relay16 (tus pin D0 ntawm NodeMCU) - Txuas nrog tus pin txuas 1 ntawm 8CH Relay Board

Kauj Ruam 7: Fritzing Scheme

Fritzing Scheme
Fritzing Scheme

Fritzing Scheme rau kev sib txuas ntawm NodeMCU thiab 8CH Relay Board.

Nco tseg: VCC yog 5V DC

Kauj Ruam 8: Yuav Ua Li Cas Tasmota Firmware ntawm Koj ESP8266 Raws Li Ntaus Ntawv

Yog tias koj xav nyem koj lub ESP8266 lub cuab yeej nrog Arduino IDE siv sonoff firmware qhov chaws los ntawm GitHub:

Lwm txoj hauv kev los nyem koj ESP8266 lub cuab yeej yog siv sonoff.bin nrog ESPTool (https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool) los ntawm kev siv Python kab lus lossis Platformio IDE.

Ntawm no koj tuaj yeem rub tawm ob qho tib si sonoff.bin lossis sonoff source code firmware

Kauj Ruam 9: Kev Pabcuam Hauv Tsev

Kev Pabcuam Hauv Tsev
Kev Pabcuam Hauv Tsev
Kev Pabcuam Hauv Tsev
Kev Pabcuam Hauv Tsev

Yuav ua li cas koom ua ke koj Tasmotized NodeMCU 8CH Relay nrog Tus Pab Tsev

Yam yuavtsum tau kawm uantej:

1. Teeb tsa tus Pabcuam Hauv Tsev MQTT tus broker (lossis lwm txoj hauv kev MQTT broker)

2. Kho Tasmotized NodeMCU nrog MQTT tsis ntawm koj tus broker xws li Host (IP chaw nyob), Chaw nres nkoj (1883 feem ntau), Client, Tus neeg siv thiab tus lej zais ntawm koj tus broker MQTT.

Nov yog kuv ntu.yaml ntu los ua ke Tasmotized NodeMCU 8CH Relays (raws li Teeb) hauv kuv Lub Tsev Pabcuam Vaj Huam Sib Luag:

#Tasmota_Sonoff_8CH_Relay teeb:

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH1"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER1"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER1"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH2"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER2"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER2"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH3"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER3"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER3"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH4"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER4"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER4"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH5"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER5"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER5"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH6"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER6"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER6"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH7"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER7"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER7"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

- alias: Tasmota_Sonoff_NodeMCU_8CH

siv: mqtt

Lub npe: "CH8"

state_topic: "stat/Sonoff_NodeMCU_GS/POWER8"

command_topic: "cmnd/Sonoff_NodeMCU_GS/POWER8"

qog: 0

payload_on: "YOG"

payload_off: "Tawm"

payload_available: "Online"

payload_not_available: "Offline"

khaws: cuav

Kauj ruam 10: Cov neeg ua tim khawv

Sonoff-Tasmota Firmware Wiki:

Sonoff-Tasmota Firmware:

Flashing SONOFF Firmware ntawm NodeMCU:

Kauj Ruam 11: Mus Saib Kuv Qhov Blog thiab Youtube Channel

MGS DIY ua

Pom zoo: