Cov txheej txheem:

ESP8266-07 Programmer Nrog Arduino Nano: 6 Cov Kauj Ruam (nrog Duab)
ESP8266-07 Programmer Nrog Arduino Nano: 6 Cov Kauj Ruam (nrog Duab)

Video: ESP8266-07 Programmer Nrog Arduino Nano: 6 Cov Kauj Ruam (nrog Duab)

Video: ESP8266-07 Programmer Nrog Arduino Nano: 6 Cov Kauj Ruam (nrog Duab)
Video: Настя и Арбуз с вымышленной историей для детей. 2024, Kaum ib hlis
Anonim
ESP8266-07 Programmer Nrog Arduino Nano
ESP8266-07 Programmer Nrog Arduino Nano

Nov yog cov lus qhia luv luv rau kev tsim lub ESP8266-07/12E lub rooj tsav xwm zoo siv Arduino nano. Cov xov tooj hluav taws xob zoo ib yam li qhov tau qhia ntawm no. Koj muaj cov kev xaiv los xaim txoj haujlwm no mus rau ntawm lub khob cij, muab koj tus kheej tso rau ntawm phab ntsa, lossis siv cov ntaub ntawv gerber txuas los tsim kom muaj kev ntseeg siab dua pcb. Kuv hais kom lo nrog pcb lossis perfboard (yog tias koj ntseeg koj tus kheej kom zoo dua qub) yog tias koj nquag siv cov cuab yeej hais los no.

Kuv tab tom npaj tsim qee cov ntsiab lus nrog ESP-07, thiab kuv yuav siv lub rooj tsav xwm tsim hauv qhov kev qhia no tas li.

Tus qauv tsim muaj lub hauv paus tswj hwm 3.3v qhov hloov pauv ntawm ESP module, koj yuav tsum txuas 5v khoom ntxiv rau Arduino usb cable. Ntxiv mus, koj yuav tsum tseem siv lub rooj tsav xwm tawg; nws ua txhua yam kom yooj yim ua haujlwm nrog.

Khoom siv

  • Arduino nano cov
  • ESP8266-07 lossis/12/e
  • ESP-07 breakout board
  • Mini usb kab
  • 5.5mm fais fab jack (txiv neej thiab poj niam)
  • Poj niam header pins 1*15 (2pcs)
  • Poj niam header pins 1*8 (2pcs)
  • 6pin toggle hloov (yeem)
  • laub khawm (2pcs)
  • 5Kohm resistors (2pcs)
  • 10Kohm resistors (2pcs)
  • lm1117 3.3v (Kuv siv lub smd version, koj tuaj yeem siv TH yog tias koj xav tsim lub voj voog ci ci)
  • 47uf capacitor (koj tuaj yeem siv qhov txiaj ntsig siab dua yog tias koj muaj teeb meem teeb meem)
  • breadboard, lossis perfboard, lossis pcb

Kauj Ruam 1: Kev Txuas Hluav Taws Xob

Qhov thaiv
Qhov thaiv
Qhov thaiv
Qhov thaiv

Daim phiaj Circuit Court:

1. Ntsaws rau hauv daim ntawv qhia zaub mov Arduino nano, thiab ESP tus qauv siv lub rooj tsav xwm tawg. Txhawm rau nkag tau zoo dua rau cov pins ntawm pawg thawj coj tawg, koj tuaj yeem siv ob lub rooj noj mov tsis siv ib qho raws li qhia.

2. Hwj chim rau txoj kab: txuas 5v tus pin ntawm lub zog txuas rau tus pin 3 ntawm lm1117 3.3v tus tswj hwm, GND rau tus pin 1, thiab cov zis los ntawm tus pin 2 mus rau "+" txoj kev tsheb nqaj hlau. Kuj txuas GND tus pin ntawm lub zog txuas mus rau " -" ntawm lub khob cij. Ntxiv 47uf capacitor thiab txuas cov ntsia ua ke raws li qhia.

3. Ntxiv ob lub laub khawm (rov pib dua thiab ua haujlwm) thiab txuas ib tus pin los ntawm txhua qhov kom rov pib dua thiab lwm qhov rau GPIO0 ntawm ESP. Rub qhov txuas txuas ib txwm rau 3.3v siv 10kohm resistors. Txuas qhov nquag qhib pins rau GND

4. Txuas + tsheb nqaj hlau mus rau VCC ntawm ESP pawg thawj coj tawm

5. Txuas - tsheb nqaj hlau mus rau GND ntawm ESP pawg thawj coj tawm

6. Rub tus pin CH_PD thiab GPIO15 ntawm ESP rau +3.3v kev tsheb nqaj hlau siv 5kohm resistors

7. Txuas tus pin RX ntawm nano mus rau RX ntawm ESP siv 2-channel toggle switch

8. Txuas TX ntawm Nano mus rau TX ntawm ESP siv 2-channel toggle switch. (lub toggle hloov yog xaiv tau; nws ua rau nws muaj peev xwm tshem tawm tag nrho cov teeb liab ntawm Arduino thiab ESP)

9. Choj RST thiab GND pins ntawm Arduino, cov kauj ruam no "xiam oob qhab" ATmega nti.

Kuv siv lub zog 5v sab nraud vim tias arduino tsis tuaj yeem xa tam sim no kom txaus rau lub zog ESP module ntseeg tau. Kuv tab tom siv lub charger qub thiab hloov kho usb cable.

Kauj Ruam 2: Soldering Perfboard Circuit

Soldering Perfboard Circuit
Soldering Perfboard Circuit
Soldering Perfboard Circuit
Soldering Perfboard Circuit
Soldering Perfboard Circuit
Soldering Perfboard Circuit
Soldering Perfboard Circuit
Soldering Perfboard Circuit

Kuv tau tsim qhov txheej txheem rau ib sab 7cm los ntawm 9cm perfboard raws li daim duab thaiv kab hauv cov kauj ruam dhau los. Sim siv qhov chaw sib koom ua ke ib yam nkaus li koj tsis txhob khiav mus rau qhov teeb meem. Koj tuaj yeem siv cov duab fritzing txuas nrog ua cov lus qhia.

Tsis tas li, Kuv tau siv 2.54mm poj niam lub taub hau taub hau ua Nano thiab ESP tshem tawm tau.

Kauj Ruam 3: PCB Circuit

PCB Circuit
PCB Circuit

Xa daim ntawv gerber txuas rau lub chaw tsim khoom pcb thiab qhov ntawd yog nws!

Nws yog ua raws cov thaiv uas tau hais yav dhau los, tab sis kev teeb tsa sib txawv me ntsis. Kuv yuav tsum ua kom nws nruj me ntsis kom txuag tau koj cov nyiaj

Cov ntaub ntawv raug tsim nrog EasyEDA.

Kauj Ruam 4: Ntxiv Esp8266 Txhawb rau Arduino IDE

Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE
Ntxiv Esp8266 Txhawb rau Arduino IDE

Koj tuaj yeem hla cov kauj ruam no yog tias koj muaj tus qauv twb teeb tsa lawm

Kauj Ruam 1: qhib IDE thiab mus rau File >> nyiam, lub qhov rais qhib. Nws yuav zoo li ib qho ntawm cov duab txuas nrog

Kauj Ruam 2: Hauv lub npov liab, muab kab ntawv no tso rau:

arduino.esp8266.com/stable/package_esp8266com_index.json

yog tias muaj qee yam twb tau sau muaj, ntxiv tus lej thiab tom qab ntawd muab tshuaj txhuam qhov URL

Kauj Ruam 3: Mus rau cov cuab yeej >> pawg thawj coj >> tus thawj tswj hwm, xa mus rau cov duab txuas yog tias koj muaj teeb meem nrog qhov ntawd

Kauj Ruam 4: thaum lub qhov rai ua tiav qhov kev thauj khoom, siv lub thawv tshawb nrhiav esp8266, nrhiav qhov tshwm sim nrog lub npe "esp8266 los ntawm esp8266 zej zog" thiab teeb tsa

NCO TSEG: Kuv tau teeb tsa version 2.5.2 vim tias qee qhov tom qab ua rau "ua rau neeg tuag taus"

Kauj Ruam 5: Thaum teeb tsa tiav, mus rau Cov Cuab Yeej >> Pawg Thawj Coj >> nrhiav thiab xaiv "genp esp8266 module"

Kauj Ruam 6: Mus rau cov cuab yeej thiab hauv qab "board: Generic esp8266 module" koj yuav pom qee qhov kev teeb tsa. Nco ntsoov tias koj li phim cov uas nyob hauv daim duab txuas.

Kauj Ruam 5: Tshaj Tawm Daim Sketch

Txuas lub usb cable rau Arduino Nano thiab txuas nws mus rau lub khoos phis tawj. Tsis tas li, txuas lub hwj chim 5v rau lub hwj chim txuas ntawm lub rooj tsavxwm.

Yog tias koj tau txiav txim siab ntxiv qhov toggle hloov, nco ntsoov tias nws tau nias.

Txhawm rau muab tus qauv esp rau hauv hom kev ua haujlwm:

Nias thiab tuav RESET thiab PROGRAM cov nyees khawm, thiab tom qab ntawd rov ua dua "RESET" thaum tseem nias "PROGRAM"

Tuav ib pliag thiab mam li rov hais dua "PROGRAM" khawm

Hauv lub khoos phis tawj, qhib IDE thiab mus rau Cov Cuab Yeej >> chaw nres nkoj thiab xaiv COM chaw nres nkoj uas koj tau txuas koj lub xov tooj usb rau hauv lub computer.

Sau koj cov cai, thiab siv khawm rub tawm nyob rau sab saud sab laug ntawm koj li IDE los pib ua haujlwm ESP module.

Kauj Ruam 6: Xeem Txoj Cai

Nws tuaj yeem sim qee qhov haujlwm yam tsis tau tshem tus qauv ntawm nws lub qhov (socket).

Txhawm rau ua li ntawd, nyem qhov toggle hloov, thiab ntaus RESET khawm.

Kuv tau ntxiv qhov hloov pauv to cais ob lub laug cam kom tiav

Zoo siab!

Pom zoo: