Cov txheej txheem:

Ua Mini Wireless Keyboard Los Ntawm Koj Lub TV Chaw Taws Teeb: 10 Kauj Ruam (nrog Duab)
Ua Mini Wireless Keyboard Los Ntawm Koj Lub TV Chaw Taws Teeb: 10 Kauj Ruam (nrog Duab)

Video: Ua Mini Wireless Keyboard Los Ntawm Koj Lub TV Chaw Taws Teeb: 10 Kauj Ruam (nrog Duab)

Video: Ua Mini Wireless Keyboard Los Ntawm Koj Lub TV Chaw Taws Teeb: 10 Kauj Ruam (nrog Duab)
Video: NCO TXOG HNUB HMOOB VAJ POV TAWM TEB CHAWS - LOOJ CEEB - TOP NEWS PLUS UPDATE 05/14/2021 2024, Kaum ib hlis
Anonim

Los ntawm AmalMathewFollow Ntau los ntawm tus sau:

Arduino + GPS Module - Qhov Chaw Ceeb Toom Qhia
Arduino + GPS Module - Qhov Chaw Ceeb Toom Qhia
Arduino + GPS Module - Qhov Chaw Ceeb Toom Qhia
Arduino + GPS Module - Qhov Chaw Ceeb Toom Qhia
Wearable LED Matrix Display Badge
Wearable LED Matrix Display Badge
Wearable LED Matrix Display Badge
Wearable LED Matrix Display Badge
Multi-Source Controlled USB Teeb
Multi-Source Controlled USB Teeb
Multi-Source Controlled USB Teeb
Multi-Source Controlled USB Teeb

Koj puas tau xav txog kev ua lub keyboard wireless los ntawm nyiag koj lub TV tej thaj chaw deb. Yog li hauv cov lus qhia no kuv piav qhia koj yuav ua li cas thiaj tsim tau cov keyboard mini wireless pheej yig.

Txoj Haujlwm no siv IR (Infrared) kev sib txuas lus los tsim cov keyboard tshwj xeeb uas siv tau.

Cia peb pib

Kauj Ruam 1: Lub Tswv Yim Yooj Yim

Txoj Haujlwm no Siv IR kev sib txuas lus wireless los ua haujlwm sib txawv Keyboard. R, lossis infrared, kev sib txuas lus yog ib qho, pheej yig, thiab yooj yim siv thev naus laus zis kev sib txuas lus wireless. IR lub teeb zoo ib yam li lub teeb pom kev, tshwj tsis yog tias nws muaj lub nthwv dej ntev me ntsis. Qhov no txhais tau tias IR tsis tuaj yeem tshawb pom rau tib neeg lub qhov muag - zoo meej rau kev sib txuas lus wireless.

Lub Tswv Yim Yooj Yim ntawm txoj haujlwm no yog thaum koj tsoo lub pob ntawm koj lub TV tej thaj chaw deb, los ntawm kev siv IR tus txais thiab Arduino peb tuaj yeem txiav txim siab nws thiab cov lej txiav txim siab tuaj yeem siv los ua haujlwm sib txawv ntawm Pawg Thawj Coj. Kuv Siv Arduino Pro MicroBecause vim nws yog raws li ATmega32U4 microcontroller nrog lub built-in USB uas ua rau Micro pom tau tias yog nas lossis keyboard. Koj tuaj yeem siv Arduino Leonardo kuj qhov Project no yooj yim heev thiab ib qho tuaj yeem hloov kho raws li qhov xav tau.

Kauj Ruam 2: Sau Koj Cov Khoom:

Sau Koj Cov Khoom
Sau Koj Cov Khoom
  • Arduino Pro Micro lossis Arduino Leonardo
  • IR Receiver (TSOP1738)
  • Lub TV Chaw Taws Teeb
  • Qee qhov Jumper Wires

Nco tseg:

Koj tuaj yeem siv tsuas yog cov laug cam uas ua raws ATmega32U4.. Yog li Nws ua rau Micro/Leonardo paub zoo li nas lossis keyboard.

Kauj Ruam 3: Tus Txais IR (TSOP1738)

IR Receiver (TSOP1738)
IR Receiver (TSOP1738)
IR Receiver (TSOP1738)
IR Receiver (TSOP1738)

Nws yog tus txais me me rau infrared chaw taws teeb tswj lub tshuab. Lub teeb liab tso tawm tau tuaj yeem txiav txim ncaj qha los ntawm microprocessor. TSOP1738 yog sib xws nrog txhua hom IR chaw taws teeb tswj cov ntaub ntawv.

Kauj Ruam 4: Daim duab Circuit:

Daim duab kos duab
Daim duab kos duab
Daim duab kos duab
Daim duab kos duab

Yog tias koj siv Leonardo yuav muaj qhov hloov pauv me me hauv DATA tus pin. Koj yuav tsum txuas cov ntaub ntawv Pin rau hauv MOSI tus pin ntawm Leonardo.

Kauj Ruam 5: Txhim Kho IR Cov Tsev Qiv Ntawv Li Qub:

Rub tawm IR Cov Tsev Qiv Ntawv Los Ntawm No thiab nruab nws.

Yog tias koj tsis paub yuav teeb tsa lub tsev qiv ntawv arduino ntxiv li cas hauv qab no txuas

www.arduino.cc/en/Guide/Libraries

Kauj Ruam 6: Kev Txiav Txim IR Cov Teeb Meem Teeb Meem:

Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb
Kev txiav txim siab IR Cov Chaw Taws Teeb

Txhawm rau txiav txim siab cov cim los ntawm IR chaw taws teeb peb tuaj yeem siv "IRrecvDemo" kos duab kos duab raws li tau muab nrog IR Chaw Taws Teeb Chaw Nyob.

Nco tseg: Piv txwv li kos duab (IRrecvDemo) koj yuav tsum hloov pauv me me hauv int RECV_PIN tus nqi. Los ntawm lub neej ntawd nws yuav yog 11 tab sis ntawm Arduino Micro tus MOSI tus pin yog tus lej thib 16. Yog li ua qhov kev hloov kho hauv qab no rau cov cai.

int RECV_PIN = 16;

Yog tias koj siv Leonardo koj yuav tsum hloov nws mus rau MOSI tus lej tus lej.

  • Xaiv Pawg Thawj Coj (Arduino/Genuino Micro) -(Daim duab 3)
  • Xaiv Chaw- (Daim duab 4)
  • Upload Koj cov cai

Kauj Ruam 7: Nco Ntsoov Tus Nqis Teeb Meem Teeb Meem

Nco Tseg Qhov Kev Txiav Txim Siab Qhov Teeb Meem
Nco Tseg Qhov Kev Txiav Txim Siab Qhov Teeb Meem
  • Qhib Serial Monitor thiab tau txais IR Chaw Taws Teeb Tsoo qhov tseem ceeb.
  • Nco Tseg Qhov tseem ceeb rau txhua lub pob.

Kauj Ruam 8: Txoj Cai rau Pawg Thawj Coj Ua Haujlwm

Tom qab tau txais cov txiaj ntsig teeb liab cov kauj ruam tom ntej yog ntxiv cov txiaj ntsig teeb liab rau hauv qhov haujlwm thiab ua kom zoo tias yog lub teeb liab los ntawm kev sib tw deb nrog cov txiaj ntsig hauv qhov haujlwm tom qab ntawd, ua haujlwm sib txawv keyboard.

Ntxiv Keyboard Library rau qhov haujlwm ua rau nws ua tau cov haujlwm sib txawv keyboard.

Koj tuaj yeem rub cov cai los ntawm hauv qab no lossis koj tuaj yeem tau txais nws los ntawm kuv nplooj GitHub.

Rub tawm cov cai thiab xa mus rau arduino micro los ntawm Arduino IDE.

Kauj Ruam 9: Ua tiav:

Koj tuaj yeem hloov kho daim duab saum toj no raws li koj xav tau.

Xa mus rau cov kab hauv qab no txhawm rau ntxiv cov haujlwm keyboard

  • https://www.arduino.cc/en/Reference/KeyboardModif…
  • https://www.arduino.cc/en/Reference/ASCIIchart

Kauj Ruam 10: Saib Cov Cool-g.webp" />

Pom zoo: