Cov txheej txheem:

ESP32+RC522+IFTTT = Kev Ruaj Ntseg Hauv Tsev: 5 Kauj Ruam
ESP32+RC522+IFTTT = Kev Ruaj Ntseg Hauv Tsev: 5 Kauj Ruam

Video: ESP32+RC522+IFTTT = Kev Ruaj Ntseg Hauv Tsev: 5 Kauj Ruam

Video: ESP32+RC522+IFTTT = Kev Ruaj Ntseg Hauv Tsev: 5 Kauj Ruam
Video: ЧАСТЬ 2 ESPNOW — Лучшая система домашней безопасности своими руками — ESP8266 (trigBoard) + модем 4G LTE 2024, Hlis ntuj nqeg
Anonim
Image
Image

Nyob zoo! Kuv tau ua qhov haujlwm me me nrog ESP32 pawg thawj coj txhim kho, RC522 RFID nyeem ntawv, cov neeg laus hauv tsev thiab IFTTT.

Koj yuav tau txais ntawv ceeb toom lossis SMS ntawm lub cuab yeej ntse yog tias ib tus neeg qhib Koj lub qhov rooj thiab tsis tso qhov cim npe RFID raug hauv 10 vib nas this.

Nov yog qhov nws ua haujlwm li cas

Kauj Ruam 1: Tau Txais Txhua Qhov

Hlau Txhua Qhov Kev Sib Txuas
Hlau Txhua Qhov Kev Sib Txuas

1. ESP32 dev board

2. RC522 RFID

3. Cov xov hlau

4. Hall Sensor

5. Hlau nplaum (Kuv siv neodymium tab sis cov hlau nplaum yuav zoo)

6: 4.7k Kuj

Cov kev sib txuas tsuas yog siv rau kev siv xwb. Koj tuaj yeem tau txais cov khoom no pheej yig dua los ntawm e-bay;)

Kauj Ruam 2: Hlau Txhua Qhov Kev Sib Txuas

1. Txuas ESP32 rau RC522:

P5 SDA UA

P18 TSO

P23 MOSI

P19 MAS

P22 RESET

GND GND

3v3 3v 3

2. Connect Hall sensor (txheeb xyuas Datasheet yog tias koj siv cov ntsuas sib txawv):

Txuas ESP32 P21 mus rau Vout ntawm chav senor thiab 3V3 rau V+ thiab GND rau V-. Muab 1k rau 10k resistor ntawm P21 thiab 3V3

Kauj Ruam 3: Tsim IFTTT Account thiab Ua Applet

Tsim IFTTT Account thiab Ua Applet
Tsim IFTTT Account thiab Ua Applet
Tsim IFTTT Account thiab Ua Applet
Tsim IFTTT Account thiab Ua Applet
Tsim IFTTT Account thiab Ua Applet
Tsim IFTTT Account thiab Ua Applet

1. Mus rau IFTTT.com thiab sau npe (yog tias koj tsis tau ua tiav, cov ntawv yooj yim yog dawb);

2. Create Applet -> mus rau "Kuv Applets" -> "Applet tshiab";

3. Nyem "qhov no";

4. Tshawb nrhiav "webhooks" ';

5. Sau lub npe: "DoorAlarm" // qhov no yuav muab ntxiv rau hauv peb qhov ESP32 programm

6. Nias "ntawd";

7. Search rau "ceeb toom" (Koj tseem tuaj yeem tshawb nrhiav SMS lossis e-mail);

8. Xaiv qhov ua: "Xa ntawv ceeb toom los ntawm IFTTT app".

9. Ua kom tiav cov haujlwm: sau cov lus uas yuav xa mus rau Koj lub cuab yeej ntse.

10. Nias "Ua tiav".

Kauj ruam 4: Programming

Programming
Programming

1.prepere arduino IDE: ESP32 Nrog Arduino IDE

2.download code;

3. Mus rau: https://ifttt.com/maker_webhooks thiab nias "Cov ntaub ntawv" thiab tau txais koj tus yuam sij. Luam qhov tseem ceeb rau ESP32 code;

4. Hloov koj li ntawv pov thawj network;

5. Nyeem Koj Daim npav RFID UID thiab hloov cov kab no rau Koj daim npav:

yog (rfid.uid.uidByte [0] == 61 &&

rfid.uid.uidByte [1] == 102 &&

rfid.uid.uidByte [2] == 14 &&

rfid.uid.uidByte [3] == 194)

5. Programm ESP thiab hauv Arduino IDE qhib Serial Monitor los xyuas seb nws ua haujlwm li cas.

Kauj ruam 5: Ua tiav Koj Txoj Haujlwm

Ua Kom tiav Koj Txoj Haujlwm
Ua Kom tiav Koj Txoj Haujlwm
Ua Kom tiav Koj Txoj Haujlwm
Ua Kom tiav Koj Txoj Haujlwm
Ua Kom tiav Koj Txoj Haujlwm
Ua Kom tiav Koj Txoj Haujlwm

Yog tias txhua yam ua haujlwm raws li qhov xav tau solder txhua qhov kev sib txuas thiab muab nws kaw rau ntawm lub qhov rooj (Koj tseem tuaj yeem nkaum nws qhov chaw). Txuas cov hlau nplaum rau lub qhov rooj thiab muab cov cuab yeej cuab rau ze rau nws. Thaum lub qhov rooj yuav qhib lub qhov rooj sensor yuav pom qhov ntawd thiab nws yuav xa teeb liab mus rau ESP32. ESP32 mam li txuas dua wireless rau IFTTT thiab IFTTT xa Koj ceeb toom lossis SMS.

Yam los txhim kho:

1. Ua qee yam ntawm lub cuab yeej ntaus lub plawv kom koj tuaj yeem ceeb toom yog tias lub cuab yeej ua haujlwm tsis raug;

2. Ua 3d cov ntaub ntawv luam tawm rau qhov no;

3. Txuas lub tswb lossis ceeb toom suab: ESP32 qhov project suab

Pab tau txuas:

randomnerdtutorials.com

Txhim kho ESP32 Board hauv Arduino IDE (Windows cov lus qhia)