Cov txheej txheem:
- Kauj Ruam 1: Cov Cuab Yeej Xav Tau
- Kauj ruam 2: Hlawv Bootloader rau Atmega328p
- Kauj Ruam 3: Sketch Uploader Circuit
Video: Standalone ATmega328p (siv Sab Hauv 8 MHz Clock): 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
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 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
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
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:
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev -- Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: 4 Cov Kauj Ruam
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev || Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: Nov Yog Qhov Tuchless Hloov Rau Cov Khoom Siv Hauv Tsev. Koj Siv Tau Qhov No Mus Rau Txhua Qhov Chaw Hauv Pej Xeem Kom Pab Tau Tawm Tsam Ib Yam Kab Mob. Lub Circuit Court Raws Li Tsaus Sensor Circuit Ua Los Ntawm Op-Amp Thiab LDR. Qhov Tseem Ceeb Thib Ob Ntawm Qhov Circuit Court SR Flip-Flop Nrog Sequencell
Standalone Arduino 3.3V W / Sab Nraud 8 MHz Lub Sij Hawm Ua Haujlwm Los Ntawm Arduino Uno Los Ntawm ICSP / ISP (nrog Saib Xyuas Ib Leeg!): 4 Cov Kauj Ruam
Standalone Arduino 3.3V W / Sab Nraud 8 MHz Lub Sij Hawm Ua Haujlwm Los Ntawm Arduino Uno Los ntawm ICSP / ISP (nrog Kev Saib Xyuas Ib Leeg!): Lub hom phiaj: Tsim kom muaj ib leeg Arduino uas khiav ntawm 3.3V tawm ntawm 8 MHz sab nraud moos. Txhawm rau nws los ntawm ISP (tseem hu ua ICSP, hauv-ntu ntu kev ua haujlwm) los ntawm Arduino Uno (khiav ntawm 5V) Txhawm rau kho cov bootloader cov ntaub ntawv thiab hlawv
Yooj Yim Cov Chaw Siv Cov Ntaub Ntawv Hauv Chaw Siv Hauv / Arduino / PfodApp: 6 Cov Kauj Ruam
Yooj Yim Cov Ntaub Ntawv Tseem Ceeb Siv Hauv Hauv/Arduino/PfodApp: Rau Plotting Cov Ntaub Ntawv tawm tsam Hnub/Sijhawm siv tsuas yog Arduino's millis () pom qhov qhia no Android mobile thiab ntes nws rau
WiFi Tsis Siv Neeg Tsob Nroj Tsiaj Pub Nrog Cov Chaw Tso Dej - Sab Hauv Tsev/Sab Nraud Kev Cog Qoob Loo - Cov Nroj Tsuag Dej Tuaj Nrog Kev Saib Xyuas Chaw Nyob: 21 Kauj Ruam
WiFi Tsis Siv Neeg Cog Tsob Nroj Tsiaj Nrog Cov Chaw Tso Dej - Sab Hauv Tsev/Sab Nraud Kev Cog Qoob Loo - Cov Nroj Tsuag Dej Tuaj Nrog Kev Saib Xyuas Tej Zaum: Hauv qhov kev qhia no peb yuav nthuav qhia yuav ua li cas teeb tsa kev cai nyob sab hauv tsev/sab nraum zoov cog cog cog uas tuaj yeem tso dej nroj tsuag thiab tuaj yeem saib xyuas nyob deb ntawm kev siv Adosia platform
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej