Cov txheej txheem:
- Kauj Ruam 1: STM NUCLEO-L476RG
- Kauj Ruam 2: Tsim Tus Kheej
- Kauj ruam 3: Nkag Mus Rau Nws
- Kauj ruam 4: Ntxiv Board rau Compiler
- Kauj Ruam 5: Qauv Cai
- Kauj Ruam 6: Ntsuas Piv Txwv
- Kauj Ruam 7: Txhawm rau Sau
- Kauj Ruam 8: Hloov Binary rau Pawg Thawj Coj
- Kauj ruam 9: Blink
Video: Txoj Kev Yooj Yim Tshaj Plaws Tshaj Plaws rau Microcontroller!: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Puas yog koj nthuav hauv kev muaj lub microcontroller uas siv lub zog tsawg dua? Hnub no, kuv yuav qhia koj rau STM32 Ultra Low Power - L476RG, uas siv 4 zaug tsawg zog dua li Arduino Mega thiab muaj lub zog ua haujlwm Cortex. Kuv tseem yuav tham txog MBED, uas yog lus C uas ua haujlwm tsis yog ntawm STMicroelectronics cov txheej txheem, tab sis kuj ntawm NXP thiab cov txheej txheem txheej txheem uas muaj ARM nucleus. Thaum kawg, Kuv yuav qhia koj tus compiler online.
Kauj Ruam 1: STM NUCLEO-L476RG
• STM32L476RGT6 hauv LQFP64 pob
• ARM®32-ntsis Cortex®-M4 CPU
• Hloov kho lub sijhawm nrawm
• (ART Accelerator ™) tso cai 0-tos lub xeev ua tiav
• los ntawm Flash nco
• 80 MHz max CPU zaus
• VDD los ntawm 1.71 V txog 3.6 V
• 1 MB nyem
• 128 KB SRAM
• SPI (3)
• I2C (3)
• USART (3)
• UART (2)
• LPUART (1)
• GPIO (51) nrog kev cuam tshuam sab nraud
• Capacitive sensing nrog 12 raws
• 12-ntsis ADC (3) nrog 16 raws
• 12-ntsis DAC nrog 2 raws
Xav paub ntau ntxiv:
Kauj Ruam 2: Tsim Tus Kheej
Mus rau www.mbed.com thiab tsim ib tus as khauj. Sau cov ntaub ntawv rau npe.
Nyem rau ntawm captcha, nyeem thiab lees txais cov lus, thiab nyem "Sau npe".
Kauj ruam 3: Nkag Mus Rau Nws
Tom qab sau npe, txheeb xyuas koj tus email thiab nkag mus rau hauv MBED lub vev xaib
Kauj ruam 4: Ntxiv Board rau Compiler
Yog tias koj twb muaj daim npav MBED ntsaws rau hauv koj lub computer, nws yuav tshwm li tus ntiv tes xoo. Hauv nws, qhib MBED. HTM cov ntaub ntawv hauv qhov browser.
Lossis koj tuaj yeem mus rau os.mbed.com/platforms thiab xaiv koj lub rooj tsavxwm los ntawm cov npe ntawm cov laug cam.
Ntawm nplooj ntawv ntawm koj lub rooj tsavxwm, nyem rau "Ntxiv rau koj li MBED Compiler"
Kauj Ruam 5: Qauv Cai
Mus rau nplooj ntawv no nrog qhov piv txwv ntsais thiab nyem rau "Ntshuam rau hauv Compiler."
Kauj Ruam 6: Ntsuas Piv Txwv
Ntawm qhov screen uas qhib, nyem "Ntshuam"
Kauj Ruam 7: Txhawm rau Sau
Nyem rau "Compile" khawm kom cov neeg rau zaub mov suav qhov chaws rau hauv cov ntaub ntawv binary.
Qhov browser yuav pib rub tawm cov ntaub ntawv binary sai li sai tau thaum tus neeg rau zaub mov ua tiav kev suav sau.
Kauj Ruam 8: Hloov Binary rau Pawg Thawj Coj
Txhawm rau hloov cov binary mus rau daim npav, yooj yim rub lossis luam thiab muab cov ntawv rub tawm binary tso rau hauv daim nplaub tshev daim npav, uas yuav tshwm sim li tus ntiv tes xoo.
Kauj ruam 9: Blink
Ntawm no peb muaj cov cai. Peb yuav suav nrog MBED, teeb tsa tus lej digital, ntawm lwm cov lus txib.
#suav nrog "mbed.h" DigitalOut myled (LED1); int main () {thaum (1) {myled = 1; // LED yog tos tos (0.2); // 200 ms myled = 0; // LED yog OFF tos (1.0); // 1 vib nas this}
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): 7 Kauj Ruam
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): Xav hloov pauv yam ntawm koj lub laptop lossis PC? Xav tau kev hloov pauv hauv koj qhov chaw? Ua raws cov kauj ruam no yooj yim thiab yooj yim kom ua tiav koj tus kheej lub computer ntsuas phoo
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: 3 Kauj Ruam
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: Koj Yuav Tsum Tau Li Cas - Tin ntawv ci 1 AA roj teeb (qee lub roj teeb AAA yuav ua haujlwm) 1 Mini Lub Teeb Pom Kev (lub teeb siv rau feem ntau lub teeb nyem; xa mus rau daim duab) Tus Tswj (yog xav tau)