Cov txheej txheem:

Wroombian: 3 Kauj Ruam
Wroombian: 3 Kauj Ruam

Video: Wroombian: 3 Kauj Ruam

Video: Wroombian: 3 Kauj Ruam
Video: Tsov khawb yawg Vaj hua tim qhov ntxa 3/16/2022 2024, Hlis ntuj nqeg
Anonim
Wroombian
Wroombian
Wroombian
Wroombian
Wroombian
Wroombian
Wroombian
Wroombian

Koj puas tau xav ua haujlwm nrog kev ua haujlwm tiag tiag ntawm lub microcontroller? Lossis txawm sim txhim kho koj tus kheej? Tias yog vim li cas kuv nyob ntawm no!

Wroombian yog kev sim tsim kev ua haujlwm ua haujlwm rau ESP-WROOM-32 microcontroller. Nws yog raws li hloov kho me ntsis Micropython thiab LoBo Micropython cov khoom lag luam thiab tso cai rau koj los tsim cov phiaj xwm sib txawv rau ntau lub hom phiaj.

Yooj yim nws tso cai rau koj los tsim, tswj hwm thiab ua haujlwm ib tsab ntawv nab nab uas lub cuab yeej tuaj yeem lis. Yog li koj tuaj yeem tsim ntau cov haujlwm raws li lub cim xeeb tso cai rau koj thiab khiav qee qhov ntawm lawv thaum koj xav tau. Los yog ob ntawm lawv ib txhij, tsim tsab ntawv bash kom khiav lawv hauv qee ntu thiab tswj tag nrho cov kab ke hauv is taws nem!

Thiab qhov no tsis yog tag nrho cov npe ntawm cov yam ntxwv. Wrombian yuav tso cai rau koj los tsim cov phiaj xwm sib txawv, tsis muaj teeb meem nws yog lub teeb pom kev deb, hloov kho IoT invention lossis qee qhov kev sau ua si nqa tau!

Mus rau peb nplooj ntawv wiki kom paub ntau ntxiv txog Wroombian!

Khoom siv

ESP32 pawg thawj coj loj, PC, usb micro cable

Kauj ruam 1: Txhim kho Firmware

Ua ntej tshaj plaws, rub tawm lossis clone peb cov chaw cia khoom rau koj lub khoos phis tawj:

Txhawm rau npaj koj li ESP32 rau kev ua haujlwm koj yuav tsum tau lwv lub cim xeeb flash nco thiab rub tawm lub firmware siv flash.sh tsab ntawv:

1. Nruab Python

2. Nruab esptool ntawm cov lus txib pip:

pip nruab esptool

3. Flash koj lub rooj tsavxwm:

- Linux

Rub tawm lossis clone qhov chaw cia khoom qhib, qhib /firmware/flash.sh, hloov FLASH_COMPORT tus nqi rau koj li ESP32 chaw nres nkoj (piv txwv li /dev /ttyUSB0). Tom qab ntawd hauv hom davhlau ya nyob twg:

./firmware/flash.sh

- Qhov rai

Nruab Git rau Windows, rub tawm lossis clone repository folder, qhib /firmware/flash.sh, hloov FLASH_COMPORT tus nqi rau koj li ESP32 chaw nres nkoj (piv txwv li COM1).

Tom qab ntawd hauv Git bash hom:

./firmware/flash.sh

LOS YOG

Mus rau lub nplaub tshev firmware thiab khiav cov lus txib ntawm tus kheej (yuav ua haujlwm rau Linux ib yam nkaus, tsis txhob hnov qab ntaus hauv qhov chaw nres nkoj siv tau):

esptool --port COM1 lwv_flash

esptool --chip esp32 --port COM1 --baud 460800 -ua ntej default_reset -tom qab hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size pom 0x1000 bootloader/bootloader.bin 0xf000 phy_init_data.bin 0x10000 MicroPy 0x8000 partitions_mpy.bin 0x8000 partitions_mpy.bin

Ua tiav! Tam sim no koj tuaj yeem mus rau theem tom ntej!

Kauj ruam 2: Uploading System Files

Uploading System Cov Ntaub Ntawv
Uploading System Cov Ntaub Ntawv
Uploading System Cov Ntaub Ntawv
Uploading System Cov Ntaub Ntawv

Txhawm rau ua Wroombian ua haujlwm peb yuav tsum thauj tag nrho cov kab ke system rau nws lub cim xeeb flash. Koj tuaj yeem siv Thonny IDE (lossis lwm yam Micropython IDE koj xav tau) rau qhov no.

Rub tawm thiab teeb tsa Thonny, tso nws, tom qab ntawd mus rau Cov Cuab Yeej> Xaiv> Tus txhais lus thiab xaiv koj lub rooj tsavxwm los ntawm cov npe khoom siv. Qhib cov ntawv rub tawm/cloned project hauv tus editor. Koj yuav tsum tau txais cov lus hauv qab REPL plhaub zoo ib yam ntawm daim duab #1. Yog tias koj pom qee qhov yuam kev lossis cov ntawv coj txawv txawv - sim rov thonny nrog Ctrl + F2 ob peb zaug kom txog thaum qhov teeb meem ploj mus.

Tom qab ntawd mus rau qhov project flash directory (hauv 'Lub khoos phis tawj no' qhov rai), thiab rub tawm txhua cov ntaub ntawv thiab cov ntawv tais ib los ntawm ib qho (raws li ntawm daim duab #2). Lawv yuav tsum tshwm ntawm lub qhov rais ntaus ntawv cov ntaub ntawv sab saud.

Kauj Ruam 3: Pib Tsim Lub Ntiaj Teb Zoo

Pib Tsim Lub Ntiaj Teb Zoo!
Pib Tsim Lub Ntiaj Teb Zoo!
Pib Tsim Lub Ntiaj Teb Zoo!
Pib Tsim Lub Ntiaj Teb Zoo!

Koj tuaj yeem siv cov lej, telnet lossis FTP txuas rau lub rooj tsavxwm, yog li cia siv kev txuas txuas rau thawj zaug pib. Rub tawm thiab teeb tsa Putty, qhib nws, xaiv Cov khoom sib txuas raws li nws tau qhia hauv daim duab, ntaus hauv koj qhov chaw nres nkoj thiab teeb 115200 baudrate. Tom qab ntawd qhib qhov kev sib txuas!

Wroombian muaj nplooj ntawv piav qhia zoo heev wiki koj tuaj yeem xa mus rau yog tias koj muaj teeb meem teeb tsa lossis thaum tsim koj tus kheej txoj haujlwm. Ua siab dawb nug koj cov lus nug hauv Tshooj Lus!

Qhov 'pab' hais kom ua yuav qhia koj txhua cov lus txib muaj thiab lawv siv.

Koj tuaj yeem pib koj txoj kev taug los ntawm kev khiav peb cov ntawv sau ntsais muag zoo li no:

khiav hauv tsev/blink.py

Thiab saib koj onboard LED ntsais muag!

Ua tsaug rau kev mloog! Thov mus saib peb github repo kom tau txais xov xwm ntau ntxiv:

Pom zoo: