Cov txheej txheem:

Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital: 4 Kauj Ruam
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital: 4 Kauj Ruam

Video: Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital: 4 Kauj Ruam

Video: Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital: 4 Kauj Ruam
Video: Nco Txog Hmoob - Xf. Txawj Pes Vaj & Fishermen's Project (Live Session) [Lyric Video] 2024, Hlis ntuj nqeg
Anonim
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital
Siv Daim Kab Xev Tooj los Tsim Cov Ntawv Xaiv Digital

Qhov no yog ib nrab kuv qhia cov txheej txheem no, thiab ib nrab kuv kawm paub siv Instructables. Yog tias muaj teeb meem nrog kuv cov ntaub ntawv ntawm cov txheej txheem lossis kuv siv Cov Lus Qhia, thov qhia rau kuv paub hauv cov lus - ua tsaug! Kuv xav tau kab ntev ntawm cov hloov pauv hauv lub pinch, thiab tsis muaj ze li qhov hloov pauv txaus hauv kuv lub cuab yeej lub thawv rau txoj haujlwm no. Nov yog ib txoj hauv kev los siv daim kab xev tooj liab los tsim ntau qhov hloov pauv, nrawm, txhawm rau tsim cov ntaub ntawv xaiv digital. Rau qhov haujlwm no koj yuav xav tau *Daim Ntawv lossis yob cov kab xev tooj liab lossis lwm yam ntawv ci. Koj tuaj yeem pom qhov no ntawm txhua lub khw muag khoom kho vajtse, lossis hauv txhua lub khw muag khoom siv tes ua. (Tej zaum lwm qhov chaw ib yam nkaus - tsis txhob tso cov lus tawm tswv yim hauv cov lus.)*Ib qho yob ntawm lub khob cij ntsuas ntsuas (lossis lwm yam Arduino -sib xws) xaim*Ib daim ntoo balsa (duab los ua haujlwm hauv lub pinch, tab sis balsa zoo li ua haujlwm zoo dua, raws li nws "pwm rau" cov duab ntawm cov hlau me me, pab nws nyob hauv qhov chaw yam tsis muaj zawv zawg tawm.)*Yob ntawm Scotch daim kab xev*Ib qho 220 ohm resistor rau txhua qhov kev xaiv sib txawv uas koj xav tso cai (uas yog, yog tias koj xav tau ua 9 lub nyees khawm, siv 9 tus tiv thaiv)*Ib yam dab tsi los txhais koj cov qib hluav taws xob los ntawm cov ntaub ntawv xaiv (hauv kuv qhov xwm txheej, Arduino Diecimila nrog qee tus lej ua tau zoo nyeem digital - txawm hais tias tu siab, Arduino txwv rau 14 tus lej sib txawv; ib tus tuaj yeem ua tau ib qho kev sib txuas ntxiv kom tso cai rau kev nkag mus ntau dua tab sis qhov ntawd dhau ntawm qhov kev qhia ntawm no).

Kauj Ruam 1: Kauj Ruam Ib - Sau Cov Khoom thiab Tsim Cov Khoom

Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom
Kauj Ruam Ib - Sib Sau Cov Khoom thiab Tsim Cov Khoom

Rau txhua qhov kev xaiv ncoo/khawm, ua ntej*txiav ib daim ntoo balsa hauv qhov loj thiab cov duab ntawm lub khawm xav tau*txiav ib daim kab xev tooj liab ntev txaus los npog ob sab yog tias koj qhwv nws raws qhov luv luv- uas yog, yog tias koj daim ntoo balsa zoo li qhov no ua rau koj daim kab xev zoo li qhov no *txiav cov xaim thiab sawb ob qho kawg ntawm xaim - ib kawg yuav nkag mus rau hauv koj lub tswv yim (hais, Arduino digital in pin) thiab lwm qhov kawg yuav txuas rau daim kab xev tooj liab. Koj tuaj yeem tso koj daim tawm thiab suav lawv kom ntseeg tau tias koj muaj txaus ua ntej mus rau kauj ruam 2.

Kauj Ruam 2: Txhim Kho Txhua Xaiv Khawm

Lub Tsev Txhua Xaiv Khawm
Lub Tsev Txhua Xaiv Khawm
Lub Tsev Txhua Xaiv Khawm
Lub Tsev Txhua Xaiv Khawm
Lub Tsev Txhua Xaiv Khawm
Lub Tsev Txhua Xaiv Khawm

Rau txhua lub pob xaiv: *nteg ib lub xov hlau tso rau ntawm ib sab ntawm daim ntoo balsa thiab khawm koj daim kab xev tooj liab hla tus xov hlau, tso me ntsis ntoo balsa nthuav tawm ntawm ib sab (yog li daim kab xev yuav lo rau nws) * tam sim no, xev cov xaim thiab tooj liab ua ke nyob ib puag ncig hauv qab ntawm daim ntoo balsa (nco ntsoov tso qee cov tooj liab nthuav tawm ntawm ob sab ntawm sab saum toj ntawm daim) Cov duab hauv qab no vam tias yuav qhia nws zoo dua li kuv cov lus tuaj yeem ua tau.

Kauj Ruam 3: Qhib Txhua Qhov Ncauj Xaiv rau hauv Hloov

Tig Txhua Qhov Xaiv Cov Ncauj Lus rau hauv Hloov
Tig Txhua Qhov Xaiv Cov Ncauj Lus rau hauv Hloov

Teem txhua qhov kev xaiv los rau ntawm koj qhov chaw teeb tsa (ntoo/balsa ntoo/phab ntsa/thiab lwm yam, txhua yam koj xav tau) thiab ruaj ntseg cov ntaub qhwv nrog kab xev, ntsia hlau lossis los ntawm lwm txoj hauv kev (tsuav koj tso cov lus qhia tooj liab nthuav tawm.) Tam sim no, txuas txhua daim ntawv xaiv ntawm 220 ohm resistor mus rau qhov ntev, tus tswv kab ntawm kab xev tooj liab. Kuv pom ib txoj hauv kev nrawm los ua qhov no yog txhawm rau txuas tus tiv thaiv rau hauv qhov nthuav tawm ntawm cov ntaub qhwv daim kab xev tooj liab los ntawm kev xaub nws hauv qab daim kab xev qhov twg nws hla hla ntawm ntug, thiab tom qab ntawd kaw nws mus rau saum npoo kom tsis txhob txav nws ua ntej txuas lwm qhov kawg ntawm tus tiv thaiv rau tus tswv txoj hlua. Nws tsis yog * uas * ruaj ntseg, tab sis rau kuv qhov chaw nyob ruaj khov, ib ntus thiab tiaj tus phiaj xwm, nws tau ua qhov yuam kev. Thaum kawg, ntsaws cov xov hlau tsis siv los ntawm txhua lub ncoo rau hauv tus pin nkag ntawm koj qhov haujlwm. Qhov no ua dab tsi yog txheej txheem hauv av txhua qhov kev xaiv nkag rau hauv ib txoj hauv kev uas tseem tso cai rau txhua lub ncoo siv qhov hluav taws xob ntawm nws tus kheej ntawm ib leeg. Cov neeg tawm tsam tso cai rau tag nrho cov ntaub qhwv los sib koom ua ke, thaum tseem muaj peev xwm ua tus kheej "qhib" los ntawm kev thov 5V rau xaiv lub ncoo.

Kauj Ruam 4: Pib Nias Cov Khawm

Pib Nyem Nyem khawm
Pib Nyem Nyem khawm

Tam sim no, peb tuaj yeem nias cov nyees khawm no li cas? Zoo, txhua qhov hluav taws xob qhov hluav taws xob yuav hloov pauv xaiv lub ntsuas hluav taws xob los ntawm "qis" mus rau "siab" - yog li peb tsuas tuaj yeem siv ib qho txheej txheem twg peb xav thov siv hluav taws xob rau xaiv lub ncoo kom qhib nws. Rau kuv lub hom phiaj, Kuv cia li cia li kaw lub xov hlau nthuav tawm rau hauv Vcc (5V lossis 3.3V ntawm kuv Arduino, lossis "Siab" ntawm koj lub khob cij) thiab pib nias nws tawm tsam xaiv los ntsuas seb lawv puas ua haujlwm. Thiab qhov ntawd yog nws! Cov kab xev tooj liab yuav siv qee lub sijhawm los tiv thaiv kom raug, thiab nws tsis muaj kev hloov pauv rau qhov ua kom zoo - tab sis thaum koj tag nrho cov ntsiab lus ntawm kev siv lub cuab yeej yog los tsim lub cev qhov tshwm sim ntawm qhov pheej yig (hauv qhov no, "United State Machine), nws ua qhov dag, tsim cov khoom siv hluav taws xob sib txuas sai thiab pheej yig.

Pom zoo: