Cov txheej txheem:

Hack nas nrog Arduino. 2500 Ft Wireless. PS/2: 5 Cov Kauj Ruam
Hack nas nrog Arduino. 2500 Ft Wireless. PS/2: 5 Cov Kauj Ruam

Video: Hack nas nrog Arduino. 2500 Ft Wireless. PS/2: 5 Cov Kauj Ruam

Video: Hack nas nrog Arduino. 2500 Ft Wireless. PS/2: 5 Cov Kauj Ruam
Video: Tik Tok || Tseem Nco Koj Thiab Kuv P15 2024, Hlis ntuj nqeg
Anonim
Image
Image
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas txhawm rau nas kom koj tuaj yeem siv nws ua tus tswj rau LED's, lub cev muaj zog, daim ntawv thov wireless thiab lwm yam.

Phau ntawv qhia no yuav npog cov tsev uas muaj xaim. Feem ntau ntawm cov tsev no siv PS/2 raws tu qauv.

Kev teeb tsa yuav ua haujlwm nrog txhua tus qauv ntawm Arduino.

Nws tsuas yog siv ob peb kauj ruam los tswj cov zis ntawm koj tus nas.

Ua ntej koj hle cov xov hlau ntawm tus nas thiab txuas lawv rau koj Arduino. Tom qab ntawd koj rub cov duab kos thiab pom qhov tshwm sim ntawm koj cov ntawv saib.

Kuv yuav qhia koj kom ntxaws li cas qhov no ua tiav

Ua ib qho ntxiv, Kuv yuav qhia koj yuav ua li cas kom koj nas wireless nyob deb li ntawm 2500 feet (750 meters).

Kauj Ruam 1: Daim Ntawv Teev Npe

1 x Nas nrog xaim

1 x Arduino Uno lossis lwm yam

4 x txiv neej pin -

Cov cuab yeej rau kev tshem tawm thiab siv tshuaj yaj yeeb

- Qhib cov ntaub ntawv ntawm no

Cov ntu tom ntej tsuas yog xav tau los ua nas wireless

- 2 x HC-12 module (Kuv tau txais kuv li pheej yig ntawm no)

Cov xov hlau txuas

Kauj ruam 2: Txuas thiab teeb tsa

Teeb thiab Teeb
Teeb thiab Teeb
Teeb thiab Teeb
Teeb thiab Teeb

Rub tawm cov kab kos thiab luam/muab tso rau hauv koj li arduino IDE.

Siav cov xov hlau ntawm tus nas thiab txuas rau Arduino raws li koj tuaj yeem pom ntawm daim duab. Cov xim tuaj yeem sib txawv nrog qee tus nas. Hauv daim duab koj yuav pom MDATA thiab MCLK cov no yog cov chaw nres nkoj ntawm Arduino thiab tuaj yeem hloov pauv.

Nkag mus rau hauv qab ntawm daim duab kos rau "void loop ()". Ntawm no koj tuaj yeem kho cov cai kom haum rau koj cov kev xav tau.

Kauj Ruam 3: Khiav lub Sketch thiab Qhib Serial Monitor kom pom qhov tshwm sim

Khiav lub Sketch thiab Qhib Serial Monitor kom pom qhov tshwm sim
Khiav lub Sketch thiab Qhib Serial Monitor kom pom qhov tshwm sim

Qhib cov ntawv saib tom qab koj tso cov duab kos rau Arduino.

Tsiv nas mus saib qhov tshwm sim.

Nws yog qhov me ntsis ntawm cov cai tab sis koj yuav tsum tsuas yog txhawj xeeb txog cov cai hauv sab hauv tsis muaj dab tsi voj (). Feem ntau ntawm cov cai yog los cuam tshuam nrog PS/2 raws tu qauv thiab yuav tsum nyob ib leeg.

Yog tias koj tsis pom ib qho txiaj ntsig, sim pauv MDATA xaim nrog MCLK xaim thiab sim dua

Qhov ntawd yog txhua yam rau nws. Tam sim no koj tuaj yeem hloov kho daim duab kom haum rau koj cov kev xav tau.

Hauv qhov seem ntawm cov lus qhia no koj yuav kawm paub yuav ua li cas nas wireless rau qhov deb li 2500 feet (750m).

Kauj Ruam 4: Teeb Ntau Yam Wireless Teeb

Teeb Ntau Yam Wireless Teeb
Teeb Ntau Yam Wireless Teeb
Teeb Ntau Yam Wireless Teeb
Teeb Ntau Yam Wireless Teeb

Peb yuav siv 2 HC-12 modules thiab 2 Arduino's los ua cov wireless txuas. Koj tuaj yeem pom cov ntawv qhia tag nrho ntawm HC-12 hauv lwm cov lus qhia uas kuv tau ua.

Txuas tus nas thiab cov qauv raws li qhia hauv daim duab rau 2 Arduino's.

Muab cov duab kos "Xa" thiab "Txais" rau ob qho ntawm Arduino

Qhib cov ntawv saib xyuas ntawm tus txais kom pom qhov tshwm sim.

Koj tuaj yeem hloov kho cov cai kom haum rau koj cov kev xav tau hauv qhov khoob khoob ()

Kauj Ruam 5: Ua Tsaug Rau Kev Nyeem Ntawv - Tom ntej no Project

Hauv daim vis dis aus no koj tau kawm paub siv nas li cas xws li tus tswj hwm thiab tswj lub wireless.

Koj puas muaj lus pom zoo rau txoj haujlwm tom ntej, qhia rau kuv paub hauv cov lus.

Yog tias daim vis dis aus no muaj txiaj ntsig zoo rau koj, thov nyem qhov nyiam thiab ua raws kuv rau ntau cov vis dis aus.

Ntsib koj zaum tom ntej.

Nyob zoo, Tom Heylen

Pom zoo: