Cov txheej txheem:

Lub Tsev Yooj Yim Automation Siv Raspberry Pi3 thiab Android Yam: 5 Cov Kauj Ruam (nrog Duab)
Lub Tsev Yooj Yim Automation Siv Raspberry Pi3 thiab Android Yam: 5 Cov Kauj Ruam (nrog Duab)

Video: Lub Tsev Yooj Yim Automation Siv Raspberry Pi3 thiab Android Yam: 5 Cov Kauj Ruam (nrog Duab)

Video: Lub Tsev Yooj Yim Automation Siv Raspberry Pi3 thiab Android Yam: 5 Cov Kauj Ruam (nrog Duab)
Video: Get Started → Learn English → Master ALL the ENGLISH BASICS you NEED to know! 2024, Kaum ib hlis
Anonim
Yooj Yim Hauv Tsev Automation Siv Raspberry Pi3 thiab Android Yam
Yooj Yim Hauv Tsev Automation Siv Raspberry Pi3 thiab Android Yam

Lub tswv yim yog los tsim "tsev zoo" nyob ntawm ib tus tuaj yeem tswj hwm cov cuab yeej siv hauv tsev siv Android Yam thiab Raspberry Pi. Txoj haujlwm no suav nrog tswj cov khoom siv hauv tsev xws li Teeb, Ntxuam, lub cev muaj zog thiab lwm yam.

Cov Ntaub Ntawv Yuav Tsum Tau:

Raspberry Pi 3

HDMI Cable

Relay

khoom siv hauv tsev zoo li Ntxuam, Teeb Lub Teeb thiab lwm yam.

Phom Soldering

Kauj ruam 1: Teeb

Teeb
Teeb
Teeb
Teeb

Rub tawm thiab Nruab Android Studio. Tsim ib tus as khauj ntawm Android Yam Console. Tsim cov khoom lag luam siv cov khoom lag luam tsim nyog.

android Studio:

txuas rau Android Console:

Hauv lub Hoobkas duab xaiv qhov tseeb hauv version thiab nyem tsim teeb tsa. Hauv daim ntawv teev npe teeb tsa rub tawm qhov tsim tshiab tshaj plaws uas koj tsim. Nov yog Raspberry Pi duab ntawm Andriod Yam. Luam cov ntawv.zip rub tawm kom tau cov duab ntawm Android Yam.

Yog xav paub ntau ntxiv nyem qhov no:

Kauj Ruam 2: Teeb duab rau ntawm Raspberry Pi

Rub tawm thiab teeb tsa ob lub software:

· SD daim ntawv formatter – siv los format SD card ·

Win32DiskImager - siv los nyem cov duab rau SD daim npav

Hauv daim npav SD daim ntawv xaiv qhov chaw nyob ntawm daim npav SD raug thiab nyem rau hom ntawv Tom qab kev teeb tsa qhib Win32DiskImager xaiv lub cuab yeej raug (qhov chaw nyob daim npav SD) thiab kho cov duab thiab nyem rau ntawm sau. Tom qab sau ntawv tiav koj tau ua tiav nyem nyem daim npav nco.

Kauj Ruam 3: Teeb tsa Android Yam

Ntxig daim npav SD rau hauv daim npav daim npav hauv RPi3 thiab txuas rau ib qho khoom siv siv HDMI. Txuas Ethernet Cable los ntawm Router mus rau RPi3. Txuas tus nas thiab keyboard rau RPi3 rau kev ua haujlwm. Tom qab OS khau raj koj yuav pom tus IP chaw nyob ntawm RPi3 tau tshwm.

Txuas lub PC rau tib lub router thiab qhib cmd. Txuas mus rau IP chaw nyob ntawm RPi3 siv cov lus txib:

$ adb txuas txuas nrog: 5555

Txhawm rau txuas lub cuab yeej rau Wifi khiav cov lus txib hauv qab no:

$ adb plhaub kuv pib ua haujlwm -n com.google.wifisetup/. WifiSetupService -a WifiSetupService. Connect -e ssid 'network ssid' -e passphrase 'password'

Hloov 'network ssid' thiab 'password' nrog koj li ntawv pov thawj Wifi. Nco tseg: yog tias koj muaj qee qhov nyuaj khiav adb hais kom ua tej zaum koj yuav tsum teeb tsa txoj kev adb hauv Ib puag ncig hloov pauv.

Kauj Ruam 4: Siv Daim Ntawv Thov ntawm RPi3

Kev xa daim ntawv thov rau RPi3
Kev xa daim ntawv thov rau RPi3

Rub tawm UI yooj yim los ntawm cov qauv txuas:

developer.android.com/things/sdk/samples….

Qhib txoj haujlwm no siv Android studio hloov pauv qhov tsim nyog yog tias xav tau.

Nyem rau khiav thiab xaiv RPI3 hauv cov khoom siv sib txuas.

Yog tias koj tsis tuaj yeem pom koj lub cuab yeej ces koj yuav xav rov txuas nws siv qhov hais kom ua:

$ adb txuas txuas nrog: 5555

Yog tias qhov ua tiav yog tiav daim ntawv thov yuav raug muab tso tawm ntawm lub saib.

Kauj ruam 5: Ua tiav

Image
Image
Tiav
Tiav
Tiav
Tiav

Ua daim duab hluav taws xob raws li qhia hauv daim duab.

Thaum kawg nrog cov theem saum toj no txoj haujlwm tiav.

Pom zoo: