Cov txheej txheem:

Tsim Koj Tus Kheej Kev Txhim Kho Pawg Thawj Coj: 5 Kauj Ruam
Tsim Koj Tus Kheej Kev Txhim Kho Pawg Thawj Coj: 5 Kauj Ruam

Video: Tsim Koj Tus Kheej Kev Txhim Kho Pawg Thawj Coj: 5 Kauj Ruam

Video: Tsim Koj Tus Kheej Kev Txhim Kho Pawg Thawj Coj: 5 Kauj Ruam
Video: Tsim Nyog Kuv Yog Tus Tu Siab - Tsom Xyooj Nkauj Tawm Tshiab 2022 2024, Lub rau hli ntuj
Anonim
Tsim Koj Tus Kheej Kev Txhim Kho
Tsim Koj Tus Kheej Kev Txhim Kho

Nco tseg: Cov ntawv qhia no suav nrog cov ntaub ntawv pub dawb tsim tsim pawg thawj coj saib xyuas, tsis pub dawb schematic lossis lwm yam

Hauv qhov kev qhia no, Kuv yuav muab cov ntaub ntawv hais txog yuav ua li cas koj tuaj yeem tsim koj tus kheej lub rooj tsav xwm txhim kho thiab dab tsi yog cov lus qhia tseem ceeb thiab cov kauj ruam. Ua ntej pib tsim koj yuav tsum paub 2 yam tseem ceeb:

  1. Kirchhoff txoj cai tam sim no thiab qhov hluav taws xob
  2. Tsawg thiab siab dhau lim

Kauj Ruam 1: Xaiv Microcontroller

Xaiv Microcontroller
Xaiv Microcontroller

Rau kuv tus kheej pawg thawj coj, Kuv xaiv STM32 microcontroller, uas yog ARM-based. Koj yuav tsum xaiv MCU thaum koj thov. Yog tias koj yog tus pib koj tuaj yeem xaiv Atmega 328p uas yog siv hauv Arduino.

  1. Ua ntej txiav txim siab yam twg koj xav tau. Muaj pes tsawg I/O, USART, SPI thiab lwm yam xav tau
  2. Nyeem cov ntawv thiab kawm paub cov yam ntxwv ntawm koj tus kheej MCU

Koj tuaj yeem siv txhua qhov ntxaws hauv cov ntawv teev npe. Piv txwv li: Yuav xaiv Crystal oscillator thiab capacitors li cas. Hauv cov yam ntxwv hluav taws xob, koj tuaj yeem pom txhua qhov nthuav dav thiab koj tuaj yeem xaiv nws li cas.

Kauj Ruam 2: Fais Fab Tshooj

Fais Fab Tshooj
Fais Fab Tshooj
Fais Fab Tshooj
Fais Fab Tshooj

Qhov tseem ceeb thib ob yog qhov tsim lub zog. Qhib cov yam ntxwv hluav taws xob thiab nrhiav qhov ntsuas siab tshaj plaws thiab kawm paub qhov Vdd voltage. Kuv qhov MCU nominal voltage yog 3.3v. Yog li kuv xav tau ob lub zog. Ua ntej Rau kev tawm tswv yim, Kuv xav tau 5V qhov ntsuas hluav taws xob thiab nws yuav txuas ntxiv nrog 3.3 qhov ntsuas hluav taws xob. Txheeb xyuas koj cov kev xav tau thiab xaiv qhov ntsuas hluav taws xob (LDO) thiab tshuaj xyuas cov ntaub ntawv (kev siv hluav taws xob thiab ntsuas lub zog). Xaus ntawm cov ntawv koj yuav pom cov ntawv thov raug thiab koj tuaj yeem siv cov piv txwv no rau koj pawg thawj coj.

Kauj Ruam 3: UART Choj

UART Choj
UART Choj

Peb MCU sib tham nrog lub khoos phis tawj (tus neeg sau). Yog li peb xav tau UART Choj vim li no. Koj tuaj yeem pom txhua cov ntsiab lus hais txog UART hauv qhov txuas.

Muaj ob peb qhov kev sib txuas ua ke rau UART txuas hniav thiab cov no yog FTDI, CP2102-9 thiab CH340 Hauv kuv qhov haujlwm, Kuv siv FTDI-232RL vim tias nws nrawm dua li lwm cov chips thiab ntau dua Windows lossis Mac tab sis kim. Hauv cov ntawv muaj piv txwv cov voj voog. Kuv MCU siv 3.3 qib hluav taws xob. Yog li kuv tau siv qhov piv txwv txaus ntseeg. Ceev faj txog qhov ntawd, txwv tsis pub, koj tuaj yeem muab kev puas tsuaj rau koj li MCU.

Kauj Ruam 4: Tsim PCB

Kuv siv EAGLE PCB rau txoj haujlwm no. Koj tuaj yeem siv ib qho ntawm CAD cov haujlwm. Tom qab tsim koj lub voj voog. Koj yuav tsum txheeb xyuas DRC thiab ERC tsis raug. Nco ntsoov txhua yam raug. Thaum tsim thawj zaug txheeb xyuas cov khoom muaj nyob koj tuaj yeem pom yooj yim lossis tsis muaj. Tom qab ntawd siv qhov kev tivthaiv hauv qhov program. Yog tias koj tsis muaj peev xwm tuaj yeem siv tau koj tuaj yeem siv sim xaiv cov khoom loj dua 'rooj plaub. Piv txwv li, koj yuav tsum xaiv 1206 rooj plaub tiv thaiv, tsis yog 805 lossis 603 kis.

Ua ntej, nyeem cov khoom tsim muaj peev xwm txuas. Tom qab ntawd teeb tsa cov cai tsim koj txoj haujlwm ua ntej koj pib tsim PCB. Teeb liab dav yuav tsum tau suav vim tias tam sim no ntau dua txhais tau tias ntau txoj kev dav dav.

Kauj ruam 5: Soldering

Soldering
Soldering
Soldering
Soldering

Rau kev xuas phom, koj muaj ntau txoj kev xaiv. Koj tuaj yeem xaj koj lub chaw tsim khoom los sib sau ua ke koj cov khoom lossis koj tuaj yeem yuav lub stencil lossis koj tuaj yeem txuas nrog hlau txuas. Txoj kev yog nyob ntawm koj. Kuv tau siv kuv cov khoom siv nrog cov hlau txuas thiab kuv siv 900m-2c hlau taub. Koj yuav tsum txheeb xyuas cov ntawv teev npe rau qhov ntsuas kub thiab ua kom sov koj cov khoom. Txwv tsis pub, koj tuaj yeem muab kev puas tsuaj rau koj cov khoom. Siv cov xaim hluav taws xob zoo thiab tom qab thiab ua ntej koj yuav tsum tau ntxuav koj lub PCB siv cawv.

Pom zoo: