Cov txheej txheem:

Teeb Bluetooth; Android Raspberrypi Unicornhathd: 4 Cov Kauj Ruam
Teeb Bluetooth; Android Raspberrypi Unicornhathd: 4 Cov Kauj Ruam

Video: Teeb Bluetooth; Android Raspberrypi Unicornhathd: 4 Cov Kauj Ruam

Video: Teeb Bluetooth; Android Raspberrypi Unicornhathd: 4 Cov Kauj Ruam
Video: Часы G-Shock до 250 долларов-15 лучших часов Casio G до 250 доллар... 2024, Kaum ib hlis
Anonim
Image
Image

Qhia:

Peb yuav ua lub teeb pom kev ib puag ncig uas tswj tau qhov chaw deb. Koj tuaj yeem pom qhov tshwm sim hauv video. Kuv tsis yog tus neeg hais lus Askiv ib txwm, yog li ua siab ntev nrog kuv cov lus.

Koj yuav tsum tsis txhob ntshai ntawm lub davhlau ya nyob twg, vim peb yuav tsis siv Duab Duab rau Pi. Kuv ntseeg tias cov lus qhia no ua tau nrog tsis muaj kev paub dhau los nrog cov dav hlau, koj kuv xav tias nws yuav suav nrog qhov googling me ntsis thiab tej zaum yuav ua rau muaj kev ntxhov siab me ntsis …

Koj xav tau dab tsi:

  • Raspberrypi Zero W (Yuav Raspberry pi Zero WH yog tias koj tsis xav siv lwm yam los txhuam)
  • Micro SD Card (rau Raspberry pi duab. 8GB yuav tsum muaj ntau dua)
  • Lub hwj chim muab rau Raspberry pi
  • Unicorn lub kaus mom hd
  • Android smartphone (txhua yam txij li 4.0.0 yuav tsum ua haujlwm, txawm tias kuv tsuas yog sim 7.1.1)
  • Saib xyuas (tsuas yog rau kev teeb tsa thawj zaug - koj yuav txuas tus pi rau nws. Nco tseg: Koj kuj tseem yuav xav tau adapter txuas koj tus Pi mus rau Tus Saib Xyuas)
  • Keyboard (tsuas yog rau kev teeb tsa thawj zaug - koj yuav txuas tus pi rau nws. Nco tseg: Koj kuj tseem yuav xav tau adapter txuas koj lub keyboard rau Pi)
  • Lub khoos phis tawj nrog Android Studio (rub tawm dawb yog tias koj tseem tsis tau teeb tsa nws)
  • WLAN nrog kev siv internet (tsuas yog rau thawj zaug teeb tsa pi)

(Yog tias koj xav tau kuv tuaj yeem ntxiv App rau playstore, yog li koj tuaj yeem hla ntu hauv xov tooj cua studio)

Kauj ruam 1: Raspbian

Pins:

Yog tias koj yuav Raspberry Pi Zero nrog cov pins cais: muab lawv tso rau koj Pi.

Duab:

Download Raspian Stretch Light.

Nyem nws rau koj daim npav SD. Piv txwv nrog BalenaEtcher.

Pib:

Ntxig rau Sd hauv Raspberry. Txuas tus saib thiab Keyboard rau tus pi. Txuas koj lub hwj chim. Pi yuav tsum khau raj.

Default username: "pib"

Default password: "raspberry"

Nco tseg: Lub keyboard txheej txheem pib yog Asmeskas. Koj tuaj yeem hloov qhov ntawd tom qab koj nkag mus rau koj tus pi siv raspi-teeb tsa.

Kauj ruam 2: Teeb Raspberry

Ua raws cov lus qhia ntawm README ntawm kuv GitHub Repository. Nws piav qhia txhua yam Step by Step.

Kauj ruam 3: Android Part

Android Hauv
Android Hauv
Android Hauv
Android Hauv

Koj yuav tsum muaj Pi khiav tam sim no.

Nruab Android Studio.

Clone GitHub Cov Chaw rau Android ib feem siv git (lossis tsuas yog rub tawm cov lej zipped yog tias koj tsis muaj kev paub dhau los nrog git thiab tsis xav kawm nws).

Qhib Android Studio thiab siv qhov ntawd los qhib Txoj Haujlwm. Txuas koj Android ntawm USB nrog koj lub computer.

Nyem rau ntshuam Android Studio Project uas twb muaj lawm. Xaiv lub nplaub tshev Lampe2. Yog tias nws nug koj kom ntxiv ib daim ntawv rau git: xaiv rho tawm/tsis.

Nyem rau ntawm "Run-> Run 'app'". Xaiv koj lub cuab yeej los ntawm cov cuab yeej xaiv thiab nyem "ok".

Koj yuav xav tau nruab cov khoom uas ploj lawm. Yog tias koj tau txais cov lus yuam kev liab nrog lo lus tseem ceeb xiav, nyem rau ntawm lo lus xiav thiab nws yuav tsum teeb tsa cia.

Yog tias koj muaj teeb meem, tsis txhob ua siab deb nug.

Kauj ruam 4: App

Lub App
Lub App
Lub App
Lub App
Lub App
Lub App

Koj yuav tsum muaj App tau teeb tsa tam sim no. Thiab koj lub hauv xov tooj ntawd yuav tsum tau ua khub nrog tus pi.

Qhib Bluetooth ntawm koj lub Smartphone.

Xaiv koj Pi los ntawm cov npe khoom siv ua ke.

Xaiv qhov hais kom ua thiab Nyem rau xa.

Qee zaum kev sib txuas muaj qee qhov teeb meem. Hauv qhov no: Tos kom txog thaum koj pom cov lus "Teeb tsis pom" thiab sim dua.

Muaj kev lom zem

Pom zoo: