Cov txheej txheem:

Yooj Yim Arduino Uno thiab ESP8266 Kev Sib Koom: 6 Cov Kauj Ruam
Yooj Yim Arduino Uno thiab ESP8266 Kev Sib Koom: 6 Cov Kauj Ruam

Video: Yooj Yim Arduino Uno thiab ESP8266 Kev Sib Koom: 6 Cov Kauj Ruam

Video: Yooj Yim Arduino Uno thiab ESP8266 Kev Sib Koom: 6 Cov Kauj Ruam
Video: Invited card 2024, Hlis ntuj nqeg
Anonim
Yooj Yim Arduino Uno thiab ESP8266 Kev Sib Koom
Yooj Yim Arduino Uno thiab ESP8266 Kev Sib Koom

Peb lub hom phiaj yog txhawm rau tsim Esp8266 AT lub tsev qiv ntawv hais kom ua (raws li ITEAD lub tsev qiv ntawv), uas yuav ua haujlwm tau zoo ntawm cov software software rau feem ntau ESP8266 cov cuab yeej, muab lawv muaj cov firmware uas teb rau AT cov lus txib (uas feem ntau yog lub khw tsim ua ntej).

Peb tab tom faib lub tsev qiv ntawv ua ntej no rau kev sim thiab yuav txaus siab rau koj cov lus tawm tswv yim thiab kev txhim kho los ntawm Github Chaw Tso Khoom.

Cov khoom siv kho vajtse:

  1. ESP8266
  2. Arduino UNO & Genuino UNO
  3. Logic Level Converter - Ob -Directional
  4. Cov qhob cij
  5. Jumper xov hlau

Software apps thiab cov kev pabcuam online:

  1. Arduino IDE Cov
  2. circuito.io
  3. Firmware.ino

Kauj ruam 1: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Txuas ESP8266 ntawm Software Serial rau koj Arduino Uno board siv lub logic hloov pauv, raws li pom hauv daim duab txuas txuas.

Kauj ruam 2: Txuas rau koj li Wi-nkaus

Qhib Firmware.ino lub tsev qiv ntawv los ntawm Github thiab sau koj tus SSID thiab tus password rau koj li Wi-nkaus:

const char *SSID = "WIFI-SSID"; const char *PASSWORD = "WIFI-PASSWORD";

Kauj Ruam 3: Tshaj Tawm Daim Duab Sketch rau Koj Arduino

Rub cov Sketch rau koj Arduino
Rub cov Sketch rau koj Arduino

Txuas Arduino rau koj lub khoos phis tawj thiab xa cov duab kos.

Kauj Ruam 4: Qhib Serial Monitor hauv Arduino IDE

Qhib Serial Monitor hauv Arduino IDE
Qhib Serial Monitor hauv Arduino IDE

Nyem rau ntawm Serial monitor khawm hauv Arduino IDE (nyob rau saum kaum sab xis). Yog tias txhua yam zoo, koj yuav tsum pom cov ntawv tso tawm hauv qab no ntawm tus saib xyuas.

Kauj ruam 5: Troubleshooting

Teeb meem
Teeb meem

Yog tias koj tsis tau txais lus teb, sim hloov kho ESP firmware rau qhov muab hauv qab no. Siv 3.3v FTDI board zoo li qhov no.

Hookup ESP rau FTDI Tau ESP8266Flasher

Tau txais 1.1.1.1 Firmware

Nyem rau ESP

Yog tias koj tau txais cov lus teb ib nrab los ntawm esp8266 thaum siv software serial, mus rau:

C: / ProgramFiles (x86) Arduino / hardware / arduino / avr / libraries / SoftwareSerial / src / SoftwareSerial.h

Hloov kab 42:

#define _SS_MAX_RX_BUFF 64 // RX tsis loj

Rau: #define _SS_MAX_RX_BUFF 256 // RX tsis loj.

Qhov no yuav ua rau cov software tsis txuas ntxiv. Qee zaum teeb tsa tus nqi baud ntawm kev pib ua tsis tiav, sim rov pib dua Arduino, nws yuav tsum ua haujlwm zoo. Yog tias yog vim li cas, koj tseem muaj teeb meem, thov tawm lus ntawm no yog li peb yuav sim nrhiav qhov teeb meem. Yog tias koj muaj cov lus qhia txhim kho, thov ua qhov rub tawm ntawm Github. Generally, cov cai no yuav tsum ua haujlwm rau txhua Arduino Uno ESP8266-01 version.

Tau qhov twg los:-

www.hackster.io

create.arduino.cc

Kauj Ruam 6: Hu Rau Kuv (Yog Xav Tau)

Yog tias koj muaj teeb meem nrog cov lus qhia no, koj tuaj yeem tiv tauj kuv:

Bipul Kumar Gupta

bipulgupta.com

www.facebook.com/bipulkg

www.instagram.com/bipulkumargupta/

twitter.com/bipulgupta

Pom zoo: