Cov txheej txheem:
- Kauj Ruam 1: Teeb Arduino IDE, Nruab Esp8266 Pawg Thawj Coj:
- Kauj Ruam 2: Teeb Arduino IDE, Nruab Arduino Json Library:
- Kauj Ruam 3: Teeb Arduino IDE, Nruab Firebase Library:
- Kauj Ruam 4: Firebase, Tsim Txoj Haujlwm:
- Kauj Ruam 5: Firebase, Txoj Cai Txoj Haujlwm:
- Kauj Ruam 6: Firebase, Cov Ntaub Ntawv Teev Npe Sijhawm:
- Kauj ruam 7: Code:
- Kauj Ruam 8: Txoj Cai, Cov Ntaub Ntawv Tus Kheej:
- Kauj Ruam 9: Esp8266 Tsav Tsheb:
- Kauj Ruam 10: Xeem Txoj Cai:
Video: Esp8266 Kev Txuas Hluav Taws Xob: 10 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Txhawm rau pib nrog txoj haujlwm no, Koj xav tau cov hauv qab no:
- esp8266 (NodeMcu v3 Lua)
- google tus account (firebase)
Koj tuaj yeem yuav tau esp8266 los ntawm no:
- amazon.com
- aliexpress.com
Kauj Ruam 1: Teeb Arduino IDE, Nruab Esp8266 Pawg Thawj Coj:
Nruab esp8266 Board:
Qhib Arduino IDE> Cov Ntaub Ntawv> Nyiam> ntxiv Tus Thawj Saib Xyuas Haujlwm URLs> "https://arduino.esp8266.com/stable/package_esp8266c …> OK
Cuab Yeej> Pawg Thawj Coj:> Tus Thawj Saib Xyuas Pawg> esp8266> nruab
Kauj Ruam 2: Teeb Arduino IDE, Nruab Arduino Json Library:
Nruab Arduino json tsev qiv ntawv:
Nruab version 5.13.1
Saib install video NTAWM NO
Kauj Ruam 3: Teeb Arduino IDE, Nruab Firebase Library:
Nruab Firebase tsev qiv ntawv:
Rub tawm qhov tseeb ruaj khov NTAWM NO> unzip hauv "Documents / Arduino / libraries"
NCO TSEG, Muaj kab nyob hauv "v0.3 Bi-directional streaming support"> hloov cov ntiv tes NYEM QHOV NO INFO
Kauj Ruam 4: Firebase, Tsim Txoj Haujlwm:
Tsim Firebase Project:
Mus rau "https://console.firebase.google.com"
Kauj Ruam 5: Firebase, Txoj Cai Txoj Haujlwm:
Txoj cai txoj haujlwm:
Database (Realtime Database)> cov cai
{/* Mus ntsib https://firebase.google.com/docs/database/security kom paub ntau ntxiv txog cov cai kev nyab xeeb. */ "cov cai": {".read": tseeb, ".write": tseeb}}
Kauj Ruam 6: Firebase, Cov Ntaub Ntawv Teev Npe Sijhawm:
Realtime Database cov ntaub ntawv:
Database (Realtime Database)> Cov Ntaub Ntawv
Ntxiv: "LED1"> "0"
Kauj ruam 7: Code:
#suav nrog
#suav nrog
#define WIFI_SSID "SSID" #define WIFI_PASSWORD "WIFI PASSWORD" #define FIREBASE_HOST "?????????????? firebaseio.com" #define FIREBASE_AUTH "AUTH KEY"
int LED1 = 4;
void teeb tsa ()
{Serial.begin (115200);
tus pinMode (LED1, OUTPUT);
ncua (2000);
Serial.println ('\ n'); wifiConnect ();
Firebase.begin (FIREBASE_HOST, FIREBASE_AUTH);
ncua (10);
}
void lub voj ()
{Serial.print (Firebase.getString ("LED1") + "\ n");
analogWrite (LED1, Firebase.getString ("LED1"). toInt ());
ncua (10);
yog (WiFi.status ()! = WL_CONNECTED)
{wifiConnect (); } ncua (10);
}
tsis muaj wifiConnect ()
{WiFi.begin (WIFI_SSID, WIFI_PASSWORD); // Txuas mus rau lub network Serial.print ("Txuas rau"); Serial.print (WIFI_SSID); Serial.println (“…”);
int tus qhia = 0;
thaum (WiFi.status ()! = WL_CONNECTED) {// Tos kom Wi-nkaus txuas txuas qeeb (1000); Serial.print (++ tus qhia); Serial.print (''); }
Serial.println ('\ n');
Serial.println ("Kev sib txuas tau tsim!"); Serial.print ("IP chaw nyob: / t"); Serial.println (WiFi.localIP ()); // Xa tus IP chaw nyob ntawm ESP8266 mus rau lub khoos phis tawj}
Kauj Ruam 8: Txoj Cai, Cov Ntaub Ntawv Tus Kheej:
cov ntaub ntawv tus kheej:
SSID> lub npe ntawm koj lub network wifi
WIFI PASSWORD> password ntawm koj lub network wifi
FIREBASE HOST> qee yam xws li "?????????????. Firebaseio.com". Koj tuaj yeem pom nws hauv "Cov Ntaub Ntawv" tab ntawm koj Lub Sijhawm Teev Npe.
AUTH KEY> Txoj haujlwm teeb tsa> Cov nyiaj pabcuam> Cov ntaub ntawv zais cia
Kauj Ruam 9: Esp8266 Tsav Tsheb:
Rub tawm:
Nyem qhov no> unzip thiab nruab
Kauj Ruam 10: Xeem Txoj Cai:
Upload chaws:
siv tus qauv esp8266 hauv tus thawj tswj hwm pawg> nyem "ESP-12E module".
Qhib serial saib thiab teeb nws rau "115200".
Thiab koj yuav tsum tau txais cov ntaub ntawv zoo ib yam li hauv koj lub database.
Pom zoo:
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Igniter: 6 Kauj Ruam (nrog Duab)
Cov Hluav Taws Xob Bluetooth Hluav Taws Xob Igniter: Puas yog nws zoo rau taws ntau dua ib lub foob pob hluav taws tib lub sijhawm? Lossis txawm tias muaj kev nyab xeeb nyob deb rau qhov phom sij txaus ntshai. Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub Circuit Court uas tuaj yeem ua tau li cas nrog kev pab ntawm Bluetooth ua haujlwm
Yuav Ua Li Cas Tswj DC Gear Motor los ntawm Kev Siv 160A Txhuam Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob thiab Servo Tester: 3 Cov Kauj Ruam
Yuav Ua Li Cas Tswj DC Gear Motor los ntawm Kev Siv 160A Txhuam Cov Hluav Taws Xob Hluav Taws Xob thiab Cov Kev Pabcuam Servo: Kev Qhia Tshwj Xeeb: Voltage: 2-3S Lipo lossis 6-9 NiMH Nruam tam sim no: 35A Tam sim no tawg: 160A BEC: 5V / 1A, tawm qauv: 1. pem hauv ntej & thim rov qab; 2. mus &nres; 3. rau pem hauv ntej & nres & thim rov qab: 34g Loj: 42*28*17mm
Ib Leeg Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: 6 Cov Kauj Ruam
Ib Leeg Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: Hauv qhov haujlwm no peb tab tom ua kom muaj Ib lub kauj induction lub cev Muaj zog, thiab ntau yam piav qhia ntxiv, cov qauv ntawm lub tshuab hluav taws xob no tau siv ntau yam khoom siv tam sim no. Peb lub cav tsis muaj lub zog loj, nws yog ntau ntxiv txog kev ua haujlwm
DIY Hluav Taws Xob Txuas Hluav Taws Xob Txuas Hluav Taws Xob: 7 Cov Kauj Ruam (nrog Duab)
DIY Hluav Taws Xob Txuas Hluav Taws Xob Txuas Hluav Taws Xob: Hauv Cov Lus Qhia no Kuv yuav qhia koj tag nrho cov txheej txheem ntawm kev ua lub tsev hluav taws xob txuas hluav taws xob txuas ntxiv no ib kauj ruam zuj zus. Nws yog qhov muaj txiaj ntsig zoo hluav taws xob pawg thawj coj saib. Nws qhia txog Voltage Tam sim no nrog rau Ampere tau siv ntawm lub sijhawm tiag tiag. Thaum twg qhov voltage excee
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: 6 Kauj Ruam
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: Nco tseg thiab ceev faj: CFL muaj cov mercury uas yog cov khoom phom sij, yog li nws yuav tsum tau ua raws li feem ntau CFL cov teeb, hluav taws xob hluav taws xob tau ua haujlwm zoo thiab tseem siv tau, tsuas yog lub teeb mus tsis zoo. CFL Circuit Court ntawm 18-24 Watts yog