Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
- Kauj Ruam 2: Kho ESP - 1
- Kauj Ruam 3: Kho Esp - 2
- Kauj Ruam 4: Txuas mus rau Arduino Mega
Video: Siv ESP8266 Nrog Arduino thiab Blynk: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txuas koj Arduino Mega rau blynk app siv espp8266 ntaub thaiv npog.
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
1. ESP8266 ntaub thaiv npog - Cov khoom lag luam.com.com - ESP8266 serial WIFI
2. Arduino UNO - Cov khoom lag luam.com.com - Arduino UNO R3
3. Arduino Mega - Cov khoom lag luam.com.com - Mega 2560 R3…
4. Breadboard - AliExpress.com Khoom - Khoom noj khoom haus board khoom
5. Jumper xov hlau - AliExpress.com Khoom - Dupont Jumper hlau
Kauj Ruam 2: Kho ESP - 1
Txhawm rau teeb tsa ESP Wi-Fi module nws yuav tsum txuas nrog Arduino Uno raws li qhia hauv kab lus. Qhov tau txais tus pin thiab hloov tus lej (RXD thiab TXD) tau siv los sib pauv cov ntaub ntawv nrog lub microcontroller. GP100 thiab GP102 tus pin tsis tas yuav txuas nrog.
ESP thiab Arduino Pin-out
TXX - RX (0)
TXC - TX (1)
GRD - NPE
CH_PD - 5V
Kauj Ruam 3: Kho Esp - 2
Txhawm rau xa cov lus txib ncaj qha mus rau ESP module tus GND tus pin ntawm Arduino txuas nrog nws Pib pin.
Thaum Arduino tau txuas mus rau ESP thiab Arduino txuas nrog lub khoos phis tawj lub khoos phis tawj yuav tsum tau teeb tsa los ntawm kev saib xyuas txuas ntawm Arduino los ntawm kev siv AT cov lus txib. Txhawm rau tuaj yeem sib txuas lus rau daim ntaub thaiv tus nqi baud tau teeb tsa rau 115200 vim qhov no yog qhov nrawm uas ESP sib txuas lus thiab teeb tsa "Ob NL THIAB CR" tau xaiv.
AT– thaum xa qhov no, cov lus OK tshwm. Qhov no txhais tau tias ESP ua haujlwm tau raug.
AT+CWJAP = "WIFI_NAME", "WIFI_PASSWORD"- qhov lus txib no ESP txuas rau Wi-nkaus router.
Kauj Ruam 4: Txuas mus rau Arduino Mega
Tom qab cov kauj ruam no GND thiab RESET uas tau txuas nrog ntawm UNO tuaj yeem raug tshem tawm. Txij li ESP yuav siv nrog Arduino Mega, lwm cov txheej txheem yuav tsum tau xa mus rau Arduino Mega thiab ESP yuav tsum tau txuas rau Arduino Mega.
#define BLYNK_PRINT Serial
#suav nrog "ESP8266_Lib.h"
#suav nrog "BlynkSimpleShieldEsp8266.h"
char auth = "input blynk token";
// Koj li ntawv pov thawj WiFi.
char ssid = "ssid";
char pass = "password";
#feem EspSerial Serial1
// Koj li ESP8266 baud tus nqi:
#define ESP8266_BAUD 9600
ESP8266 wifi (& EspSerial);
void teeb tsa () {
// Debug console
Serial.begin (9600);
ncua (10);
// Teeb tsa ESP8266 baud tus nqi
EspSerial.begin (ESP8266_BAUD); ncua (10);
Blynk.begin (auth, wifi, ssid, dhau); ncua (10);
}
Cov teeb tsa no tso cai rau microcontroller siv Wi-Fi network ntawm ESP los txuas rau Blynk daim ntawv thov. Thaum rub tawm qhov program, pawg thawj coj tau teeb tsa xa thiab tau txais cov ntaub ntawv mus rau lub ntsej muag ntsais ntsais thiab raug programmed los ntawm app.
Pom zoo:
Txawb Xov Tooj Siv Yooj Yim Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: 14 Cov Kauj Ruam (nrog Duab)
Kev Siv Xov Tooj Ntawm Lub Xov Tooj Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: Koj puas tau xav tsim qhov kev ua kom txias txias? Yog tias yog, ua li cas txog kev tsim ib qho ntawm cov neeg nyiam tshaj plaws thiab txhua tus nyiam cov khoom siv xws li Lub Xov Tooj Txawb !!!. Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav tsim lub xov tooj txawb yooj yim siv STM li cas
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: 5 Kauj Ruam (nrog Duab)
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: Tswj 8 qhov hloov pauv hloov siv nodemcu thiab ir tus txais tshaj wifi thiab ir chaw taws teeb thiab hauv app.the ir tej thaj chaw deb ua haujlwm ywj pheej ntawm wifi txuas. NTUJ
Tswj Cov Khoom Siv Hauv Tsev Siv NodeMCU (ESP8266) thiab Blynk App: 8 Kauj Ruam (nrog Duab)
Tswj Cov Khoom Siv Hauv Tsev Siv NodeMCU (ESP8266) thiab Blynk App: Hauv qhov kev qhia no, peb yuav kawm paub siv Blynk app thiab NodeMCU (ESP8266) txhawm rau tswj teeb (lwm yam khoom siv hauv tsev yuav zoo xwb), kev sib koom ua ke yuav ua hauv internet. Lub hom phiaj ntawm cov lus qhia no yog los qhia qhov yooj yim
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau