Cov txheej txheem:
- Kauj ruam 1: Sau ib ncig ntawm qee yam khoom thiab qee cov ntaub ntawv
- Kauj Ruam 2: Hloov Arduino Ua Tus Programmer
- Kauj Ruam 3: Teeb Up Arduino V1.0.1
- Kauj Ruam 4: Hooking Arduino Nrog ATmega8
- Kauj Ruam 5: Hlawv Bootloader rau ATmega8
- Kauj Ruam 6: Tshaj Tawm Cov Sketches rau ATmega8
- Kauj Ruam 7: Nrog koj zoo siab
Video: ATmega8 Raws li Arduino (siv Sab Hauv 8Mhz Crystal): 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Niaj hnub no, cov khoom siv zoo li Arduino tau pom muaj kev siv nrov heev. Lawv tuaj yeem siv los tsim ntau qhov haujlwm, txawm li cas los xij, lawv nyob hauv ntau qhov chaw thiab kim rau peb qee tus (suav nrog kuv). Txhawm rau daws qhov teeb meem no, kuv nthuav qhia rau koj cov lus qhia no, uas yuav qhia koj siv ATmega8 (lossis lwm yam avr) nti los khaws Arduino code thiab ua raws li kev cog lus thiab pheej yig Arduino. Ua qhov no xav tau cov khoom siv hluav taws xob yooj yim, uas, yog tias koj yog tus nyiam ua haujlwm ib yam, yuav twb muaj lawm. Tsis zoo li lwm cov lus qhia, uas nyob ntawm kev siv ntawm lwm cov siv lead ua oscillator kom ua tiav tib lub hom phiaj, txoj haujlwm no siv sab hauv 8Mhz siv lead ua ntawm ATmega8, uas ua rau nws muaj txiaj ntsig zoo rau cov uas tsis muaj 16Mhz siv lead ua.
Tsis tas li, kuv yuav siv Arduino ua ISP los teeb tsa lub nti, yog li qhov no ua rau nws pheej yig dua.
Tam sim no, yam tsis muaj ado ntxiv, cia pib tinkering!
Kauj ruam 1: Sau ib ncig ntawm qee yam khoom thiab qee cov ntaub ntawv
Yuav tsum:
1. 10uF capacitor - 1
2. Txiv neej rau Txiv neej Jumper Xov - 8
3. Cov qhob cij - 1
4. ATmega8 nti - 1
5. Arduino UNO lossis lwm yam Arduino
Cov khoom mus download tau:
1. Bootloader rau ATmega8
2. Arduino IDE v1.0.1
Qhov txuas no yuav coj koj mus rau Arduino IDE rub tawm nplooj ntawv. Rub tawm v.1.0.1 tshwj xeeb vim tias kuv tau pom nws ua haujlwm zoo nrog ATmega8 nti. Vim li cas, qhov hloov tshiab kawg tsis txhawb kev hloov kho ntawm Boards.txt, uas yog qhov tseem ceeb rau qhov kev qhia no. 5. Boards.txt
Kev siv cov ntaub ntawv no yuav piav qhia tom qab.
Kauj Ruam 2: Hloov Arduino Ua Tus Programmer
Arduino tuaj yeem hloov pauv mus ua tus programmer los ntawm kev xa cov duab kos ArduinoISP rau nws. Nws tau muab ua piv txwv piv txwv los ntawm Arduino. Txawm li cas los xij, Kuv tab tom muab cov cai ua cov ntawv ib yam nkaus. Rub tawm nws thiab rub nws mus rau koj Arduino.
Thaum cov cai tau rub tawm, mus rau kauj ruam tom ntej.
Kauj Ruam 3: Teeb Up Arduino V1.0.1
Tom qab rub tawm Arduino v1.0.1, rho tawm nws. Tsis tas li, theej tag nrho cov ntawv ntawm "boards.txt" cov ntawv koj rub tawm.
1. Tam sim no koj yuav tsum xauj cov ntawv hauv qab no hauv cov ntawv rho tawm:
"…….. / arduino-1.0.1 / hardware / arduino / boards.txt"
2. Qhib "boards.txt" thiab muab cov ntawv theej ntawm qhov kawg ntawm cov ntawv.
3. Tam sim no qhib "arduino.exe" tso rau hauv cov ntawv rho tawm Arduino 1.0.1.
4. Xaiv pawg Arduino ua "ATmega8-noxtal @8MHz"
5. Xaiv Programmer li "Arduino as ISP"
Tam sim no koj Arduino IDE v1.0.1 tau teeb tsa!
Kauj Ruam 4: Hooking Arduino Nrog ATmega8
Hlau ATmega8 IC nrog koj Arduino los ntawm kev hais txog cov lus qhia saum toj no.
Tsis tas li, nco ntsoov tso 10uF capacitor nruab nrab ntawm RESET thiab GND pins.
Kuv tau txuas daim duab ntawm qhov kuv tau txuas kuv Arduino rau ATmega8.
Kauj Ruam 5: Hlawv Bootloader rau ATmega8
Bootloaders yog cov ntaub ntawv uas ua rau lub microcontroller tuaj yeem ua haujlwm ntawm nws tus kheej. Yog li ntawd, thaum ATmega8 tau hlawv nrog lub bootloader, peb yuav tuaj yeem siv nws ua Arduino.
Txhawm rau hlawv lub bootloader:
1. Extract "atmega8_noxtal.zip" rau "……. / Arduino-1.0.1 / hardware / arduino / bootloaders \".
2. Yog tias Arduino IDE twb tau khiav lawm, rov pib dua, lwm qhov qhib nws.
3. Txheeb xyuas yog tus Programmer, COM Port thiab Board tau teeb tsa raug raws li tau piav qhia hauv ib qho ntawm cov kauj ruam dhau los.
4. Ntaus "Hlawv Bootloader" hauv qab "Tools" menu.
Yog tias koj tau xaim txuas kom raug, nyem rau qhov "Hlawv Bootloader" xaiv, RX, TX, thiab L teeb ntawm Arduino yuav pib ci ntsa iab. Kuv tau tshaj tawm daim duab ib yam nkaus.
Kauj Ruam 6: Tshaj Tawm Cov Sketches rau ATmega8
Tom qab hlawv lub bootloader rau koj ATmega8, koj yuav luag tiav txoj haujlwm no.
Tam sim no txhua yam uas tau ua dhau los yog xa koj daim duab xav tau rau koj lub nti. Txhawm rau ua qhov ntawd, xyuas kom meej tias pawg thawj coj tau teeb tsa rau "Atmega8-noxtal @8Mhz", thiab tus programmer rau "Arduino li ISP".
Nco ntsoov tias cov hlua uas koj tau siv los hlawv lub bootloader kuj tseem siv rau rub cov duab kos
Kev xa cov duab kos tau ua tiav los ntawm kev siv Arduino ua tus programmer, yog li tsis zoo li feem ntau, thaum koj nias "Ctrl+U", tam sim no koj yuav tsum tau nyem "Ctrl+Shift+U", uas qhia IDE rau program chip los ntawm Arduino.
Kauj Ruam 7: Nrog koj zoo siab
Nrog koj zoo siab rau kev hloov pauv koj li ATmega8 nti mus rau hauv Mini Arduino. Tam sim no koj tuaj yeem ua rau koj cov phiaj xwm ntau dua kev cog lus thiab pheej yig. Txhawm rau nkag siab nws tus lej sib piv nrog Arduino pins, xa mus rau "ATmega8 li Arduino Pinout" cov ntaub ntawv uas koj tau rub tawm ua ntej.
Tsis tas li, yog tias koj pom cov lus qhia no muaj txiaj ntsig, thov txhawb kuv los ntawm kev qhib qhov rub tawm txuas luv dua ob zaug lossis peb zaug. Koj tseem tuaj yeem txhawb nqa kuv ntawm Patreon.
Qhov ntawd yog txhua yam rau qhov kev qhia no! Yog tias koj muaj kev tsis ntseeg, thov tawm tswv yim.
Khaws Tinkering!
Txoj Haujlwm Los Ntawm:
Utkarsh Verma
Ua tsaug rau Ashish Choudhary rau qiv nws lub koob yees duab.
Pom zoo:
Kev Ua Vaj Tsev Zoo Ua Rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: 16 Cov Kauj Ruam (nrog Duab)
Kev Ua Vaj Tsev Ua Tau Zoo ntawm Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: Koj puas nyiam ua vaj tab sis tsis tuaj yeem nrhiav sijhawm los tswj nws? Tej zaum koj muaj qee cov nroj tsuag hauv tsev uas tab tom nqhis dej me ntsis lossis tab tom nrhiav txoj hauv kev los siv koj li hydroponics kom zoo? Hauv txoj haujlwm no peb yuav daws cov teeb meem ntawd thiab kawm paub qhov pib ntawm
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
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): 22 Cov Kauj Ruam (nrog Duab)
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): Drones yog cov khoom ua si nrov heev thiab cov cuab yeej niaj hnub no. Koj tuaj yeem pom cov kws tshaj lij thiab txawm tias pib ua haujlwm drones thiab cov khoom siv ya hauv khw. Kuv muaj plaub lub drones (quadcopters thiab hexcopters), vim tias kuv nyiam txhua yam uas ya, tab sis lub davhlau 200th tsis yog
USB Sab Hauv Tsev/Sab Nraud Ntsuas Kub (lossis, 'Kuv Thawj USB Ntaus Ntawv'): 4 Cov Kauj Ruam (nrog Duab)
USB Sab Hauv Tsev/Sab Nraud Tus Kheej (lossis, 'Kuv Thawj USB Ntaus Ntawv'): Nov yog qhov tsim qauv yooj yim uas qhia txog USB ib puag ncig ntawm PIC 18Fs. Muaj ntau pawg piv txwv rau 18F4550 40 tus pin hauv online, qhov kev tsim qauv no qhia pom qhov me me 18F2550 28 tus pin version.Peb PCB siv ntu ntu ntu, tab sis txhua