Cov txheej txheem:

Arduino Relay Tswj Hauv Internet: 5 Kauj Ruam
Arduino Relay Tswj Hauv Internet: 5 Kauj Ruam

Video: Arduino Relay Tswj Hauv Internet: 5 Kauj Ruam

Video: Arduino Relay Tswj Hauv Internet: 5 Kauj Ruam
Video: ESP8266 12F WIFI LCTech 16 Channel relay board flash Arduino 74HC595 ESPHome 2024, Kaum ib hlis
Anonim
Arduino Relay Tswj Hauv Is Taws Nem
Arduino Relay Tswj Hauv Is Taws Nem

Txais tos!

Kauj ruam 1: Ua Sketch

Ua Sketch
Ua Sketch

Siv daim duab kos los txuas qhov txuas mus rau Arduino.

Daim duab kos yuav pab koj thaum koj yuav sau cov cai, yog li koj yuav paub tias tus lej twg koj xav tau los tswj nrog cov cai.

Kuv tab tom siv Arduino nrog W5100 Ethernet Shield Network Expansion Board, txuas rau kuv lub tsev network

Qhov:

Arduino Ib

www.amazon.de/gp/product/B008GRTSV6?keyword… nyeem ntxiv

4 channel relay board

www.amazon.de/SunFounder-Module-Kan%C3%A4le…

W5100 Ethernet Shield

www.amazon.de/Aukru-Ethernet-Micro-SD-Karte…

Jumper xov hlau MALE - Poj niam

www.amazon.de/Aukru-jumper-wire-Steckbr%C3%…

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Txiav qhib lub xaim rau lub teeb lossis lwm yam khoom siv hluav taws xob uas koj xav tswj. Txiav ib qho ntawm ob lub xov hlau thiab kab nws rau ob sab thiab txuas cov xov hlau mus rau qhov txuas

Yog tias koj txuas cov xov hlau mus rau ob lub tswv yim ntawm kev xa xov uas qhia pom kev sib txuas, koj yuav tsis tuaj yeem tswj hwm kev xa xov

Kauj ruam 3: Code

Koj tuaj yeem hloov koj tus IP chaw los ntawm kev hloov tus lej kawg ntawm tus IP chaw nyob

(byte tus ip = {192, 168, 1, 30};)

Kauj Ruam 4: Xeem

Xeem
Xeem

Thaum koj ua tiav. Koj cia li qhib lub vev xaib thiab ntaus tus IP chaw nyob uas koj siv hauv koj tus lej.

Kuv yuav tsum saib qee yam zoo li lub xaib ntawd hauv daim duab.

Thiab qhov ntawd yog nws!

Tsaug rau kev nyeem kuv inscrutable !!!:):):)

Kauj Ruam 5: Lwm Txoj Haujlwm

Kuv yuav ua qee qhov haujlwm nrog RPi 2, thaum yuav muaj sijhawm ntau dua !!

Pom zoo: