Cov txheej txheem:

Siv TTP223 Modul Raws Li Hloov: 5 Kauj Ruam
Siv TTP223 Modul Raws Li Hloov: 5 Kauj Ruam

Video: Siv TTP223 Modul Raws Li Hloov: 5 Kauj Ruam

Video: Siv TTP223 Modul Raws Li Hloov: 5 Kauj Ruam
Video: TTP223 сенсорная кнопка – сенсорный модуль ключ: подключение 2024, Lub Xya hli ntuj
Anonim
Siv TTP223 Modul Raws Li Hloov
Siv TTP223 Modul Raws Li Hloov

Cov lus qhia no yog hais txog kev muaj peev xwm kov tus qauv TTP223. Txhua yam koj xav tau yog kev paub yooj yim hauv tshuab hluav taws xob thiab arduino programming.

Yog tias koj muaj lus nug lossis teeb meem koj tuaj yeem tiv tauj kuv ntawm kuv tus email: [email protected]. Nov yog qhov txuas rau video ntawm kuv cov haujlwm:

Yog li cia pib.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Txhua yam ntaub ntawv xav tau rau txoj haujlwm no, tuaj yeem yuav ntawm UTSource.net

Sponsor Txuas:

UTSource.net Xyuas

Nws yog lub vev xaib ntseeg tau rau kev xaj cov khoom siv hluav taws xob nrog pheej yig

tus nqi thiab zoo heev

Koj yuav xav tau:

- TPP223 capacitive kov modul

-Arduino Uno (koj tuaj yeem xaiv Mega lossis Nano)

-actuator (LED, lub cev muaj zog, twj tso kua mis …) Hauv qhov no kuv tau siv LED.

-daim ntawv qhia

-jumper xov hlau

-3x xaim jumper pins

-soldering hlau

-tus muag khoom

Kauj ruam 2: TTP223

TSI 223
TSI 223
TSI 223
TSI 223

Qhov no yog lub peev xwm kov lub ntsuas qhov ntsuas raws TTP223 kov lub ntsej muag. Vim tias nws lub peev xwm muaj peev xwm nws tuaj yeem cuam tshuam nrog yuav luag txhua yam koj tuaj yeem pom hauv koj lub tsev.

Kauj Ruam 3: Txuas TTP223 Module

Txuas TTP223 Module
Txuas TTP223 Module

Ntawm tus qauv no koj tsuas muaj peb tus pin.

1.pin VCC - tus pin no txuas nrog 5V+ lossis 3.3V+. Tab sis koj tuaj yeem xaiv qhov muab hluav taws xob los ntawm 2V+ txog 5.5V+.

2.pin GND - tus pin no txuas nrog hauv av.

3. tus pin I/0 - koj tuaj yeem txuas tus pin ntawm txhua tus lej digital ntawm Arduino.

Modul muaj lub qhov rau txhua tus pin, yog li koj tuaj yeem txuas cov hlau lossis cov hlua hlau txuas hauv nws (tuaj yeem pom ntawm daim duab): Rau cov txheej txheem no koj yuav xav tau cov hlau txuas thiab cov laug.

Kauj ruam 4: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Kev thaiv rau qhov piv txwv no yooj yim heev. Raws li koj tuaj yeem pom ntawm daim duab, koj txuas:

-GND tus pin rau GND ntawm Arduino

-VCC rau 5V+ ntawm Arduino

-I/O txhawm rau pin 8 ntawm Arduino

Rau LED koj tuaj yeem xaiv txhua tus lej digital. Kuv siv tus lej digital 13.

Kuv txuas cov xov hluav taws xob rau kev pab.

Shematic tau ua hauv Fritzing.

Kauj ruam 5: Code

Kuv tau xa cov cai hauv txt ntawv. Txhua yam koj yuav tsum tau ua yog theej cov cai los ntawm txt cov ntaub ntawv thiab muab nws tso rau hauv Arduino qhov chaw ib puag ncig.

Yog tias koj muaj teeb meem lossis lus nug txog tus lej, xa ntawv mus rau: [email protected]

Pom zoo: