Cov txheej txheem:

Standalone ATmega328p (siv Sab Hauv 8 MHz Clock): 4 Cov Kauj Ruam
Standalone ATmega328p (siv Sab Hauv 8 MHz Clock): 4 Cov Kauj Ruam

Video: Standalone ATmega328p (siv Sab Hauv 8 MHz Clock): 4 Cov Kauj Ruam

Video: Standalone ATmega328p (siv Sab Hauv 8 MHz Clock): 4 Cov Kauj Ruam
Video: $2 Arduino The ATMEGA328 as a stand alone Easy, cheap and very small A complete guide 2024, Kaum ib hlis
Anonim
Standalone ATmega328p (siv Sab Hauv 8 MHz Clock)
Standalone ATmega328p (siv Sab Hauv 8 MHz Clock)

ATmega328p yog ib leeg-nti microcontroller tsim los ntawm Atmel hauv megaAVR tsev neeg (tom qab Microchip Technology tau txais Atmel xyoo 2016). Nws muaj qhov hloov kho Harvard architecture 8-ntsis RISCprocessor core. Qhov microcontroller no yog lub hlwb ntawm Arduino pawg thawj coj txhim kho ntxiv rau ntau lwm pawg txhim kho. Siv Cov Lus Qhia no koj tuaj yeem txo qhov loj ntawm koj cov phiaj xwm thiab ua rau lawv pheej yig dua. Qhov no ua tiav los ntawm kev txo tus naj npawb ntawm cov khoom siv ntawm pawg thawj coj saib xyuas kev txhim kho xws li onboard LEDs, sab nrauv Crystal oscillators, Cov Capacitors sab nraud thiab ntau lwm yam khoom siv rov ua dua los ua rau hauv cov laug cam txhim kho.

Kauj Ruam 1: Cov Cuab Yeej Xav Tau

Cov Cuab Yeej Xav Tau
Cov Cuab Yeej Xav Tau
Cov Cuab Yeej Xav Tau
Cov Cuab Yeej Xav Tau
Cov Cuab Yeej Xav Tau
Cov Cuab Yeej Xav Tau

Cov npe uas xav tau

1.10K ohm resistors

2. ATmega328P-PU IC

3. Jumper Wires

4. LM7805 Voltage Regulator

5. Cov qhob cij

6. Arduino Uno Development Board

Peb kuj xav tau Arduino IDE los hlawv Bootloader thiab xa cov duab kos rau ATmega328P. Koj tuaj yeem rub nws los ntawm no

Koj kuj yuav tsum rub tawm Arduino ntawm lub tsev qiv ntawv Breadboard. Koj tuaj yeem rub nws los ntawm no raws li koj li IDE version

Kauj ruam 2: Hlawv Bootloader rau Atmega328p

Hlawv Bootloader rau Atmega328p
Hlawv Bootloader rau Atmega328p

ATmega328P IC tsis tuaj ua ntej nrog Bootloader. Bootloader yog txheej txheej uas tso cai rau IC los txhais cov cai uas peb upload siv Arduino IDE.

Cov kauj ruam txhawm rau upload Bootloader rau ATmega328P

1. Txuas Arduino rau ATmega328P raws li qhia hauv daim duab.

Kev sib txuas tau teev tseg raws li hauv qab no:-

ATmega328P tus pin 7 => Vcc

ATmega328P tus pin 8 => Gnd

ATmega328P tus pin 20 => Vcc

ATmega328P tus pin 22 => Gnd

ATmega328P tus pin 1 => tus pin D10 ntawm Arduino

ATmega328P tus pin 17 => tus pin D11 ntawm Arduino

ATmega328P tus pin 18 => tus pin D12 ntawm Arduino

ATmega328P tus pin 19 => tus pin D13 ntawm Arduino

rub tawm resistor hla tus pin 1 ntawm ATmega328P

2. Ntxiv board rau koj IDE:

Ua daim nplaub tshev npe hu ua Kho vajtse (yog tias nws tsis muaj tam sim no) hauv koj phau ntawv teev npe thiab rho tawm thiab luam theej tawm lub tsev qiv ntawv rub tawm mus rau lub nplaub tshev ntawd.

Rov pib IDE thiab tshawb xyuas Pawg Thawj Tswj Hwm tshiab hauv cov cuab yeej> Pawg Thawj Coj, koj yuav tsum pom lub rooj tsav xwm tshiab hu ua "ATmega328 ntawm lub khob cij (8MHz Internal Clock)". Yog tias koj pom lub rooj tsavxwm no txhua yam zoo nyob rau tam sim no.

3. Xaiv Serial chaw nres nkoj.

4. Xaiv tus programmer rau "Arduino as ISP".

5. Hlawv Bootloader los ntawm kev mus rau Ntawv Qhia Cuab Yeej> Hlawv Bootloader.

Kauj Ruam 3: Sketch Uploader Circuit

Sketch Uploader Circuit
Sketch Uploader Circuit
Sketch Uploader Circuit
Sketch Uploader Circuit

Koj tuaj yeem xa cov duab kos mus rau ATmega328P siv koj li Arduino board.

Cov kauj ruam txhawm rau upload cov duab kos rau ATmega328P

1. Tshem IC ntawm Arduino.

2. Txuas Arduino rau ATmega328P raws li qhia hauv daim duab, Kev Sib Txuas tau teev tseg raws li hauv qab no:

ATmega328P tus pin 7 => Vcc> ATmega328P tus pin 8 => Gnd

ATmega328P tus pin 20 => Vcc

ATmega328P tus pin 22 => Gnd

ATmega328P tus pin 1 => Pib dua tus pin ntawm Arduino

ATmega328P tus pin 2 => tus pin 1 lossis RX tus pin ntawm Arduino

ATmega328P tus pin 3 => tus pin 2 lossis TX tus pin ntawm Arduino

rub tawm resistor hla tus pin 1 ntawm ATmega328P

3. Upload Sketch rau Atmega328P siv Arduino IDE.

4. Txuas cov pins rau ATmega328P raws li daim duab qhia chaw pin.

Pom zoo: