Cov txheej txheem:

Siv STM32 Zoo li Arduino Tutorial - STM32F103C8: 5 Cov Kauj Ruam
Siv STM32 Zoo li Arduino Tutorial - STM32F103C8: 5 Cov Kauj Ruam

Video: Siv STM32 Zoo li Arduino Tutorial - STM32F103C8: 5 Cov Kauj Ruam

Video: Siv STM32 Zoo li Arduino Tutorial - STM32F103C8: 5 Cov Kauj Ruam
Video: AES Encryption: What's the difference between the IV and Key? Why do we need an IV? 2024, Hlis ntuj nqeg
Anonim
Image
Image
Tau PCBs rau Koj Txoj Haujlwm Tsim
Tau PCBs rau Koj Txoj Haujlwm Tsim

Hav, ua li cas, Cov Menyuam! Akarsh nov los ntawm CETech.

Hauv cov lus qhia hauv qab no, peb yuav saib qhov sib txawv microcontrollers muab los ntawm STM zoo li STM32F103C8, STM32F030F4 thiab STM8S103F3.

Peb yuav sib piv cov micros no rau ib leeg nrog rau kev sib piv lawv rau Arduino.

Thaum qhov ntawd tawm ntawm txoj kev peb yuav hloov pauv STM32F103C8 rau Arduino kom koj tuaj yeem tso ib qho Arduino IDE code rau STM32 siv tsuas yog USB cable zoo li koj xav nrog Arduino.

Cia peb pib nrog kev lom zem tam sim no.

Kauj Ruam 1: Tau PCBs rau Koj Txoj Haujlwm Tsim

Koj yuav tsum txheeb xyuas PCBGOGO rau xaj PCBs online kom pheej yig!

Koj tau txais 10 qhov zoo PCBs tsim thiab xa mus rau koj lub qhov rooj rau 5 $ thiab qee qhov xa khoom. Koj tseem yuav tau txais luv nqi ntawm kev xa khoom ntawm koj thawj daim ntawv xaj.

PCBGOGO muaj peev xwm ntawm PCB los ua ke thiab tsim khoom stencil nrog rau ua kom tau cov qauv zoo.

Txheeb xyuas lawv Yog tias koj xav tau PCBs tsim lossis sib sau ua ke.

Kauj Ruam 2: STM32F103C8 Vs STM32F030F4 Vs STM8S103F3 Vs Arduino

STM32F103C8 Vs STM32F030F4 Vs STM8S103F3 Vs Arduino
STM32F103C8 Vs STM32F030F4 Vs STM8S103F3 Vs Arduino

Yog li, raws li kev sib piv saum toj no uas kuv tau kos, cia ua ke peb qhov kev tshawb pom:

1) Arduino thiab STM8s yog 8-ntsis txheej txheem thiab ob qho ntxiv yog 32-ntsis MCUs.

2) STM32F103 muaj lub cim xeeb loj tshaj plaws uas yog ob npaug piv rau Arduino, qhov RAM yog 10 npaug loj dua li ntawm Arduino.

3) Tus nqi ntawm qhov muaj zog STM32F103 tsawg dua li ntawm Arduino Nano clone tab sis nyob hauv qhov sib piv. STM8S103, ntawm qhov tsis sib xws, ua rau nws cov ntaub ntawv raws li pheej yig micro tab sis twv yuav raug hu muab lub zog qis dua.

4) Kev teeb tsa Arduino yog qhov yooj yim xws li ntsaws rau hauv USB cable thiab tsoo lub pob upload hauv IDE. STM32 series tsis muaj qhov tshwj xeeb no tawm ntawm lub thawv tab sis tuaj yeem ntxiv rau STM32F103 los ntawm kev xa cov Arduino bootloader rau nws. Qhov twg yog qhov peb yuav ua hauv cov kauj ruam tom ntej:)

Kauj Ruam 3: Tshaj Tawm Arduino Bootloader rau STM32

Rub tawm Arduino Bootloader rau STM32
Rub tawm Arduino Bootloader rau STM32
Rub tawm Arduino Bootloader rau STM32
Rub tawm Arduino Bootloader rau STM32
Rub tawm Arduino Bootloader rau STM32
Rub tawm Arduino Bootloader rau STM32

1) Txuas STM32F103 nrog FTDI pawg thawj coj saib zoo li hauv daim duab.

2) Hloov BOOT 0 header los ntawm '0' txoj haujlwm mus rau '1' txoj haujlwm ua ntej txuas FTDI pawg thawj coj mus rau lub khoos phis tawj kom qhib lub bootloader

3) Rub tawm qhov tsim nyog bootloader (PC13 hauv kuv rooj plaub) los ntawm qhov txuas hauv qab no:

4) Rub tawm thiab teeb tsa Flasher cov cuab yeej siv uas koj tuaj yeem nyem lub binary:

5) Txuas lub khoos phis tawj mus rau PC thiab qhib lub cuab yeej flasher tau teeb tsa hauv qhov chaw hauv qab no rau kuv cov ntaub ntawv:

6) Thaum lub cuab yeej qhib lawm xaiv qhov chaw nres nkoj COM raug thiab ua mus ntxiv, hauv cov kauj ruam tom ntej thaum koj pom lub hom phiaj nyeem tau cov lus txuas mus rau khawm tom ntej ob zaug.

7) Xaiv qhov rub tawm mus rau lub cuab yeej xaiv tom qab ntawv xaiv cov ntawv binary uas nyob hauv koj lub PC los ntawm txhaj rau 3 tus lej thiab tom qab ntawd nyem lub pob Tom ntej uas yuav rub tawm lub bootloader rau lub cuab yeej thiab yuav qhia cov lus ua tiav zoo li hauv daim duab.

8) Tom qab kaw qhov cuab yeej flasher, hloov BOOT 0 jumper rov qab rau '0' txoj haujlwm ua ntej tshem lub zog rau STM32 pawg thawj coj saib.

Kauj Ruam 4: Teeb Arduino IDE rau STM32

Teeb tsa Arduino IDE rau STM32
Teeb tsa Arduino IDE rau STM32
Teeb tsa Arduino IDE rau STM32
Teeb tsa Arduino IDE rau STM32
Teeb tsa Arduino IDE rau STM32
Teeb tsa Arduino IDE rau STM32

1) Ntxiv qhov URL hauv qab no rau tus thawj tswj hwm ntxiv URL:

2) Mus rau Tus Thawj Saib Xyuas Haujlwm thiab tshawb nrhiav STM32, thaum cov npe pom zoo teeb tsa cov version los ntawm stm32duino.

3) Txuas lub STM32 lub rooj tsavxwm rau lub khoos phis tawj siv USB cable thiab xaiv lub rooj tsavxwm raug hauv cov cuab yeej ntawv qhia zaub mov zoo li hauv daim duab saum toj no.

4) Tam sim no qhib ib qho piv txwv kos duab uas koj xav tau, kuv tau qhib Blink piv txwv thiab tsuas yog nyem lub pob upload thiab koj yuav tuaj yeem tso cov cai yam tsis muaj lwm cov kauj ruam.

Kauj ruam 5: Yog Nws

Yog Nws!
Yog Nws!

Sim tawm qhov piv txwv sib txawv uas yuav tsum tau xa mus rau lub rooj tsavxwm kom yooj yim li Blink kos duab ua.

Qhia rau kuv paub hauv cov lus hauv qab no koj tuaj yeem sau lub zog ntawm pawg thawj coj no thaum siv nrog Arduino IDE, kuj tseem xav paub ntau ntxiv txog cov ncauj lus thov saib kuv cov vis dis aus ntawm tib lub ncauj lus.

Pom zoo: