Cov txheej txheem:

PoochPak: Lub Xov Tooj Txuas Txuas Txuas Ntse Ntse Dog: 4 Kauj Ruam
PoochPak: Lub Xov Tooj Txuas Txuas Txuas Ntse Ntse Dog: 4 Kauj Ruam

Video: PoochPak: Lub Xov Tooj Txuas Txuas Txuas Ntse Ntse Dog: 4 Kauj Ruam

Video: PoochPak: Lub Xov Tooj Txuas Txuas Txuas Ntse Ntse Dog: 4 Kauj Ruam
Video: LOKY -Txhob Ua Yog Toog (Official MV )Hmong New Song 2024, Hlis ntuj nqeg
Anonim

Los ntawm smayorquinCheck tawm kuv pib! - KindbotFollow Ntau los ntawm tus sau:

Tib neeg VU Meter
Tib neeg VU Meter
Tib neeg VU Meter
Tib neeg VU Meter
Alexa, kuv cov yuam sij nyob qhov twg?
Alexa, kuv cov yuam sij nyob qhov twg?
Alexa, kuv cov yuam sij nyob qhov twg?
Alexa, kuv cov yuam sij nyob qhov twg?
Ua ntawm Kindbot: Khoos Phis Tawj Khoos Phis Tawj Nrog Flask-Ask
Ua ntawm Kindbot: Khoos Phis Tawj Khoos Phis Tawj Nrog Flask-Ask
Ua ntawm Kindbot: Khoos Phis Tawj Khoos Phis Tawj Nrog Flask-Ask
Ua ntawm Kindbot: Khoos Phis Tawj Khoos Phis Tawj Nrog Flask-Ask

Txog: UC Berkeley tus tub ntxhais kawm lej uas nyiam nyiam tinkering nrog cov khoom siv hluav taws xob thiab cov khoom siv dag siv dag zog. Xav paub ntau ntxiv txog smayorquin »

Hauv kev siv tshuab, peb feem ntau tsom mus rau engineering tib neeg-hauv-lub-voj kom tau txais txiaj ntsig ntawm kev paub zoo ntawm lub khoos phis tawj thiab tib neeg lub siab. Tab sis cov dev muaj cov txuj ci ua rau lawv zoo heev rau qee yam haujlwm uas tib neeg ua tsis tau zoo. PoochPak qhia cov ntsuas kom txheeb xyuas qhov kev paub ntawd hauv cov lus ntsuas uas peb nyiam.

Peb cov tsiaj yog qhov muaj txiaj ntsig rau peb thiab yog li peb xav kom ntseeg tau tias lawv tau zoo. Nrog PoochPak, koj tuaj yeem saib xyuas koj tus tsiaj lub cev thiab tau txais ntawv ceeb toom ntawm SMS. PoochPak kuj tseem muaj lub koob yees duab pom kev hmo ntuj uas siv lub zeem muag hauv computer kom xa koj SMS lus thaum tib neeg tau kuaj pom. Nov yog qhov zoo rau kev tshawb nrhiav thiab cawm haujlwm thiab/lossis kev nyab xeeb hauv tsev.

Kauj ruam 1: Txuas koj li PoochPak

Txuas koj PoochPak
Txuas koj PoochPak

Koj yuav xav tau:

(1) Raspberry Pi Zero Wireless lossis Raspberry Pi 3

(1) Hologram Nova + (1) Hologram Ntiaj Teb IoT SIM Card

(1) Hmo Pom Kev Pom Lub Koob Yees Duab

(1) Adafruit Analog Accelerometer: ADXL335

(1) Adafruit DS18B20 Kub ntsuas

(1) Adafruit Pulse Sensor

(1) Adafruit MCP3008-8 channel 10 ntsis ADC + (1) Resistor 4.75k ohm

(1) Rechargeable Lithium Ion Battery

Aub hlua hlua xaiv

Rau kev thaiv

Txhawm rau xaim tag nrho cov ntsuas mus rau raspberry pi, thov ua raws daim duab kab hluav taws xob hauv ntu kab lus hauv qab no. Peb xaim tag nrho cov ntsuas no mus rau lub rooj tsav xwm pcb me rau kev sib txuas zoo dua thaum lub tsho khuam hnav. Koj yuav tsum txuas Hologram Nova ntawm qhov chaw nres nkoj usb (rau xoom peb siv microusb rau usb hloov pauv). Koj kuj yuav tsum txuas lub koob yees duab pi siv lub koob yees duab tsim nyog.

Kauj ruam 2: Kev teeb tsa

Kev sib raug zoo ntawm txoj haujlwm vam khom yuav tsum muaj nab hab sej 3.4 ua lub hauv paus sej 3. Koj yuav tsum hlawv cov duab tshwj xeeb no rau koj li raspberry pi xoom/ pi 3. Tom qab ua cov duab no thiab xaim tus pi, khau raj thiab hla dhau thawj zaug kev teeb tsa khau raj hu:

sudo raspi-teeb tsa

. Koj yuav tsum paub tseeb tias:

  • Nyob rau hauv Advanced Options, Nthuav cov fileystem
  • Hauv qab Cov Kev Xaiv Hauv Zej Zog hloov sijhawm thaj chaw
  • Hloov Tus Neeg Siv Tus password
  • Hauv qab Kev Xaiv Ua Haujlwm, pab ssh, lub koob yees duab, SPI, IC2, thiab Serial

Tom qab rov pib dua, git clone qhov repo no:

cd ~// tso

git clone https://github.com/mayorquinmachines/PoochPak.git cd PoochPak

Khiav cov ntawv sau los nruab txhua qhov kev vam khom. Nco tseg: Qhov no yuav siv sijhawm ntev! Cia nws khiav ib hmos.

./install.sh

Reboot koj pi tom qab ntawv teeb tsa tiav. Khiav:

sudo modprobe bcm2835-v4l2sudo modprobe w1-gpio sudo modprobe w1-therm

Qhov no tsuas yog ua kom ntseeg tau tias txhua tus qauv xav tau los sib txuas lus nrog cov ntsuas tau qhib.

Txhawm rau siv hologram xa SMS, koj yuav tsum teeb tsa koj Hologram Dashboard thiab qhib koj daim npav SIM. Nov yog Hologram starter guide rau ua qhov ntawd. Daim ntawv teeb tsa tau daws teeb tsa hologram-cli thiab hologram-python-sdk rau koj. Koj tuaj yeem sim qhov no los ntawm kev khiav:

sudo hologram version

Thaum koj daim npav SIM tau qhib thiab koj lub cuab yeej qhia tias nws nyob hauv koj lub Dashboard, koj xav teeb tus lej xov tooj uas koj xav xa SMS rau. Hauv koj lub Dashboard, nyem rau ntawm koj lub cuab yeej thiab taw rau Configuration. Los ntawm nplooj ntawv ntawd, koj yuav xav teeb tsa koj tus lej xov tooj nyob hauv Configure phone number. Qhov no yuav tsum teeb tsa koj Nova kom xa lus SMS rau tus lej no. Hauv tib nplooj ntawv no, koj yuav pom + Qhia Ntaus Tus Ntaus. Nyem rau ntawm lub pob no yuav muab tus yuam sij koj yuav xav tau los txheeb xyuas koj li hologram-python-sdk. Koj yuav xav tsim cov ntawv teeb tsa uas koj yuav tso tus yuam sij no rau siv. Khiav cov hauv qab no:

cd ~/PoochPaktouch config.py ncha "DEVICEKEY = ''" >> config.py

Kauj ruam 3: Khiav

Thaum kawg, kom ua raws txoj cai rau kev lees paub cov khoom thiab pib lub sensor server, ua raws cov lus qhia hauv qab no!

Pib YOLO cov khoom paub

cd yolo_picam/

nohup sudo python3 picam.py &

Pib Server

nohup sudo nab hab sej poochpak_server.py &

Thaum ib tus neeg tau kuaj pom, koj yuav tau txais SMS lus rau lub xov tooj uas koj teeb tsa hauv koj li Hologram Dashboard. Txhawm rau pom cov vis dis aus kaw thaum ib tus neeg tau kuaj pom, mus rau https:// thiab daim vis dis aus yuav muaj rau koj rub tawm. Yog tias koj mus rau https://: 8925, koj yuav tuaj yeem tau txais phau ntawv txhais lus nrog kev nyeem los ntawm cov ntsuas ntsuas ntxiv rau GPS qhov chaw ntawm lub tsho khuam.

Kauj ruam 4: Troubleshooting

Yog tias koj muaj teeb meem nrog Yolo cov khoom lees paub tsab ntawv (picam.py) tsis pom lub koob yees duab, nws tuaj yeem yog qhov koj xav tau rov qhib lub koob yees duab dua. Sim ua kom nws rov siv "sudo raspi-config" thiab khiav:

sudo modprobe bcm2835-v4l2

Qee zaum Hologram Nova poob lub teeb liab. Koj yuav tsum ua kom ntseeg tau tias lub teeb liab liab tau teeb thiab lub xiav LED ci ntsa iab. Kev nrawm nrawm txhais tau tias koj nyob ntawm 3G network, qeeb qeeb txhais tau tias 2G network, thiab tsis muaj lub teeb xiav txhais tau tias Nova tsis nyob hauv lub network tseem.

Yog tias cov ntsuas ntsuas tsis ua haujlwm raug, rov saib lub thaiv dua thiab xyuas kom txhua yam raug. Tom qab ntawd sim rov qhib lawv cov modules dua:

sudo modprobe w1-gpio #Rau lub ntsuas kub ntsuas sudo modprobe w1-therm #For ntsuas kub sudo modprobe spi-bcm2708 #For mem tes sensor

Kuj tseem muaj tsab ntawv koj tuaj yeem khiav los ntsuas txhua qhov ntsuas. Sim khiav:

nab hab sej ~/PoochPak/tests/run_tests.py

Pom zoo: