Cov txheej txheem:

Kev nthuav qhia Khawv koob Wand Nrog Arduino: 3 Kauj Ruam
Kev nthuav qhia Khawv koob Wand Nrog Arduino: 3 Kauj Ruam

Video: Kev nthuav qhia Khawv koob Wand Nrog Arduino: 3 Kauj Ruam

Video: Kev nthuav qhia Khawv koob Wand Nrog Arduino: 3 Kauj Ruam
Video: qhia khawv koob pauj kev chim siab 2024, Kaum ib hlis
Anonim
Image
Image
Tsim Circuit Court
Tsim Circuit Court

Cov cuab yeej no yog npaj los siv rau hauv kev nthuav qhia kom nthuav qhia tus neeg siv nkag mus rau lub khoos phis tawj siv tau yam tsis tau tswj lub computer ncaj qha siv nas lossis keyboard. Los ntawm swiping tus khawv koob wand hauv ntau txoj hauv kev sib txawv, tus tshaj tawm tuaj yeem hloov pauv lub khoos phis tawj chaw ua haujlwm (cov ntxaij vab tshaus), hloov nplooj ntawv nthuav qhia, thiab ua tiav txog ob txoj kab ke kev cai. Nws kuj tseem nyiam cov neeg tuaj saib thiab tsim kev lom zem.

Nws ua haujlwm li cas thiab yuav siv nws li cas:

Thaum cov khawv koob khawv koob ua kom muaj zog, tus khawv koob khawv koob tsim qhov nkag mus hu ua "Wand_presentation." Txhawm rau nkag mus rau tus pas nrig khawv koob LAN, txuas rau qhov nkag mus nrog tus password "Wand123456." Cov khawv koob khawv koob kuj tseem tsim TCP lub qhov (socket) server nrog tus IP ntawm 192.168.4.1, Txhawm rau txuas rau TCP server, ua tiav cov kev pab cuam nab nab. Thaum ua tiav qhov kev pab cuam nab hab sej, nws yuav nug kom teeb tsa cov lus txib. Txhim kho cov lus txib tshwj xeeb los ntawm kev nkag mus rau qhov xav tau sib xws cov lus txib, thiab tus neeg siv khoom yuav pib txuas mus rau TCP server. Yog tias cov khawv koob khawv koob txuas nrog rau tus neeg siv khoom ua haujlwm ua haujlwm nab nab, LED ntawm qhov ntxeev ntawm cov khawv koob khawv koob yuav ci ntsuab. Thaum kawg, los so ob peb zaug los txheeb xyuas, thiab koj zoo mus.

1. Txuas rau "Wand_presentation" los ntawm WIFI cov npe hauv koj lub computer GUI, sau tus password "Wand123456"

2. Khiav tus nab npawb kev pab cuam

3. Txheeb xyuas thawj kab lus hais kom ua (cov lus txib uas ua rau thaum koj los so cov khawv koob wand ob zaug)

4. Txheeb xyuas thawj kab lus hais kom ua (cov lus txib uas ua rau thaum koj los so cov khawv koob wand peb zaug)

5. Los so ob peb zaug ib zaug txuas nrog txhawm rau txheeb xyuas cov lus teb. Koj lub khoos phis tawj yuav tsum hloov chaw ua haujlwm ib zaug koj los so nws sab laug lossis sab xis.

Yuav siv li cas thaum nthuav tawm:

Los so sab laug: hloov chaw ua haujlwm (tshuaj ntsuam) sab xis

Los so sab xis: hloov chaw ua haujlwm (tshuaj ntsuam) sab laug

Los so: nias thiab tawm qhov chaw khawm ib zaug

Swipe down x1: nias thiab tawm sab laug ib zaug

Los so nqes x2: ua raws txoj cai hais kom ua 1

Los so x3: ua raws cov lus txib tshwj xeeb 2

Cov ntaub ntawv:

1x Arduino nano 33 iot

1x luv micro-USB rau USB xaim

1 x RGB LED

1x ib leeg-celled NCR18650B roj teeb fais fab mov

xov hlau

3D luam tawm plhaub

Kauj Ruam 1: Npaj Koj Li Software

Arduino code:

Github:

1. Qhib lub davhlau ya nyob twg qhov rai, ntaus cov lus txib hauv qab no:

git clone

mv Magic_wand.git ~/Cov ntaub ntawv/Arduino/

2. Siv Arduino tus khoos phis tawj, tso cov cai siv ob qho online editor lossis offline editor

3. yog tias koj tuaj yeem tsis tuaj yeem ntsaws pyautogui hauv qhov program nab, khiav "pip install pyautogui" hauv davhlau ya nyob twg.

Kauj Ruam 2: Tsim Circuit Court

Kauj Ruam 3: Luam Ntawv thiab Sib Sau Lub Plhaub

Luam Ntawv thiab Sib Sau Cov Plhaub
Luam Ntawv thiab Sib Sau Cov Plhaub
Luam Ntawv thiab Sib Sau Lub Plhaub
Luam Ntawv thiab Sib Sau Lub Plhaub
Luam Ntawv thiab Sib Sau Lub Plhaub
Luam Ntawv thiab Sib Sau Lub Plhaub
Luam Ntawv thiab Sib Sau Cov Plhaub
Luam Ntawv thiab Sib Sau Cov Plhaub

Ua lub plhaub sab nrauv:

Siv lub tshuab luam ntawv 3D, luam tawm cov ntaub ntawv stl hauv qab no:

R5x1 ua

R6x1 ua

R7x1 wb

R8x1 ua

R9x1 wb

R10 ntev x1

R10 luv x2

R11x 2

R11 x 1

drive.google.com/drive/folders/1HCB-NytOKE…

Pom zoo: