Cov txheej txheem:

Tswj Txhua Yam Nrog Ib Tus Pin AVR: 4 Kauj Ruam
Tswj Txhua Yam Nrog Ib Tus Pin AVR: 4 Kauj Ruam

Video: Tswj Txhua Yam Nrog Ib Tus Pin AVR: 4 Kauj Ruam

Video: Tswj Txhua Yam Nrog Ib Tus Pin AVR: 4 Kauj Ruam
Video: Наука о данных с Python! Анализ типов файлов от Avro до Stata 2024, Lub Xya hli ntuj
Anonim
Tswj Txhua Yam Nrog Ib Tus Pin AVR
Tswj Txhua Yam Nrog Ib Tus Pin AVR
Tswj Txhua Yam Nrog Ib Tus Pin AVR
Tswj Txhua Yam Nrog Ib Tus Pin AVR

Cov lus qhia no qhia yuav ua li cas tswj hwm ib pawg ntawm coj nrog ib lub microprocessor tso tawm. Qhov micro kuv yuav siv yog Atmel Attiny2313.

Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej

Qhov Chaw thiab Cov Cuab Yeej
Qhov Chaw thiab Cov Cuab Yeej
Qhov Chaw thiab Cov Cuab Yeej
Qhov Chaw thiab Cov Cuab Yeej

Qhov: Attiny2313 (tau txais 5 qhov kev kuaj dawb los ntawm Atmel) 20 tus pin socketResistors (txhua qhov loj me yuav ua haujlwm, nyob ntawm koj teeb tsa. nrhiav thiab pheej yig tshaj feem ntau yog 2n3904's. Tsuas yog xyuas kom nws yog NPN transistor, lossis N-Channel Mosfet) 2 Cov Capacitors me me (saib cov ntaub ntawv rau tus tswj hwm,.1uf thiab.22uf nrog LM340) Ntau LED'sSome protoboard lossis Ib qho programmer rau AVRWireTools: Soldering Iron

Kauj Ruam 2: Schematic thiab Nws Ua Haujlwm Li Cas

Schematic thiab Nws Ua Haujlwm Li Cas
Schematic thiab Nws Ua Haujlwm Li Cas
Schematic thiab Nws Ua Haujlwm Li Cas
Schematic thiab Nws Ua Haujlwm Li Cas
Schematic thiab Nws Ua Haujlwm Li Cas
Schematic thiab Nws Ua Haujlwm Li Cas

Thawj qhov qhia pom yuav ua li cas kuv nqes kab ntawm cov coj mus rau cov pins tso tawm. Tus pin tso tawm ntawm AVR mus rau lub hauv paus ntawm transistor, uas yog xaim ua haujlwm raws li kev hloov pauv. Thaum cov zis tawm qis, lossis 0v, lub transistor raug kaw, thiab tam sim no tsis tuaj yeem ntws los ntawm kev thauj mus rau hauv av. Thaum cov zis siab, lossis 5v, lub transistor nyob thiab tam sim no tuaj yeem ntws los ntawm kev thauj mus rau hauv av. Qhov no hu ua kev hloov qis qis, thiab tuaj yeem siv rau kev coj ua, dc motors, stepper motors, thiab ntau yam ntxiv uas xav tau hluav taws xob ntau dua lossis tam sim no ntau dua li cov micro tuaj yeem tsim tawm. xaim txhua txoj hauv kev uas koj xav tau, tab sis lub zog siv hluav taws xob uas koj siv yuav txiav txim siab seb koj tuaj yeem txuas lawv li cas. yog nyob rau hauv kab sib law liag array raws li qhia hauv daim duab thib peb. Txhawm rau txiav txim siab qhov loj me ntawm tus tiv thaiv, xub pom seb muaj pes tsawg qhov hluav taws xob poob rau ib qho coj. Rau xiav thiab ntsuab coj tus uas kuv tau siv, qhov poob qis yog ib puag ncig 3 txog 3.3 volts. Liab thiab daj coj tau nyob ib puag ncig 2.2 volt. Tam sim no ntxiv txhua qhov hluav taws xob poob hauv koob (3*5 = 15v) Tam sim no rho tawm qhov ntawd los ntawm koj qhov hluav taws xob qhov hluav taws xob (16-15 = 1v) Tam sim no koj paub ntau npaum li cas qhov hluav taws xob tau nqis los ntawm koj li. resistor (1v) Tam sim no siv ohm txoj cai los daws rau R: V = IR (1v =.015R)*Kuv siv 15ma rau kuv tus coj, qhov no yog ib qho rau 5mm coj's Yog li tam sim no txhua txoj hlua siv 15ma los ntawm koj cov khoom. tuaj yeem yog nws tus kheej thauj khoom, lossis koj tuaj yeem txuas ntau yam ua ke raws li koj xav tau, tsuav yog tag nrho tam sim no rau qhov kev thauj khoom tsis tshaj qhov txwv rau transistor. (2n3904 tuaj yeem ua haujlwm 100ma)*Lub transistor tuaj yeem hloov pauv nrog N-Channel Mosfet

Kauj ruam 3: Tsim Nws

Tsim Nws
Tsim Nws
Tsim Nws
Tsim Nws
Tsim Nws
Tsim Nws
Tsim Nws
Tsim Nws

Tam sim no koj tuaj yeem pib breadboarding koj lub Circuit Court. Koj tom qab kuv tau ua ob peb qhov kev ntsuam xyuas ntawm lub khob cij, kuv tau muab txhua yam tso rau hauv daim ntawv tiv thaiv. qhov chaw.

Kauj Ruam 4: Program AVR

Tam sim no nws yog lub sijhawm los npaj koj li AVR. Yog tias koj tsis paub yuav ua li cas, txheeb xyuas cov lus qhia no: https://www.instructables.com/id/Ghetto-Programming%3a-Getting-started-with-AVR-micro/ Nov yog qhov program kuv tau ua: Nws tsuas yog dhau los ntawm kev ua ntu zus ib txhis. Thaum AVR tau teeb tsa, koj tuaj yeem lo nws hauv lub qhov (socket) uas koj tau siv rau ntawm koj lub rooj tsavxwm, lossis yog tias koj tsis muaj lub qhov (socket), txheeb xyuas qhov haujlwm ntawm lub khob cij, thiab yog tias nws yog lawm, tom qab ntawd koj tuaj yeem txuas lub nti rau hauv koj lub rooj tsavxwm.

Pom zoo: