Cov txheej txheem:

Yooj Yim, Pheej Yig & Txhim Kho Kov Sensor Nrog Tsuas Yog 3 Qhov: 3 Kauj Ruam
Yooj Yim, Pheej Yig & Txhim Kho Kov Sensor Nrog Tsuas Yog 3 Qhov: 3 Kauj Ruam

Video: Yooj Yim, Pheej Yig & Txhim Kho Kov Sensor Nrog Tsuas Yog 3 Qhov: 3 Kauj Ruam

Video: Yooj Yim, Pheej Yig & Txhim Kho Kov Sensor Nrog Tsuas Yog 3 Qhov: 3 Kauj Ruam
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla использовать для? 2024, Hlis ntuj nqeg
Anonim
Yooj Yim, Pheej Yig & Txhim Kho Kov Sensor Nrog Tsuas 3 Qhov
Yooj Yim, Pheej Yig & Txhim Kho Kov Sensor Nrog Tsuas 3 Qhov

Tswj xyuas txhua yam khoom siv hluav taws xob nrog kov koj tus ntiv tes tuaj yeem muaj txiaj ntsig zoo.

Hauv cov lus qhia no kuv yuav qhia koj, yuav tsim li cas kom yooj yim tab sis muaj zog kov lub ntsej muag uas ua haujlwm tau zoo. Txhua yam koj xav tau yog tus qauv transistor thiab ob tus tiv thaiv rau lub hauv paus tseem ceeb thiab Arduino lossis tus piv hluav taws xob los ua qee yam nrog lub teeb liab.

Kuv tsis paub tseeb tias nws ua haujlwm li cas, tab sis nws yog qhov zoo tshaj plaws thiab yooj yim tshaj plaws kov kuv tau ua kom deb li deb.

Feem ntau xws li lub ntsej muag kov tau hu ua 'resistive touch sensor'. Nws yuav tsum muaj ob lub tshuab hluav taws xob thiab thaum koj kov nws, qhov dej me me ntws los ntawm koj cov ntiv tes uas tau hloov pauv los ntawm transistor thiab tom qab ntawd ntsuas.

Txawm li cas los xij, Kuv lub ntsuas hluav taws xob xav tau tsuas yog ib qho hluav taws xob. Kuv txoj kev xav, txog tam sim no, yog thaum koj kov lub electrode me me tam sim no ntws los ntawm koj lub cev mus rau hauv av uas yog tom qab ntawd nthuav dav thiab ntxiv rau.

Hom thib ob ntawm lub sensor hu ua 'capacitive touch sensor'. Nws pom koj tus ntiv tes yam tsis tau kov lub electrode los ntawm kev ntsuas nws lub zog ntawm lub peev xwm ntawm cov hluav taws xob. Txoj hauv kev ntawm kev txheeb xyuas no tseem siv hauv cov xov tooj tab sis nws yog, raws li kuv tau ntsib kuv tus kheej, nyuaj heev rau kev ua haujlwm vim tias nws yuav tsum tau kho kom zoo rau qhov loj ntawm koj cov electrode.

Kuv lub ntsuas tshiab suav nrog qhov zoo ntawm ob qho tib si vim tias koj tsuas xav tau ib qho hluav taws xob tab sis tseem muaj qhov yooj yim thiab yog li ntawd ntseeg tau thiab ywj siab ntawm cov hluav taws xob me me.

Khoom siv

1x Transistor: BC557B

1x tiv: 5k

1 x Resistor: 4M

Tsis teb los tau: Breadboard, Arduino, Voltage Comparator, Jumper cables, LEDs …

Kauj Ruam 1: Sib sau ua ke

Sib sau ua ke
Sib sau ua ke

Txhua yam ntawm cov khoom tuaj yeem yuav online tau yooj yim lossis tau los ntawm lub khw hluav taws xob hauv ib cheeb tsam.

Kauj ruam 2: Tsim Nws

Tsim Nws!
Tsim Nws!
Tsim Nws!
Tsim Nws!

Peb ntu yuav tsum tau muab tso rau ntawm lub khob cij (lossis ua ke ua ke) raws li qhia hauv daim duab.

Tom qab ntawv lwm lub cuab yeej (hauv kuv qhov xwm txheej Arduino) tau txuas rau nws txhawm rau txheeb xyuas qee yam.

Kauj Ruam 3: Muaj Kev Lom Zem Nrog Nws

Muaj Kev Lom Zem Nrog Nws
Muaj Kev Lom Zem Nrog Nws

Tam sim no koj tau tsim lub hauv paus tseem ceeb, koj tuaj yeem siv nws raws li hauv qab no: Yog tias koj tsis kov lub tshuab hluav taws xob, arduino yuav nyeem 5V (1023) ntawm Qhov Tawm. Tab sis yog tias koj kov nws, qhov hluav taws xob yuav poob qis dua tus nqi no Qhov no koj tus ntiv tes tuaj yeem kuaj pom.

Pom zoo: