Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Txhim kho Firmware
- Kauj ruam 2: Uploading System Files
- Kauj Ruam 3: Pib Tsim Lub Ntiaj Teb Zoo
Video: Wroombian: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
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
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
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:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
RC Taug Qab Neeg Hlau Siv Arduino - Kauj Ruam Ib kauj ruam: 3 Kauj Ruam
RC Tracked Robot Siv Arduino - Kauj Ruam Ib Nrab: Hav guys, Kuv rov qab los nrog lwm tus neeg hlau txias chassis los ntawm BangGood. Vam tias koj tau dhau los ntawm peb cov phiaj xwm yav dhau los - Spinel Crux V1 - Tus Cwj Pwm Tswj Tus Neeg Hlau, Spinel Crux L2 - Arduino Xaiv thiab Muab Neeg Hlau nrog Robotic caj npab thiab Badland Braw
Kawm Yuav Ua Li Cas Kos Tus Tswm Ciab - Kauj Ruam Ib Kauj Ruam: 6 Kauj Ruam
Kawm Yuav Ua Li Cas Thiaj Li Tswmciab - Kauj Ruam Ib kauj ruam: Cov tswm ciab no siv sijhawm 10 feeb los kos yog tias koj ua raws kuv cov kauj ruam ua tib zoo
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: 9 Kauj Ruam
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: Cov ntawv qhia no yog qhia koj yuav tsim lub Caj Npab Caj Npab ntawm koj tus kheej li cas