Cov txheej txheem:

Txhim Kho Loboris (lobo) Micropython ntawm ESP32 Nrog Windows 10 [yooj yim]: 5 Cov Kauj Ruam
Txhim Kho Loboris (lobo) Micropython ntawm ESP32 Nrog Windows 10 [yooj yim]: 5 Cov Kauj Ruam

Video: Txhim Kho Loboris (lobo) Micropython ntawm ESP32 Nrog Windows 10 [yooj yim]: 5 Cov Kauj Ruam

Video: Txhim Kho Loboris (lobo) Micropython ntawm ESP32 Nrog Windows 10 [yooj yim]: 5 Cov Kauj Ruam
Video: ESP32 - Micropython - Bài 14.1: Lập trình webserver 2024, Hlis ntuj nqeg
Anonim
Txhim Kho Loboris (lobo) Micropython ntawm ESP32 Nrog Windows 10 [yooj yim]
Txhim Kho Loboris (lobo) Micropython ntawm ESP32 Nrog Windows 10 [yooj yim]

Phau ntawv qhia no yuav pab koj teeb tsa loboris micropython ntawm koj ESP32 yam tsis muaj kev paub ntxiv.

Loboris muaj cov tsev qiv ntawv uas tus qauv micropython tsis tau thiab uas muaj txiaj ntsig zoo. Phau ntawv qhia no tshwj xeeb tshaj yog ua rau kuv cov lus qhia yuav siv st7789v tft zaub nrog micropython [yuav los sai sai no]

Kauj ruam 1: Txhim Kho Software

Peb xav tau Software los teeb tsa micropython. Peb pib nrog nab hab sej. Yog tias koj tseem tsis tau teeb tsa nws Kuv xav kom koj teeb tsa Anaconda (anaconda.com), uas yog pob nrog nab hab sej, libarys thiab cov cuab yeej muaj txiaj ntsig. Tsuas yog nruab nws nrog cov txheej txheem xaiv.

Tom qab ntawd koj tseem xav tau cov cuab yeej esp, uas peb xav tau nyem lub firmware. Rub tawm tag nrho cov ntawv los ntawm https://github.com/espressif/esptool thiab unzip nws hauv daim nplaub tshev tshiab

Kauj ruam 2: Rub tawm Firmware

Rub tawm Firmware
Rub tawm Firmware

Rub tawm qhov tseeb firmware los ntawm

github.com/loboris/MicroPython_ESP32_psRAM…

Cov no yog cov khoom tsim ua ntej, uas ua rau nws yooj yim dua. Koj tuaj yeem rub tawm ib txwm ua "MicroPython_LoBo_esp32" lossis ua nrog txhua lub tsev qiv ntawv "MicroPython_LoBo_esp32_all". Yog tias koj tuaj ntawm no los ntawm kuv esp32 tft zaub qhia koj yuav tsum rub tawm "MicroPython_LoBo_esp32_all"

Mus rau hauv lub vev xaib thiab rub cov ntawv.zip.

Qhib cov ntawv zip thiab luam txhua cov ntaub ntawv thiab daim nplaub tshev. Muab lawv tso rau hauv daim nplaub tshev esptool (los ntawm kauj ruam 1). Tsis txhob muab lawv tso rau hauv subfolder! Cov ntaub ntawv rau hauv (micropython.bin thiab lwm yam) yuav tsum nyob hauv tib lub nplaub tshev ib yam li.py cov ntaub ntawv (esptool.py thiab lwm yam). Tsuas yog bootloader.bin yuav tsum nyob hauv subfolder bootloader.bin (Saib daim duab rau tus qauv)

Kauj Ruam 3: Nrhiav COM Port

Txuas koj esp32 ntawm USB. Qhib Windows tus thawj tswj ntaus ntawv (ntawm Windows teeb tsa lossis nias Windows-Key + R, sau "devmgmt.msc" thiab nias sau). Qhib lub ntsiab lus "chaw nres nkoj". Nrhiav qee yam xws li "cp2102". Tom qab muaj qhov chaw nres nkoj COM tau teev tseg, piv txwv li COM7. Nco ntsoov qhov no rau qib tom ntej.

Kauj ruam 4: Nyem Firmware

Kuv xav tias koj ua raws kuv cov lus qhia thiab teeb tsa anaconda. Yog tias koj muaj kev txhim kho nab hab sej sib txawv kuv xav tias koj tuaj yeem hloov kho koj tus kheej hauv qab no.

Qhib "Anaconda prompt" (Nyem Windows startmenu -> Anaconda). Hloov txoj hauv kev rau daim nplaub tshev uas koj cov cuab yeej esp nyob ntawm. Rau kuv qhov no yuav yog "C: / Users / Marc / Desktop / TTGO Display / esptool-master2"

Txhawm rau hloov mus rau daim nplaub tshev hom "cd C: Cov Neeg Siv Marc / Desktop / TTGO Display / esptool-master2" thiab nias nkag mus.

Tam sim no peb nyem lub firmware. Nco ntsoov tias koj esp32 txuas nrog. Nkag mus rau cov lus txib hauv qab no:

nab hab sej esptool.py --chip esp32 --port COM7 --baud 460800 -ua ntej default_reset -tom qab no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size ntes 0x1000 bootloader/bootloader.bin 0xf000 phy_init_data.bin MicroPython.bin 0x8000 partitions_mpy.bin

Hloov qhov chaw nres nkoj COM mus rau qhov chaw nres nkoj uas koj pom hauv cov kauj ruam dhau los thiab nias nkag mus. Tam sim no lub firmware tau flashed. Qhov no yuav siv sijhawm ib pliag.

Kauj Ruam 5: Kuaj Yog tias Lub Firmware tau ua tiav zoo

Kuv hais qhia koj kom siv uPyCraft. (https://docs.dfrobot.com/upycraft/) Rub tawm thiab nruab nws. Qhib qhov programm. Nyem cov cuab yeej -> pawg thawj coj -> esp32. Nyem cov cuab yeej -> Serial -> (Xaiv Serial uas koj lub rooj sib tham txuas nrog, COM7 hauv kuv li)

Yog tias lub teeb nyem ua tiav koj yuav tsum pom ">>>" hauv lub davhlau ya nyob twg. Koj tuaj yeem ntaus "1+1" thiab nias nkag mus, thiab nws yuav tsum rov qab 2. Yog tias koj pom lub qhov rai hloov nrog qhov kev xaiv kom nyem lub firmware, kev teeb tsa yuav ua tsis tiav qhov twg. (Qee zaum qhov no tseem tshwm sim thaum kev teeb tsa ua tiav. Thaum koj pom "flash window", sim txuas ob peb zaug ntxiv, txuas USB ntawm lub rooj tsavxwm, kaw uPyCraft, txuas lub rooj tsavxwm dua, qhib uPyCraft, thiab sim txuas ob peb zaug ntxiv. Qee zaum qhov no ua haujlwm, qee zaum uPyCraft ib txwm ua tsis tiav ntawm thawj zaug tab sis ua tiav nrog qhov txuas thib ob sim).

Pom zoo: