Cov txheej txheem:

ESP-01 Module Programming Board: 12 Cov Kauj Ruam (nrog Duab)
ESP-01 Module Programming Board: 12 Cov Kauj Ruam (nrog Duab)

Video: ESP-01 Module Programming Board: 12 Cov Kauj Ruam (nrog Duab)

Video: ESP-01 Module Programming Board: 12 Cov Kauj Ruam (nrog Duab)
Video: How to Program ESP01 WiFi Module | Arduino IDE | DIY 2024, Kaum ib hlis
Anonim
Image
Image
Qhia
Qhia

Cov ntaub ntawv ntxiv thiab hloov kho cov ntaub ntawv nov ntawm kuv lub xaib

www.mischianti.org/2019/01/14/esp-01-modules-programming-board/

ESP-01 yog tus nqi qis esp8266 module, nrog WIFI built-in.

Nws tau tsim los ua Arduino WIFI module, tab sis Nws muaj hwj chim ntau dua li Arduino, tam sim no yog tias koj yuav tsum ua me ntsis kev tswj hwm kev xa tawm lossis qee qhov yooj yim digital datalogger Nws yog qhov kev daws teeb meem zoo tshaj plaws.

Koj tuaj yeem nrhiav xov xwm lossis hloov tshiab txog lub rooj tsavxwm no ntawm no.

Kauj ruam 1: Specs

Muaj qee qhov sib txawv ntawm cov qauv no, tab sis txhua tus muaj tus txheej txheem L106 32-ntsis RISC microprocessor core raws li Tensilica Xtensa Pob Zeb Diamond Txuj 106Micro khiav ntawm 80 MHz, thaum koj yuav ib ntawm Nws koj yuav tsum tau them nyiaj mloog nkaus xwb ntawm Flash, qee qhov muaj 512 KiB Flash, lwm 1MiB

Pin Txhais

  • VCC: Hwj chim 3.0 ~ 3.6V
  • GND: Hauv av
  • RESET: Sab nrauv teeb liab pib dua (Qib qis qib: nquag)
  • CH_PD: Chip Enable. Siab: On, nti ua haujlwm kom raug; Tsawg: Tawm, me me tam sim no
  • GPIO0: (FLASH) I/O Lub hom phiaj IO, Yog tias qis dua thaum rov pib dua/lub zog ntawm kev siv nti rau hauv hom phiaj ua haujlwm
  • GPIO1: (TX) I/O General purpose IO and Serial TXd
  • GPIO3: (RX) I/O Lub hom phiaj dav IO thiab Serial RXd
  • GPIO2: I/O General purpose IO and Serial1 TXd

Kauj ruam 2: Programming

Programming
Programming

Raws li koj tuaj yeem pom cov qauv no tsis tau nyob ntawm lub nkoj usb yog li txoj hauv kev yooj yim tshaj plaws rau kev siv yog siv USB rau TTL hloov pauv, koj tuaj yeem pom nws ntawm 0, 50 $.

Kuv muaj qee qhov teeb meem nrog kim kim FT232RL lossis FT232 module, hloov CH340G lossis CH340 ua haujlwm tau zoo heev.

Kauj Ruam 3: Pib Kev Sib Txuas rau Txoj Haujlwm

Kev sib txuas hauv paus rau Programming
Kev sib txuas hauv paus rau Programming

Lub hauv paus kev sib txuas phiaj xwm yog qhov yooj yim heev, koj yuav tsum tso 3.3v ntawm VCC thiab CH_PD (rau lub zog thiab ua kom muaj zog), tom qab ntawd muab tso rau ntawm GND GND thiab GPIO0 (qhov kawg tso rau module ntawm hom kev ua haujlwm), dua li txuas RX rau TX thiab TX rau RX.

Kauj Ruam 4: Kho Koj Lub Tswv Yim

Kho Koj Lub Tswv Yim
Kho Koj Lub Tswv Yim
Kho Koj Lub Tswv Yim
Kho Koj Lub Tswv Yim
Kho Koj Lub Tswv Yim
Kho Koj Lub Tswv Yim

Tshaj li koj yuav tsum teeb tsa koj li Arduino IDE, ua ntej koj yuav tsum ntxiv lub rooj tsav xwm tshiab hauv Tus Thawj Saib Xyuas Haujlwm.

Hauv pawg thawj coj saib xyuas, pawg thawj coj los xaiv yog esp8266.

Tam sim no koj tuaj yeem xaiv pawg dav dav esp8266 los ntawm daim ntawv teev npe

Kauj Ruam 5: Pawg Thawj Tswj Hwm

Pawg Thawj Coj
Pawg Thawj Coj

Cov txheej txheem no tsis txaus ntseeg, koj yuav tsum txuas nrog tom qab tshem kev sib txuas thiab txuas ntxiv mus, thiab siv txhua tus pin nws yog qhov txaus siab heev.

Kuv qhov kev daws teeb meem no yog tsim cov phiaj xwm phiaj xwm (Kuv yog tus kiv cua ntawm pawg thawj coj saib kev pabcuam).

Kev ua haujlwm yog:

  • Lub hwj chim sab nraud los muab ntau dua ampere rau hauv Circuit Court;
  • hloov mus xaiv hom kev ua haujlwm thiab tshaj tawm GPIO0 tus pin;
  • 2 hloov mus qhib RX thiab TX thiab dua li tso cai siv tus pin ntawd rau hauv Circuit Court;
  • khawm rov pib dua kom pib ua haujlwm.

Kauj Ruam 6: PCB Tsab

PCB tsab
PCB tsab

Txheeb xyuas kuv lub xaib rau cov ntaub ntawv ntxiv

Kauj Ruam 7: Qhov tshwm sim ntawm Milling Process

Image
Image
PCB los ua ke
PCB los ua ke

Kuv xav ntxiv qhov tshwm sim ntawm kuv tus qub router zoo (tsim nrog epson lub tshuab luam ntawv thiab tshuab luam ntawv), ntxhib heev tab sis ok.

Kuj tseem muaj kab laum kho los ntawm xaim (hauv cov ntawv kuv muab rau koj tsis muaj ntxiv lawm).

Hauv ob peb hnub kuv vam tias yuav ntxiv cov lus qhia los tsim kuv li CNC tshiab, thiab cov lus qhia los tsim gcode. Lub vev xaib no tab tom ua haujlwm.

Kauj Ruam 8: PCB Los Ua Ke

Tam sim no pib teeb tsa lub rooj tsavxwm.

Kauj Ruam 9: Yuav Siv Pawg Thawj Coj Li Cas

Kev siv yog yooj yim heev:

Thawj ntxig esp01 hauv pawg thawj coj, dua li txuas GND rau GND, TX rau RX thiab RX rau TX ntawm TTL rau USB hloov pauv.

Tam sim no koj tau npaj rau program, Kuv ntxiv qee qhov piv txwv siv.

Upload cov ntaub ntawv ntsais muag

  • Hauv pawg thawj coj saib xyuas koj yuav tsum teeb tsa sab laug hloov nyob rau hauv lub cajmeem hom dua li nyem lub pob pib dua.
  • Txheeb xyuas tias qhov hloov pauv ntawm RX thiab TX Nws nyob hauv hom trasfer. Txij li thaum pib rub tawm daim duab.
  • Thaum ua tiav tso rau hauv "siv hom" pawg thawj coj los tso tus programmer tus pin dawb, thiab khawm kom tso TX hauv "siv hom".
  • Yog li koj tuaj yeem tshawb xyuas sab nraud coj ntsais vim BUILTIN_LED txuas nrog TX tus pin.

Kauj Ruam 10: Siv Txhua 4 Pins ntawm Pawg Thawj Coj

  • Hauv pawg thawj coj saib xyuas koj yuav tsum teeb tsa qith sab laug nyob rau hauv hom kev ua haujlwm dua li nyem lub pob pib dua.
  • Txheeb xyuas tias qhov hloov pauv ntawm RX thiab TX Nws nyob hauv hom trasfer. Txij li thaum pib rub tawm daim duab.
  • Thaum ua tiav tso rau hauv "siv hom" pawg thawj coj los tso tus programmer tus pin dawb, thiab khawm kom muab RX thiab TX pins hauv "siv hom". Yog li koj siv tag nrho 4 tus pin los tswj cov coj.

Kauj Ruam 11: Siv 3 Pins los Tswj Led thiab Ib Leeg rau Debug Serial

  • Hauv pawg thawj coj saib xyuas koj yuav tsum teeb tsa sab laug hloov nyob rau hauv hom phiaj programming dua li nyem lub pob pib dua.
  • Txheeb xyuas tias qhov hloov pauv ntawm RX thiab TX Nws nyob hauv hom trasfer.
  • Txij li thaum pib rub tawm daim duab.
  • Txuas tus saib xyuas txuas mus rau qhov chaw nres nkoj raug.
  • Thaum ua tiav tso rau hauv "siv hom" pawg thawj coj los tso tus programmer tus pin dawb, thiab khawm kom muab RX hauv "siv hom".
  • Yog li koj siv 3 tus pin los tswj cov coj thiab TX kom debug qhov haujlwm.

Kauj ruam 12: Ua tsaug

Yog tias koj muaj teeb meem lossis lwm yam sau tawm tswv yim lossis qhib lub ncauj lus rau lub rooj sab laj.

Pom zoo: