Cov txheej txheem:

Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)
Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)

Video: Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)

Video: Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Image
Image
Lub Hnab Ntse Hnab Computer Ntse
Lub Hnab Ntse Hnab Computer Ntse

Nov yog "Smart Glove" computer nas uas tuaj yeem siv nrog txhua lub PC, Mac, lossis Linux computer. Nws tau tsim los siv Binho Nova ntau tus txheej txheem USB host adapter, uas tso cai rau koj txuas cov ntsuas hluav taws xob thiab lwm yam khoom siv rau koj lub khoos phis tawj thiab tom qab ntawd tswj hwm lawv siv cov lej ua haujlwm ntawm lub khoos phis tawj (tsis zoo li kev tsim lub microcontroller).

Nrog Lub Hnab Ntsej Ntse no, koj tuaj yeem txav tus cursor nas ncig, nyem sab laug, lossis nyem sab xis. Dragging tsis yog tam sim no programmed, tab sis nas tswj lub tsev qiv ntawv txhawb nqa qhov ua haujlwm yog tias koj xav ntxiv nws. Qhov no tuaj yeem hloov kho rau tus lej ntawm cov cuab yeej pab nas, xws li lub taub hau rau cov uas tsis tau siv lawv txhais tes.

Khoom siv

Txhawm rau tsim qhov no, koj tsuas yog xav tau ob peb yam. Cov no suav nrog:

  • Nova Kev
  • Binho Qwiic Interface Board
  • SparkFun Accelerometer (Qwic)
  • SparkFun Flex Glove Controller (Qwiic)
  • Ntev Qwiic Cable
  • Luv Qwiic Cable
  • Hnab looj tes ntawm koj xaiv
  • M3 cov ntsia hlau thiab teeb tsa cov cua sov

Koj kuj tseem yuav tsum tau nkag mus rau lub tshuab luam ntawv 3D los luam tawm lub thawv ntawv thiab ua kom pom cov lus qhia ntawm lub ntsej muag.

Kauj Ruam 1: 3D Luam Koj Qhov

Koj yuav pib los ntawm 3D-luam tawm lub thawv ntawv thiab flex sensor qhia. Kev txhawb nqa tsis tsim nyog.

Tom qab cov ntawv luam tawm, koj tuaj yeem siv cov hlau txuas los ua kom sov cov M3 ntxig thiab tom qab ntawd thawb lawv mus rau hauv qhov chaw.

Kauj ruam 2: Nruab Software thiab Tsev Qiv Ntawv

Ua ntej koj ua dab tsi ntxiv, koj yuav tsum teeb tsa Python 3. Koj tuaj yeem nrhiav tus nruab rau koj li kev ua haujlwm ntawm Python lub vev xaib ntawm no:

Koj mam li nruab cov tsev qiv ntawv siv los ntawm Binho Nova. Nov yog qhov yooj yim ua nrog Python tus thawj tswj hwm pob ua ke (Pip) los ntawm koj lub davhlau ya nyob twg lossis Windows PowerShell. Cov lus qhia tag nrho nyob ntawm no:

pip nruab binho-host-adapter

Thaum kawg, koj yuav tsum teeb tsa lub tsev qiv ntawv PyAutoGUI. Lub tsev qiv ntawv no cia koj programmatically tswj koj lub computer nas nrog Python. PyAutoGUI kuj tseem tuaj yeem teeb tsa nrog Pip, thiab cov lus qhia tag nrho nyob ntawm no:

pip nruab pyautogui

Kauj Ruam 3: Nkag Siab Python Script

To taub Python Script
To taub Python Script

Cov ntawv Python txuas nrog txhua tus lej koj xav tau rau Smart Glove. Tsuas yog kev hloov pauv uas koj yuav tsum tau ua yog mus rau COM chaw nres nkoj. Tam sim no tau teeb tsa rau COM3, tab sis koj yuav tsum tau hloov nws kom haum rau COM chaw nres nkoj uas koj Binho Nova tau sau npe rau.

Hauv Windows, koj tuaj yeem pom cov ntaub ntawv ntawd los ntawm kev mus rau koj Tus Thawj Tswj Ntaus Ntawv (txoj nyem rau lub cim Pib hauv Windows 10) thiab saib hauv qab Ports.

Koj kuj tseem yuav xav kho qhov "clickThreshold" tus nqi yog tias nas nyem tsis tshwm sim li qhov xav tau. Kev nce tus nqi no rau qee yam xws li 14000 yuav ua rau lub ntsuas phoo nkag tau yooj yim dua rau nyem, thaum txo nws mus rau qee yam zoo li 10000 yuav ua rau lawv tsis nkag siab (xav kom koj txav koj cov ntiv tes ntxiv).

Koj tuaj yeem nyeem dhau cov lus hauv kab lus kom nkag siab zoo tias nws ua haujlwm li cas, tab sis hauv qhov yooj yim:

  1. Ntshuam cov tsev qiv ntawv uas xav tau
  2. Teeb tsa PyAutoGUI tsis ua haujlwm zoo yog tias nas ua tsis raug
  3. Txhais qhov chaw nres nkoj COM thiab teeb tsa thawj qhov txiaj ntsig
  4. Tau txais Binho Nova npaj rau I2C kev sib txuas lus
  5. Pib qhov kev txuas mus rau lub ntsuas hluav taws xob
  6. Pib looping. Txhua lub voj, txheeb xyuas qhov tseem ceeb ntawm cov ntsuas hloov pauv thiab ntsuas lub ntsuas. Yog tias tsim nyog, txav tus cursor lossis nyem tus nas.
  7. Kaw qhov kev sib txuas Binho. Txoj cai yuav tsum tsis txhob mus txog qhov no tshwj tsis yog tias nws raug ncaws tawm ntawm lub voj li cas

Kauj Ruam 4: Sib Sau Koj Lub Hnab Ntsej Muag

Sib Sau Koj Lub Hnab Ntsej Muag
Sib Sau Koj Lub Hnab Ntsej Muag

Kev sib dhos yog qhov ncaj heev. Lub flex sensor board yuav txuas rau lub rooj tsav tsheb nrawm nrog luv Qwiic cable. Tom qab ntawd lub rooj tsav tsheb nrawm yuav txuas rau Binho Qwiic interface board nrog Qwiic cable ntev. Thaum kawg, lub rooj sib tham sib tham tau txuas nrog Binho Nova cov xov tooj sib txuas. Tam sim no koj tuaj yeem khiav Python scrip los ntsuas tias txhua yam ua haujlwm tau zoo.

Yog tias yog, tom qab ntawd muab koj cov khoom tso rau sab hauv ntawm lub thawv thiab ruaj ntseg ob lub ntsej muag ua ke nrog luv 10mm M3 screws. Ob lub flex sensor board thiab accelerometer board yuav tsum tau ntsib! Tam sim no koj tuaj yeem siv qee cov kua nplaum kub los yog ntaub nplaum los txuas lub thawv ntawv thiab cov ntawv qhia ua kom yooj yim rau koj lub hnab looj tes. Xyuas kom tseeb tias cov ntsia hlau tig rov los, yog tias koj xav tau qhib lub thawv ntawv tom qab. Nws tseem yog qhov zoo tshaj los kos cov haujlwm thaum koj hnav lub hnab looj tes txhawm rau kom ntseeg tau tias lawv nyob hauv qhov chaw xis nyob.

Qhov ntawd yog nws! Tam sim no koj tau txais lub khoos phis tawj txias nas nas! Koj tuaj yeem, tau kawg, ua ntau ntxiv nrog Binho Nova, qhov no tsuas yog qhov piv txwv ntawm kev yooj yim nws yog ua haujlwm nrog I2C cov khoom ib yam li cov hauv SparkFun's Qwiic lineup.

Assistive Tech Contest
Assistive Tech Contest
Assistive Tech Contest
Assistive Tech Contest

Khiav Tawm hauv Kev Pabcuam Sib Tw Tech

Pom zoo: