Cov txheej txheem:

Walker Proximity Device: 4 Kauj Ruam
Walker Proximity Device: 4 Kauj Ruam

Video: Walker Proximity Device: 4 Kauj Ruam

Video: Walker Proximity Device: 4 Kauj Ruam
Video: PSA: Wear glasses at the range… (Yes, this is a skit/joke) #gun #civtac #woodworking 2024, Hlis ntuj nqeg
Anonim
Image
Image

Nyob zoo sawv daws!

Peb yog pab pawg ntawm cov tub ntxhais kawm los ntawm Massachusetts Academy ntawm Lej thiab Kev Tshawb Fawb ntawm WPI. Tsis ntev los no peb tau ua tiav txoj haujlwm thev naus laus zis pab los pab rau cov neeg siv khoom nrog kev puas hlwb ntawm Xya Hills.

Raws li nws qhov kev dementia, tus neeg siv khoom qee zaum hnov qab nqa nws cov neeg taug kev nrog nws thaum nws taug kev los ntawm ib chav mus rau lwm chav. Txhawm rau pab nws nco qab, peb tsim lub Bluetooth-raws qhov sib thooj los ntawm kev siv Raspberry Pi Zero W thiab Bluetooth-enabled smart watch. Qhov kev tiv thaiv no tseem tuaj yeem siv los ntawm cov tib neeg uas muaj kev nco zoo ib yam xws li Alzheimer's thiab Huntington's disease.

Koj tuaj yeem siv cov kab ntawv txuas hauv qab no txhawm rau nkag ncaj qha rau peb cov kev xav tau, peb kev tshawb fawb keeb kwm yav dhau los, peb kev tshuaj xyuas kev sib tw, thiab peb qhov kev txiav txim siab, lossis rub tawm cov ntawv txuas nrog.

Kauj ruam 1: Cov ntaub ntawv

Hauv qab no yog cov npe khoom siv los tsim cov kab ke no:

  • Raspberry Pi Zero W (1)

    • Nqe: $ 10.00
    • Txuas:
    • Khoom ID: 3400
  • Ntse saib (1)

    • Nqe: $ 17.99
    • Txuas:
    • Nco tseg: Qhov no tuaj yeem hloov nrog txhua lub cuab yeej Bluetooth (Qib 3.0 lossis qis dua) uas tuaj yeem sib tham nrog Raspberry Pi thiab muab MAC Chaw Nyob
  • Laptop (Peb siv Mac)
  • Cov roj teeb nqa tau yooj yim: peb siv tus kheej lub roj teeb pob uas tsis muaj muag, tab sis cov roj teeb me me lossis cov roj teeb lithium uas tuaj yeem muab 5 volts tso tawm yuav txaus.
  • MicroUSB cable rau lub hwj chim muab rau Raspberry Pi

Kauj Ruam 2: Teeb Raspberry Pi

Ua ntej, teeb tsa koj li Raspberry Pi raws li cov theem hauv qab no:

styxit.com/2017/03/14/headless-raspberry-s…

Thaum koj tau teeb tsa Raspbian thiab txuas nrog koj li Raspberry Pi ntawm ssh, teeb tsa cov pob khoom xav tau los ntawm kev ua raws cov lus txib hauv qab no:

sudo apt-tau nruab bluetoothsudo apt-tau nruab sej-bluez

git clone

cd bluetooth-sib thooj

sudo python setup.py nruab

Tam sim no, nrhiav Bluetooth chaw nyob ntawm koj lub cuab yeej thib ob:

sudo bluetoothctl cov

luam theej duab

Thaum koj pom lub npe ntawm koj lub cuab yeej, theej nws qhov chaw nyob Bluetooth thiab khaws nws hauv qhov chaw nkag tau yooj yim. Nws yuav tsum muaj hom ntawv XX: XX: XX: XX: XX.

Tom qab ntawd, theej cov ntawv hauv qab no rau koj Raspberry Pi, sau tseg nws txoj hauv kev. Koj tuaj yeem siv Filezilla lossis lwm cov cuab yeej los luam cov ntawv.

github.com/danramirez2001/buzzer.py

Koj yuav tsum tau ntxig Bluetooth chaw nyob ntawm koj lub cuab yeej thib ob hauv qhov sib txawv BT_ADDR. Tus nqi pib RSSI tau teeb tsa rau -15 los ntawm lub neej ntawd, tab sis koj tuaj yeem kho qhov no raws li koj xav tau ntawm kab 38.

Thaum kawg, txhawm rau teeb tsa tsab ntawv kom khiav thaum twg Raspberry Pi tau qhib, ua raws cov lus txib hauv qab no:

sudo crontab -e

Qhib cov ntawv hauv koj qhov kev xav tau cov ntawv sau, taw mus rau kab tom ntej, thiab nkag mus:

@reboot python ~/koj/path/to/file/here/buzzer.py

Txuag cov ntaub ntawv thiab tawm mus, thiab Raspberry Pi teeb tsa tiav!

Kauj Ruam 3: Cov Khoom Sib Dhos

Txhawm rau txuas Raspberry Pi mus rau lub suab nrov, LED, lossis lwm yam khoom siv hluav taws xob yooj yim, yooj yim muab cov xov liab thiab dub los ntawm koj cov khoom siv ntxiv rau GPIO pawg thawj coj saib. Cov xaim dub yuav tsum txuas nrog tus pin hauv av; hauv txoj haujlwm no, nws tau txuas nrog tus pin thib peb los ntawm sab ntawm Raspberry Pi uas muaj daim npav SD nyob rau sab nraud. Tom qab ntawd, txuas cov xaim liab mus rau tus lej thib plaub ntawm kab sab hauv.

Thaum cov khoom siv hluav taws xob ua tiav, luam tawm lub casing hauv qab no kom ua tiav cov cuab yeej:

(CAD link)

Thaum lub casing tau luam tawm, ntxig Raspberry Pi thiab lub roj teeb me me nqa tau. Cov cuab yeej tuaj yeem txuas nrog tus neeg taug kev lossis lwm yam khoom siv los ntawm kev xauv cov hlua hlua los ntawm qhov qhib, thiab txhua tus neeg siv hnav lub ntse ntse yuav tuaj yeem ua kom zoo dua ntawm kev ceeb toom ze.

Kauj Ruam 4: Kev Txhim Kho thiab Kev Txhim Kho Ntxiv

Thaum lub cuab yeej no ua tiav nws lub luag haujlwm, muaj ntau qhov kev txhim kho uas tuaj yeem ua tau uas yuav txhim kho lub peev xwm ntawm lub cuab yeej no. Ib qho tuaj yeem txhim kho tau yog siv lub roj teeb me dua hauv kev tsim cov cuab yeej no kom tag nrho qhov loj thiab qhov hnyav tsawg dua. Lwm qhov tuaj yeem txhim kho rau cov cuab yeej no yog kom muaj kev ruaj ntseg zoo dua rau txhua qhov thaiv kom ntseeg tau tias lub cuab yeej tsis ua haujlwm tsis raug vim qhov tsis xav tau ntawm kev sib txuas ntawm cov xov hlau. Qhov thib peb qhov kev txhim kho tau yog ua kom lub cuab yeej yooj yim dua thiab them rau cov neeg uas yuav siv lub cuab yeej tab sis tsis paub txog thev naus laus zis.

Tej Yam Yuav Tau Txuas Ntxiv:

- Ua ntau qhov kev sim txhawm rau txiav txim siab qhov sib npaug uas txuas rau lub cuab yeej RSSI teeb liab lub zog thiab qhov nrug nruab nrab ntawm lub cuab yeej thiab lwm lub cuab yeej.

- Txhim kho cov ntaub ntawv zoo dua uas hnyav dua thiab ruaj khov.

- Siv qhov txheej txheem no nrog Wi-Fi thev naus laus zis hloov pauv ntawm Bluetooth thiab pom tus qauv twg zoo dua ntawm kev ua tiav txoj haujlwm uas tau muab.

- Siv cov txheej txheem no nrog Arduino hloov pauv ntawm Raspberry Pi thiab pom cov cuab yeej twg zoo dua nyob rau thawj lub hom phiaj.

Pom zoo: