Cov txheej txheem:

Txhua Hauv Ib Lub Tshuab Microcontroler Board: 8 Kauj Ruam
Txhua Hauv Ib Lub Tshuab Microcontroler Board: 8 Kauj Ruam

Video: Txhua Hauv Ib Lub Tshuab Microcontroler Board: 8 Kauj Ruam

Video: Txhua Hauv Ib Lub Tshuab Microcontroler Board: 8 Kauj Ruam
Video: Niam pog khaws qe 10/19/2017 2024, Kaum ib hlis
Anonim
All in One Microcontroler Board
All in One Microcontroler Board

Hauv qhov kev tsim ntawm txhua-hauv-ib lub microcontroller board lub hom phiaj yog kom ua haujlwm tau zoo dua li Arduino, tom qab kwv yees li 100 teev ntawm kev tsim Kuv tau txiav txim siab los qhia nws rau zej zog, Kuv vam tias koj txaus siab rau kev rau siab thiab txhawb nqa nws (Cov lus nug lossis cov ntaub ntawv yuav raug txais tos).

Kauj Ruam 1: Lub Hom Phiaj

Lub Hom Phiaj
Lub Hom Phiaj
Lub Hom Phiaj
Lub Hom Phiaj

ib txoj haujlwm twg muaj qhov xav tau sib txawv: cov ntsuas hluav taws xob, tus ua haujlwm thiab suav nrog, txoj hauv kev yooj yim tshaj plaws yog nrog lub microcontroller zoo ib yam li Arduino, qhov no kuv siv ib qho ntawm PIC16F ntau Microcontroler txij li kuv paub zoo dua.

Cov ntaub ntawv PIC16F1829:

Kev lag luam;)

Sab hauv 32 MHz

UART lossis USB interface (ch340)

SPI lossis I2C x2

Timers (8/16-ntsis) x4 x1

10-ntsis ADC x12

Kuv x18

thiab ntau yam ntxiv (cov ntaub ntawv hauv cov ntawv)

Muaj ntau pob khoom sib txawv tab sis thaum ua cov khoom lag luam uas tsis yog xuas tes ua PCB qhov tsawg tshaj plaws kuj yog qhov pheej yig tshaj

Kauj Ruam 2: Kev hloov kho tshiab rau MCU

Kev hloov kho tshiab rau MCU
Kev hloov kho tshiab rau MCU
Kev hloov kho tshiab rau MCU
Kev hloov kho tshiab rau MCU

lub microcontroller xav tau lub capacitor thiab kho vajtse teeb tsa rau tus pin rov pib dua, tab sis tsis txaus

- Cov Khoom Siv Hluav Taws Xob

- Kho vajtse hloov khoom dua tshiab

- Bootloader

- Tib neeg Interface

- Tus Pin Configuration

Kauj Ruam 3: Cov Khoom Siv Hluav Taws Xob

Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob

- kev tiv thaiv kev tiv thaiv ntawm Fais Fab Khoom (MOSFET-P)

Kuv ua kom zoo dua ntawm sab hauv diode ntawm mosfet tsav thiab thaum qhov tshwm sim Qhov Rooj Voltage txaus txaus kom muaj RDSon qis heev link_info

-tus tswj hluav taws xob (VCO) tus tswj hwm kuv siv LD1117AG thiab pakaging TO-252-2 (DPAK) tib yam rau lm7805 tab sis pheej yig dua thiab LDO

- cov ntxaij lim dej muaj peev xwm (100n)

- Fuse rau USB zog

los tiv thaiv ntau tshaj 1A

- Ferrite lim rau USB zog

nyob rau hauv kev xeem

Kauj ruam 4: Kho vajtse hloov khoom dua tshiab

Kho vajtse Kho dua tshiab
Kho vajtse Kho dua tshiab
Kho vajtse Kho dua tshiab
Kho vajtse Kho dua tshiab

rau lub hom phiaj dav kuv txiav txim siab ntxiv:

- Soft-Start Resetif lwm yam yog tswj, Nrog ncua hauv qhov pib pib nws tsis pib lub microcontroller, tom qab lub zog thiab ruaj khov qhov hluav taws xob muaj kev nyab xeeb los tswj lwm yam

tus pin rov pib dua tsis kam lees, qhov no rov pib dua MCU thaum nws yog 0V, RC Circuit (tiv thaiv lub zog tiv thaiv) ua rau cov mem tes ntev dua thiab cov diode tso lub capacitor thaum VCC yog 0V

N-Channel Mosfet AO3400A

vim tias tus qauv microcontroller tsis tuaj yeem muab ntau dua 20mA lossis 3mA rau tus pin ntxiv rau lub zog txwv tag nrho kev siv rau 800mA thiab mosfets tuaj yeem siv 5V rau 3.3V hloov pauv kev sib tham.

OP-AMP LMV358A

txhawm rau ua kom lub zog tsis muaj zog heev, ua rau tsis muaj kev tiv thaiv thiab ntsuas kom nkag siab tam sim no, thiab lwm yam …

Kauj ruam 5: Bootloader

Bootloader
Bootloader

lub bootloader muab los sau cov lus qhia, tab sis hauv cov ntsiab lus nws lub luag haujlwm yog thauj cov program.in Arduino Ib qho piv txwv muaj lwm lub microcontroller nrog kev txhawb nqa ib txwm USB, thaum muaj tag nrho PICs bootloader yog PICKIT3 txawm tias peb muaj CH340C (nws yuav tsis yog bootloader, nws yuav yog USB rau Serial microcontroler hu ua UART).

PICKIT3 -> bootloader ntawm ICSP (Hauv -Circuit Serial Programming)

CH340C -> Serial USB kev sib txuas lus

txhua yam tab tom txhim kho, tab sis bootloader ua haujlwm.

Kauj Ruam 6: Tib Neeg Kev Sib Tham

Tib neeg Interface
Tib neeg Interface

- USB txhawb

CH340C yog lub cim xeeb USB rau Serial hloov pauv

Standart Kev teeb tsa ntawm cov lej ntawm 9600bauds, 8bits, 1 nres me ntsis, tsis muaj qhov sib npaug, tsawg kawg qhov tseem ceeb xa ua ntej thiab tsis thim rov qab

- Pib dua khawm

siv nyob rau hauv Soft-Start Reset Circuit kom rov pib dua lub microcontroler, tab sis ICSP RST yeej

-User Khawm

raug 10k txhawm rau rub tawm hauv tus pin tus pin

- 3 hli xiav leds x8 5V - 2.7 Vled = 2.3 Vres

2.3 Vres / 1500 Rres = 1.5 mA (koj tuaj yeem tau txais qhov ci ntau dua)

2.3 Vres * 1.5 mA => 4 mW (tsawg dua 1/8W)

Kauj ruam 7: Tus Pin Configuration

Tus PIN Kho
Tus PIN Kho
Tus PIN Kho
Tus PIN Kho
Tus PIN Kho
Tus PIN Kho
Tus PIN Kho
Tus PIN Kho

Kev daws teeb meem nrog qhov chaw me me, yog los qhia tus txheej txheem txheej thiab muab lawv sib dhos ua ke rau ntawm lub rooj tsavxwm, ob chav kab pins thiab sib thooj tuab ntawm lub rooj tsavxwm, zoo ib yam li pci txuas txuas

tab sis qhov chaw nruab nrab tus pin rau tus pin yog 100mils = 2.55mm

qhov deb yog kwv yees li 2 hli = 2.55 - 0.6 (tus pin)

kuj yog qhov tuab tuab ntawm lub rooj tsavxwm yog 1.6 uas yog

qhov no yog piv txwv nrog 2 cov laug cam ntawm 1 hli

Kauj Ruam 8: Qhov Kawg

Qhov Kawg
Qhov Kawg

Txhua feem uas kuv tau koom ua ke tau raug kuaj cais nrog lwm cov khoom (TH) thiab cov qauv ua qauv, Kuv tsim nws nrog cov txheej txheem easyEDA thiab xaj hauv JLC thiab LCSC (kom qhov kev txiav txim los ua ke ua ntej koj yuav tsum tau xaj hauv JLC thiab ib zaug xaj) nrog tib ntu koj ua qhov kev yuav khoom hauv LCSC thiab ntxiv)

Nws yog kev tu siab uas kuv tsis muaj daim duab thiab kuv tsis muaj peev xwm ua pov thawj nws ua ke, rau lub sijhawm nws yuav xaj xaj rau Suav thiab ua txhua yam ntaub ntawv, tab sis nws yog rau cov lus qhia hauv qab no txij li nws npog cov qauv tsim ntawm no, Cov lus nug koj tuaj yeem tso nws hauv cov lus.

Thiab qhov no yog nws, thaum qhov kev txiav txim tuaj txog kuv yuav muab nws tso, sim ua ke, tshaj tawm cov teeb meem, hloov tshiab, ntaub ntawv, phiaj xwm, thiab tej zaum yuav ua yeeb yaj kiab.

ua tsaug, nyob zoo thiab txhawb nqa!

txuas: easyEDA, YouTube, pom tseeb qhia

Pom zoo: