Cov txheej txheem:
- Kauj ruam 1: Mus Tau Cov Khoom
- Kauj Ruam 2: Txhim Kho Cov Hluav Taws Xob
- Kauj ruam 3: Program Arduino
- Kauj Ruam 4: Lim Cap
- Kauj ruam 5: ATtiny Core Cov Ntaub Ntawv
- Kauj Ruam 6: Program ATtiny
- Kauj Ruam 7: Xeem Circuit
Video: Program a ATtiny With Arduino: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Cov hauv qab no yog cov lus qhia rau kev ua haujlwm ATtiny microcontrollers siv Arduino IDE. Hauv cov lus Askiv yooj yim, qhov no yog yuav ua li cas program 8-pin Atmel chips zoo li koj ib txwm yog Arduino. Qhov no yog qhov txias vim tias ATtiny me me, thiab - zoo - qhov no tso cai rau koj los ua cov khoom me me uas tsis xav tau loj ol 'microcontroller loj.
Cov lus qhia kuv tau tshaj tawm ntawm no zoo ib yam nkaus li cov lus qhia tau muab los ntawm qhov tsis txaus ntseeg High-Low Tech Tutorial. Kuv tshaj tawm kuv cov lus qhia ntawm no vim tias kuv npaj yuav ua ob peb txoj haujlwm yav tom ntej siv ATtiny chips thiab xav tias kuv yuav qhia kuv cov txheej txheem.
Kauj ruam 1: Mus Tau Cov Khoom
Koj yuav xav tau:
- Arduino - Breadboard - ATtiny85 (lossis ATtiny45) - 10uF electrolytic capacitor- 220ohm 1/4 watt resistor - LED - txuas txuas hlau
Thov nco ntsoov tias qee qhov txuas ntawm nplooj ntawv no muaj Amazon cov koom nrog txuas. Qhov no tsis hloov tus nqi ntawm ib yam ntawm cov khoom muag. Txawm li cas los xij, Kuv khwv tau nyiaj me me yog tias koj nyem rau ntawm ib qho ntawm cov txuas thiab yuav dab tsi. Kuv rov nqis peev cov nyiaj no rau hauv cov ntaub ntawv thiab cov cuab yeej rau cov phiaj xwm yav tom ntej. Yog tias koj xav tau lwm txoj kev tawm tswv yim rau tus xa khoom ntawm ib qho ntawm cov khoom, thov qhia rau kuv paub.
Kauj Ruam 2: Txhim Kho Cov Hluav Taws Xob
Txuas Arduino rau ATtiny raws li hauv qab no:
- Arduino +5V - Tus Pin Pin 8
- Arduino Av - ATtiny Pin 4
- Arduino Pin 10 - ATtiny Pin 1
- Arduino Pin 11 - ATtiny Pin 5
- Arduino Pin 12 - Tus Pin Pin 6
- Arduino Pin 13 - ATtiny Pin 7
Kauj ruam 3: Program Arduino
Xaiv "ArduinoISP" kos duab los ntawm "Piv txwv" ntawv qhia zaub mov.
Xa cov duab kos rau koj Arduino zoo li koj xav tau lwm yam duab kos.
Koj Arduino tam sim no tau teeb tsa ua tus programmer uas tuaj yeem ua haujlwm rau lwm cov chips.
Kauj Ruam 4: Lim Cap
Muab 10uF capacitor nruab nrab ntawm hauv av thiab Arduino pib dua tus pin. Nco ntsoov khaws lub qhov muag ntawm lub capacitors polarity (hauv av rau hauv av!).
Nws yog lus xaiv koj tsuas xav tau qhov no rau Arduino Uno, tab sis kuv tau pom nws tau pab teeb meem kom suav nrog nws nrog cov ntawv ua ntej ib yam nkaus. Yog tias koj pom tias nws tsis ua haujlwm hauv cov kauj ruam tom ntej, tshem tawm nws yooj yim thiab pom tias qhov ntawd pab tau.
Kauj ruam 5: ATtiny Core Cov Ntaub Ntawv
Nco tseg ntawm koj phau ntawv teev cov duab kos los ntawm Arduino cov ntawv qhia ua nyiam.
Tsim cov ntawv tshiab hauv koj phau ntawv teev npe sketchbook hu ua "hardware"
Tom qab ntawd, mus rau nplooj ntawv no thiab rub tawm cov ntawv: attiny45_85.zip
Unzip cov ntawv no thiab tso nws rau hauv cov ntawv kho vajtse tshiab.
Thaum kawg, rov pib dua Arduino qhov chaw ib puag ncig. Tam sim no cov cores tshiab yuav tsum tau thauj khoom.
Nco ntsoov tias tseem muaj cov ntaub ntawv tseem ceeb rau tus lej ntawm lwm cov ATtiny chips. Nplooj ntawv no yog qhov pib zoo rau cuam tshuam nrog ntau yam ntawm lawv siv Arduino.
Kauj Ruam 6: Program ATtiny
Xaiv los ntawm cov ntawv qhia saum toj kawg nkaus: Cov Cuab Yeej Cuab Yeej ATtiny85 (w/ Arduino ua ISP)
(Tau kawg, koj yuav xav xaiv qhov sib txawv rau qhov no yog tias koj siv ib qho.)
Tom qab ntawd qhib qhov piv txwv ntsais muag yooj yim thiab hloov tus lej tus lej los ntawm 13 txog 0.
Thaum kawg, upload nws li koj xav tau lwm yam duab.
Nws yuav tsum muab qhov yuam kev hauv qab no ob zaug: avrdude: thov txhais PAGEL thiab BS2 cov cim hauv cov ntaub ntawv teeb tsa rau ntu ATtiny85 avrdude: thov txhais PAGEL thiab BS2 cov cim hauv cov ntaub ntawv teeb tsa rau ntu ATtiny85
Tsuas yog tsis quav ntsej cov lus yuam kev thiab koj yuav tsum zoo mus.
Kauj Ruam 7: Xeem Circuit
Txuas 220 ohm resistor rau tus pin 5.
Txuas tus LED ntawm tus tiv thaiv thiab +5V.
Nws yuav tsum ntsais muag.
Nrog koj zoo siab. Koj ua tiav
Koj puas pom qhov no muaj txiaj ntsig, lom zem, lossis lom zem? Ua raws @madeineuphoria kom pom kuv cov phiaj xwm tshiab kawg.
Pom zoo:
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Program Arduino Nrog Raspberry Pi: 5 Kauj Ruam (nrog Duab)
Program Arduino Nrog Raspberry Pi: Hauv Cov Lus Qhia no, Kuv yuav qhia yuav ua li cas rau program Arduino nrog Raspberry Pi.Kuv Twitter: twitter.com/steveschuler20 Cov ntu kuv siv rau qhov haujlwm no suav nrog Kano Computer Kit Ua tiav (Raspberry Pi nrog lub vijtsam thiab keyboard) thiab Snapi