Cov txheej txheem:

WalabotEye - Lub Hom Phiaj Tracker Nrog Haptic Tswv Yim: 11 Kauj Ruam
WalabotEye - Lub Hom Phiaj Tracker Nrog Haptic Tswv Yim: 11 Kauj Ruam

Video: WalabotEye - Lub Hom Phiaj Tracker Nrog Haptic Tswv Yim: 11 Kauj Ruam

Video: WalabotEye - Lub Hom Phiaj Tracker Nrog Haptic Tswv Yim: 11 Kauj Ruam
Video: Женский Casio G-Shock White GMAS130 Step Tracker | Обзор 10 лучших вещей GMAS... 2024, Hlis ntuj nqeg
Anonim
Image
Image
Kho vajtse
Kho vajtse

Txhawm rau pom qhov nyuaj, siv qhov no kom nkag siab zoo txog lub ntiaj teb ib puag ncig koj.

Khoom siv

Yam khoom siv hauv txoj haujlwm no

Cov khoom siv kho vajtse Walabot Creator × 1

ADAFRUIT DRV2605L HAPTIC MOTOR CONTROLLER × 1

Raspberry Pi 3 Qauv B × 1

Adafruit VIBRATING MINI MOTOR DISC × 1

5.1V Roj Teeb Pob × 1

hnab ev ntawv × 1

Jumper xov hlau (dav dav) × 5

Kauj ruam 1: Paub daws teeb

Nws yuav zoo li cas yog tias koj tuaj yeem nkag siab cov khoom ib puag ncig koj? Lub ntsiab lus koj tuaj yeem taug kev ncig qhov chaw txawm tias koj lub zeem muag tau cuam tshuam? Tsis yog rau cov tib neeg uas tau pom ib nrab xwb, lub tswv yim no tseem tuaj yeem siv los ntawm cov kev pabcuam thaum muaj xwm txheej (uas yog lub chaw tua hluav taws) hauv ib puag ncig cov pa luam yeeb. Suab tsis yog qhov zoo tshaj plaws thiab feem ntau txoj hauv kev los muab kev qhia, haptic tawm tswv yim, ntawm qhov tod tes, yuav zoo tag nrho.

Kauj Ruam 2: Lub Tswv Yim Yooj Yim

Kuv xav tsim lub ntsuas hluav taws xob uas tuaj yeem tuaj yeem nqa cov teeb meem, thiab tom qab ntawd qhia rau tus neeg hnav siv cov lus qhia haptic deb npaum li cas lub hom phiaj nyob deb, thiab seb nws puas yog los ntawm sab laug, sab xis lossis tuag ua ntej. Txog qhov no kuv yuav xav tau: Lub ntsuas cua uas tuaj yeem pom 3D qhov chaw Haptic Tswv Yim tsav tsheb Haptic Tswv Yim Tawm Tsam Sab Nraud Roj Teeb Ib lub hnab ev rau nws kom hlua rau.

Kauj ruam 3: Walabot

Image
Image

Xav pom los ntawm phab ntsa? Paub cov khoom hauv qhov chaw 3D? Sense yog tias koj ua pa los ntawm thoob plaws chav? Zoo, koj muaj hmoo.

Walabot yog ib txoj hauv kev tshiab kom paub qhov chaw nyob ib puag ncig koj siv lub zog radar qis. Qhov no yuav yog qhov tseem ceeb rau txoj haujlwm no. Kuv yuav tuaj yeem nqa Cartesian (X-Y-Z) tswj hwm cov khoom hauv 3D qhov chaw, cov no yuav tau teeb tsa mus rau cov lus tsis txaus ntseeg kom muab tus hnav kom nkag siab zoo ntawm qhov chaw ib puag ncig lawv.

Kauj ruam 4: Pib

Thawj yam ua ntej, koj yuav xav tau lub khoos phis tawj tsav Walabot, rau qhov haujlwm no kuv tab tom siv Raspberry Pi 3 (qhov no hu ua RPi) vim yog ua hauv WiFi thiab dav dav ntxiv.

Kuv yuav 16GB SD daim npav nrog NOOBS tau teeb tsa ua ntej kom ua tau yam zoo thiab yooj yim, thiab xaiv rau nruab Raspian ua kuv li Linux OS xaiv (yog tias koj tsis paub yuav ua li cas rau nruab Raspian, thov siv sijhawm me ntsis los nyeem qhov no) OK, thaum koj tau txais Raspian khiav ntawm koj RPi, muaj ob peb txheej txheem teeb tsa los ua kom tau txais khoom npaj rau peb tes num. Ua ntej tshaj, xyuas kom tseeb tias koj tau khiav qhov tseeb Kernel version thiab tshawb xyuas qhov hloov tshiab los ntawm kev qhib lub plhaub hais kom ua thiab ntaus:

sudo apt-tau hloov tshiab

sudo apt-tau nruab dist-upgrade

(Sudo tau ntxiv los xyuas kom koj tau txais cov cai tswj hwm piv txwv li. Cov khoom yuav ua haujlwm.) Qhov no yuav siv sijhawm me ntsis los ua kom tiav, yog li mus thiab muaj lub khob zoo nkauj. 2.

Koj yuav tsum teeb tsa Walabot SDK rau RPi. Los ntawm koj tus RPi web browser mus rau https://www.walabot.com/gettingstarted thiab rub tawm Raspberry Pi installer pob.

Los ntawm cov lus txib plhaub:

cd cov downloads

sudo dpkg -I walabotSDK_RasbPi.deb

Peb yuav tsum pib teeb tsa RPi los siv lub npav i2c. Los ntawm cov lus txib plhaub:

sudo apt-tau nruab python-smbus

sudo apt-tau nruab i2c-cuab yeej

Thaum qhov no ua tiav, koj yuav tsum ntxiv cov hauv qab no rau cov ntaub ntawv modules.

Los ntawm cov lus txib plhaub:

sudo nano /thiab /modules

ntxiv 2 txoj hlua ntawm cov kab sib cais

i2c-dev

i2c-bcm2708

Walabot kos qhov ncaj ncees ntawm qhov tam sim no, thiab peb tseem yuav siv GPIO's los tswj cov khoom yog li peb yuav tsum teeb tsa cov no.

Los ntawm cov lus txib plhaub:

sudo nano /boot /config.txt

ntxiv cov kab hauv qab no thaum kawg ntawm cov ntawv:

safe_mode_gpio = 4

max_usb_current = 1

RPi yog cov cuab yeej zoo tshaj plaws rau cov tsim khoom, tab sis nws muaj txwv nyob rau tam sim no nws tuaj yeem xa mus rau Walabot. Yog li vim li cas peb thiaj ntxiv 1Amp max tam sim no ntau dua li tus qauv ntau dua 500mA.

Kauj ruam 5: Python

Vim li cas Python? Zoo, raws li nws yooj yim heev rau tus lej, nrawm kom tau txais kev khiav, thiab muaj ntau qhov piv txwv nab nab zoo muaj! Kuv yeej tsis tau siv nws ua ntej thiab tsis ntev thiab ua haujlwm tsis muaj sijhawm. Tam sim no RPi tau teeb tsa rau yam peb xav tau, cov kauj ruam tom ntej yog teeb tsa Python kom nkag tau mus rau Walabot API, LCD Servo cuam tshuam.

Rau Walabot

Los ntawm cov lus txib plhaub:

Sudo pip nruab "/usr/share/walabot/python/WalabotAPI-1.0.21.zip"

Rau Haptic Driver

Los ntawm cov lus txib plhaub:

sudo apt-tau nruab git tsim-qhov tseem ceeb nab hab sej-dev

cd ~ ib

clit ua

Adafruit DRV2605 haptic driver board yog qhov zoo vim tias koj tuaj yeem xa I2C cov cim qhia kom ua rau tons ntawm kev txuag haptic profiles. Tsuas yog qhov tsis zoo yog tsis muaj lub tsev qiv ntawv Python rau qhov no muaj. Tab sis tsis txhob ntshai! Kuv tau sau ib qho los ua ib feem ntawm txoj haujlwm no.

Kauj Ruam 6: Autorunning Script

Tam sim no qhov no tau teeb tsa thiab teeb tsa, thiab peb muaj Python code npaj, peb tuaj yeem teeb tsa yam khoom kom pib ua haujlwm yog li peb tuaj yeem tso cov keyboard thiab saib.

Muaj ob peb yam ua:

Tsim cov ntawv sau tshiab kom khiav tawm Python Program

sudo nano walaboteye.sh

Ntxiv cov kab no

#!/bin/sh

nab hab sej /home/pi/WalabotEyeCLI.py

Nco ntsoov txuag nws. Tom ntej no peb yuav tsum tau tso cai tsab ntawv los khiav los ntawm kev ntaus ntawv:

Sudo chmod +x /home/pi/walaboteye.sh

Thiab thaum kawg, peb yuav tsum ntxiv tsab ntawv no mus rau /etc/rc.local cov ntaub ntawv

Sudo nano /etc/rc.local Ntxiv tsev/pi/walaboteye.sh &

Nco ntsoov suav nrog "&". Qhov no tso cai rau Python Script kom khiav hauv keeb kwm yav dhau! Qhov ntawd yog txhua qhov kev teeb tsa thiab software txheeb, tom ntej no nws yog lub sijhawm los xaim cov cuab yeej.

Kauj ruam 7: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Qhov no tsis yog kuv lub sijhawm zoo tshaj plaws, tab sis nws zoo li hacky zoo siab! Raws li koj yuav pom los ntawm cov duab.

Kauj ruam 8:

Duab
Duab
Duab
Duab

Kev xaim hluav taws xob yog yooj yim heev. Txuas RPi, SDA SCL VCC thiab GND pins rau DRV2605 tus pin sib xws. Txuas koj lub cev muaj zog rau lub rooj tsav tsheb… qhov ntawd yog qhov ntawd!

Kauj ruam 9:

Duab
Duab
Duab
Duab

Tom qab ntawd, txhua yam koj yuav tsum tau ua yog txuas lub walabot USB rau RPi thiab tau txais koj daim nplaum nplaum zoo tshaj plaws, thiab ruaj ntseg txhua yam hauv qhov chaw raws li qhia:

Kauj Ruam 10: Nws Ua Haujlwm Li Cas

Lub tswv yim yog yooj yim heev. Nyob deb npaum li cas qhov teeb meem nyob deb npaum li cas lub suab nrov yuav hnov ntawm koj lub xub pwg. 2 meters deb yog lub suab nrov nrov, hauv qab 70cm yog lub suab nrov heev thiab txhua yam nyob nruab nrab.

  • Lub ntsuas kuj tseem tuaj yeem qhia koj yog tias qhov teeb meem tau tuag ua ntej, los ntawm sab laug lossis los ntawm sab xis.
  • Txoj hauv kev nws ua qhov no yog ntxiv qhov thib ob haptic buzz, nyob ntawm seb qhov khoom nyob qhov twg. Yog tias qhov teeb meem tuag ua ntej, nws yog ib qho yooj yim rov hais dua, nrog lub zog nyob ntawm seb nws nyob deb npaum li cas.
  • Yog tias qhov teeb meem nyob rau sab xis, muaj kev sib zog nce ntxiv tom qab lub suab nrov loj. Ib zaug ntxiv, lub zog nyob ntawm seb nws nyob deb npaum li cas
  • Yog tias qhov teeb meem nyob rau sab laug, lub suab nrov zuj zus ntxiv tom qab lub suab nrov loj

Yooj yim!

Kauj ruam 11: Txoj Cai

Walabot Eye Github

DRV2605 GitHub

Pom zoo: