Cov txheej txheem:

R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis: 8 Kauj Ruam (nrog Duab)
R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis: 8 Kauj Ruam (nrog Duab)

Video: R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis: 8 Kauj Ruam (nrog Duab)

Video: R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis: 8 Kauj Ruam (nrog Duab)
Video: Часы G-Shock до 250 долларов-15 лучших часов Casio G до 250 доллар... 2024, Hlis ntuj nqeg
Anonim
Image
Image
R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis
R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis
R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis
R-PiAlerts: Tsim kom muaj WiFi Raws Kev Ruaj Ntseg Nrog Raspberry Pis

Thaum ua haujlwm ntawm koj lub rooj, tam sim ntawd koj hnov lub suab nrov nyob deb. Puas muaj leej twg nyuam qhuav los tsev? Kuv lub tsheb nres ntawm kuv lub tsev, puas muaj ib tus neeg tsoo kuv lub tsheb? Tsis yog koj xav kom koj tau txais kev ceeb toom ntawm koj lub xov tooj lossis ntawm koj lub rooj kom koj tuaj yeem txiav txim siab seb puas yuav tshawb xyuas lossis tsis? Zoo lus nug tsis muaj ntxiv! R-PiAlerts nyob ntawm no!

R-PiAlerts yog dab tsi? R-PiAlerts yog Raspberry Pi3 raws kev ruaj ntseg tsim ua nyob ib puag ncig Firebase's Cloud. Yog tias muaj kev txav mus los, lub kaw lus yuav ceeb toom rau tus neeg siv ntawm qhov muaj peev xwm ua txhaum nrog cov ntawv xov xwm thiab ntsais muag LED zaub (ntsiag to pom lub tswb ntawm yam). Thaum tus neeg siv tau txais kev ceeb toom, nws lossis nws tuaj yeem tshawb xyuas. Txhua qhov kev tshawb pom pom yuav raug nkag mus rau Firebase database. Dhau li saib lub cav txav ntawm lub vev xaib, tus neeg siv kuj tseem tuaj yeem nkag mus rau lub cav txav ntawm iOS app. Kuv txiav txim siab los tsim qhov no vim tsis ntev los no tau tawg hauv ob lub tsheb thiab cov tsev nyob ib puag ncig kuv.

Vim li cas Pi3? Tom qab ntawd, Kuv tuaj yeem nkaum chav nyob tom qab lub qhov rooj lossis hauv tsheb. Tsis tas li chav tsev yuav tsum muaj peev xwm xa kuv cov ntawv ceeb toom lossis ceeb toom. Tus Pi3 tuaj yeem ua txhua yam no nrog ua hauv wifi thiab nws lub peev xwm khiav tawm USB pob roj teeb. Lwm qhov laj thawj yog vim li cas kuv thiaj xaiv Pi3:

  • Pi yog tus pheej yig
  • Nws yog ib qho yooj yim rau deploy thiab scale up
  • Nws teeb tsa tau los ntawm cov software pom
  • Muaj peev xwm siv cov lus qhia thiab cov cim. Txoj haujlwm no yuav siv SenseHat
  • Ua Haujlwm Tsis Muaj Lub Taub Hau (tsis muaj tus saib xyuas, keyboard lossis nas)

Nws Ua Haujlwm Li Cas

  • Qhov zoo tshaj tus neeg siv yuav xav tau 2 Raspberry Pis txuas nrog rau Firebase database, tab sis ib tus Pi yuav ua haujlwm ib yam nkaus.
  • Kev siv SenseHat, thawj Pi (Pi1) yuav kuaj pom kev txav mus los nrog lub ntsuas cua thaum lub Pi thib ob (Pi2) yuav tso tawm cov ntawv ceeb toom ntawm kev txav chaw.
  • Thaum Pi1 pom cov lus tsa suab, nws ua 3 yam

    • log txav mus rau lub database
    • tsim kev ceeb toom nkag mus ntawm lub hauv paus rau Pi2 los tso saib
    • xa tus neeg siv cov ntawv xov xwm ceeb toom rau tus neeg siv ntawm kev txav chaw.
  • Thaum Pi2 pom qhov kev ceeb toom kom pom los ntawm lub hauv paus, ob yam tshwm sim

    • Pi2's LED zaub yuav qhia qhov kev ceeb toom tsis tu ncua
    • Tus neeg siv tuaj yeem tshem qhov ceeb toom los ntawm kev nias ntawm Pi2 SenseHat lub pob. Qhov no tseem yuav tshem tawm qhov kev ceeb toom nkag mus ntawm lub database.
  • Nrog rau iOS app, tus neeg siv tuaj yeem ua tau

    • nkag mus rau lub database; nyeem thiab rho tawm lub cav txav
    • tus neeg siv tuaj yeem xa Pi1 los tso saib cov lus ntawm Pi1's LED zaub.

Daim Ntawv Thov Siv

  1. Yog tias koj txoj kev nres tsheb ntawm koj lub tsheb hauv thaj tsam wifi. Txuas lub roj teeb rau Pi1 (saib daim duab). Nkaum Pi1 hauv koj lub tsheb. Muab Pi2 qhov chaw pom yooj yim xws li nyob ib sab ntawm koj lub rooj (saib daim duab).
  2. Lwm daim ntawv thov yog tso Pi1 hauv koj lub tsev mus rau ib sab ntawm lub qhov rooj. Pi yog qhov me me uas neeg feem coob yuav tsis pom nws tshwj xeeb yog tias nws nyob tom qab ntawm pob khawm (saib daim duab). Tom qab ntawd tso koj Pi2 ntawm koj lub rooj ua haujlwm.
  3. Aub nkag mus rau hauv qhov chaw hauv tsev nws tsis xav tias? Muab Pi 1 tso rau hauv cheeb tsam ntawd. Nco ntsoov tias koj tso Pi rau hauv lub thawv khov kom koj tus dev tsis zom nws.

Tsuav koj Pis nyob hauv wifi ntau, lawv tuaj yeem ceeb toom lossis ceeb toom koj ntawm kev txav chaw. Yog tias koj tsis muaj Pi thib ob, koj tuaj yeem siv Pi1 txhawm rau txheeb xyuas kev txav chaw thiab tau txais SMS ceeb toom ntawm koj lub xov tooj ntawm tes.

Nqi Khoom

  • Ob (2) Raspberry Pi 3s khiav Raspbian (Raspberry Pi 2 yuav ua haujlwm ib yam nkaus nrog wifi dongle)
  • Ob (2) SenseHats
  • Mac thiab iOS ntaus ntawv

Software Xav Tau

  • Pyrebase tsev qiv ntawv (txuas rau Firebase)
  • SenseHat lub tsev qiv ntawv (rau kev nkag mus rau lub ntsuas cua thiab LED zaub)
  • Twilio tsev qiv ntawv (rau xa SMS)
  • Nab hab sej 3, ua nrog nrog Raspbian kawg
  • Raspbian nrog IDLE
  • Xcode8 thiab Cocoapods ntawm koj Mac
  • Siab xav kawm thiab tshawb nrhiav

Nco Ntsoov Qhov no tsis yog Pi nkaus xwb raws li kev daws teeb meem kev nyab xeeb. Yog tias koj muaj cov tswv yim, cov lus qhia, lossis tsuas yog xav kom rov ua dua kuv tus lej, thov tawm lus hauv qab no! =)

Kauj ruam 1: Teeb Firebase thiab Twilio Accounts

Teeb tsa Firebase thiab Twilio Accounts
Teeb tsa Firebase thiab Twilio Accounts
Teeb tsa Firebase thiab Twilio Accounts
Teeb tsa Firebase thiab Twilio Accounts

Ua ntej tshaj plaws, ua ntej peb pib fiddling nrog peb Pis, peb yuav tsum teeb tsa Firebase thiab Twilio. Firebase yog Google lub backend raws li kev pabcuam. Firebase suav nrog cov yam ntxwv xws li cov ntaub ntawv khaws cia, huab xa xov, kev txheeb xyuas qhov tseeb, khaws cia, thiab lwm yam. Kev lees paub yuav tsum tau nyeem thiab sau rau koj li Firebase database. Txhawm rau teeb tsa Firebase:

  1. Sau npe rau tus account Firebase dawb
  2. Mus rau lub console. Tsim txoj haujlwm tshiab thiab muab nws lub npe.
  3. Hauv qab cov ntawv qhia zaub mov, nyem rau ntawm "Txheej txheem cej luam"
  4. Nyem "Ntxiv Firebase rau koj lub vev xaib app", luam koj li APIKey thiab projectid (tsis yog qhov url). Qhov Project ID nyob hauv qhov URL sib txawv xws li lub hauv paus:
  5. Hauv qab cov ntawv qhia zaub mov sab laug, nyem rau ntawm "Authentication". Mus rau "Kos Npe Hauv Txoj Cai" thiab pab kom "Email/Password"
  6. Hauv qab "Tus Neeg Siv" tsim tus lej siv tshiab nrog email/password uas koj xaiv. Koj yuav siv daim ntawv pov thawj no los nkag rau hauv lub database.
  7. Hauv qab cov ntawv qhia zaub mov, mus rau "Database"
  8. Nov yog koj li Database. Nws yog khoob tam sim no. Thaum ua tiav, nws yuav yog hom JSON. Qhov URL yuav tsum zoo ib yam li qhov koj tau pom ua ntej.

Twilio tso cai rau cov neeg tsim khoom xa xov mus rau lawv cov neeg siv khoom. Peb yuav siv nws los xa SMS rau koj lub xov tooj thaum Pi pom kev txav chaw. Twilio yuav muab koj tus lej xov tooj xa tawm SMS. Txhawm rau teeb tsa Twilio:

  1. Sau npe rau tus as khauj dawb ntawm Twilio tus xaib
  2. Luam koj tus accountSID thiab authToken
  3. Nyem rau ntawm "Kev Txwv Txwv" thiab xaiv "tau koj thawj tus lej Twilio"
  4. Luam koj tus xov tooj tshiab

Kauj ruam 2: Teeb Koj Pis

Teeb Koj Pis
Teeb Koj Pis
Teeb Koj Pis
Teeb Koj Pis

Ua ntej peb tuaj yeem pib tsim lub Pis, peb yuav tsum tau teeb tsa. Nco ntsoov tias koj muaj tus lej nkag mus nkag rau koj tus Pis. Ua ntej peb yuav lub cev txuas SenseHat cov laug cam rau Pis. Tom ntej no, peb yuav teeb tsa qhov tsim nyog SenseHat, Twilio thiab Pyrebase cov tsev qiv ntawv. Firebase lub sijhawm tiag tiag database tau tsim los rau cov khoom siv mobile lossis cov vev xaib. Txawm li cas los xij, peb tuaj yeem nyeem thiab sau huab database los ntawm Rest API nrog lub tsev qiv ntawv pab xws li Pyrebase.

Txuas SenseHatM Nco ntsoov tias SenseHats txuas nrog koj tus Pis. Yog tias koj muaj qhov xwm txheej txawv txawv, koj yuav tsum tau tshem tus Pi ua ntej txuas rau SenseHat.

Txhim Kho Tsev Qiv Ntawv Txhua lub tsev qiv ntawv teeb tsa yuav ua tiav hauv Terminal

  • Khau koj lub Pis yog tias koj tsis tau muaj.
  • Thaum khau raj, koj tau txais cov xim zoo nkauj LED zaj sawv ntawm koj SenseHat! (saib duab)
  • Mus rau lub davhlau ya nyob twg thiab hloov kho/hloov kho tshiab, ntaus:

    • sudo apt-tau hloov tshiab
    • sudo apt-tau nruab dist-upgrade
  • Tom qab hloov kho tshiab tiav, ntaus cov hauv qab no rau nruab SenseHat cov tsev qiv ntawv:

    sudo apt-tau nruab kev nkag siab-lub kaus mom

  • Txhawm rau nruab Pyrebase, ntaus:

    sudo pip nruab pyrebase

  • Thaum kawg, teeb tsa Twilio

    sudo pip nruab twilio

Kauj Ruam 3: Python Script rau Pi1

Raws li peb tau hais ua ntej, Pi1 yuav yog Pi uas yuav siv los txheeb xyuas kev txav chaw. SenseHat qhov ntsuas tus ntsuas qhov ntsuas yuav raug siv los txiav txim siab txav chaw. Yog li, tus lej rau Pi1 yuav nyob ib puag ncig txhawm rau nkag mus rau qhov ntsuas qhov ntsuas qhov ntsuas qhov quab yuam thiab txiav txim siab cov lus tsa suab mus rau Firebase Database. Nov yog qhov txheej txheem txheej txheem txheej txheem:

  • Yog Pi1 pom kev txav chaw, nws yuav ntxiv qhov nkag mus rau "ceeb toom" tus menyuam hauv Firebase DB.
  • Pi1 tseem yuav hloov kho tus "notifypi2" tus menyuam nrog lus ceeb toom hais txog kev txav mus los.
  • Pi2, tom qab ntawv nyeem "ceeb toompi2" thiab tso tawm qhov kev ceeb toom ntawm nws cov LED matrix zaub.

Kuv tau suav nrog Pi1 Python tsab ntawv rau koj ua raws. Cov lus pom hauv tsab ntawv piav qhia qhov chaws ua haujlwm li cas.

Cov ntawv sau ntxiv thiab kev nkag siab rau Pi1 tsab ntawv

  • Rau Firebase thiab Twilio teeb tsa. Sau rau hauv qhov tsim nyog API tus lej, tus lej ID, tus lej zais, thiab lwm yam uas koj tau theej los ntawm cov kauj ruam dhau los.
  • Hais txog Firebase kev lees paub, kom muaj kev nyab xeeb ntxiv, koj tuaj yeem thov rau cov neeg siv khoom siv hloov pauv nyuaj coding cov ntawv pov thawj no. Txhua lub sijhawm peb sau lossis nyeem los ntawm lub hauv paus, peb yuav tsum suav nrog

    neeg siv ['idtoken'] nrog th

    tau (), thawb (), teeb tsa () txoj kev.

  • CPU kub xav tau yog li peb tuaj yeem cuam tshuam tau yog tias Pi kub dhau hauv lub tsheb lossis ib puag ncig kaw.
  • Peb kuj tseem suav qhov tseeb ntawm G cov rog txij li peb tsis tas yuav paub qhov muaj txiaj ntsig tsis zoo. Peb tsuas yog xav paub yog tias muaj G rog.
  • Yog tias nqe lus yuav tshuaj xyuas qhov ntsuas qhov ntsuas. Yog tias G muaj zog ntau dua 1 nyob rau hauv ib qho kev taw qhia, Pi1 yuav teev lub sijhawm txav mus los thiab tso tawm ib qho lus tshaj tawm ntawm nws tus kheej LED zaub. Nws tseem yuav hloov kho tus menyuam "notifypi2". Thaum "ceeb toompi2" hloov tshiab, Pi2 yuav nyeem nws thiab tso saib "!!!" ntawm nws cov zaub LED kom ceeb toom rau tus neeg siv ntawm kev txav mus los/tawg-hauv. Pi1 tseem yuav xa tus neeg siv SMS ceeb toom ntawm kev txav chaw.
  • Thaum siv qhov kev thawb () txoj hauv kev, Firebase yuav rov tsim dua tus menyuam nrog rau kev nkag tshiab. Qhov no xav tau yog li cov ntaub ntawv txav mus los yuav yog qhov tshwj xeeb. txheej txheem () txoj kev ntawm qhov tod tes yuav sau cov ntaub ntawv dhau los.
  • 10 lub hlis thib ob los tshuaj xyuas lub hauv paus yog qhov tsim nyog yog li koj Pi tsis thov dua cov ntaub ntawv los ntawm Firebase. Yog tias koj txuas ntxiv spam Firebase, Google yuav tso koj tawm hauv li 10 feeb.
  • Firebase tseem yuav ncaws tus neeg siv tawm txhua 60 feeb yog tias lub cim npe tsis rov ua dua tshiab. Kuv muaj qhov hloov tshiab teeb tsa rau 1800 vib nas this (30 feeb).

Kauj Ruam 4: Python Script rau Pi2

Python Script rau Pi2
Python Script rau Pi2

Yog tias koj saib daim duab, uas yog Pi2 tso tawm qhov ceeb toom ntawm kev txav mus los.

Pi2 tsab ntawv zoo nkauj npaum nkaus li Pi1 tshwj tsis yog tsab ntawv tsis pom kev txav chaw. Pi2 tsuas yog nthuav tawm lossis rov pib dua cov lus ceeb toom los ntawm tus menyuam "notifypi2". Txij li qhov ntawd tsuas yog qhov sib txawv, kuv yuav piav qhia hauv qab no.

  • Txhua txhua 10 vib nas this, Pi2 yuav tshuaj xyuas "ceeb toompi2" los tso saib. Yog tias muaj cov lus ceeb toom los tso tawm, Pi2 yuav tso tawm tsis tu ncua kom cov neeg siv pom nws.
  • Tsuas yog cov neeg siv kev cuam tshuam ntawm kev nias lub khawm joystick yuav cov lus meej thiab rov pib dua ntawm lub hauv paus database.

Kauj Ruam 5: Kuaj Pis

Image
Image
Test the Pis
Test the Pis

Lub sijhawm los ntsuas Pis.

  • Khiav cov ntawv sau rau feem Pis.
  • Nkag mus rau hauv Firebase thiab mus rau koj cov phiaj xwm phiaj xwm ntu.
  • Co koj Pi1, koj yuav tsum pom lub cim liab liab ntawm Pi1 LED zaub. Koj tseem yuav tsum tau txais SMS lus.
  • Txheeb xyuas lub hauv paus, ceeb toom nkag yuav tsum pib tshwm. "notifypi2" kuj yuav tsum tau hloov kho tshiab.
  • Ua tibzoo saib Pi2. Koj yuav tsum tau scrolling "!!!" Txhawm rau tshem tawm cov lus ceeb toom no, tsuas yog nias lub joystick. "notifypi2" yuav tsum rov pib dua. Txheeb xyuas koj li Firebase kom paub meej.
  • Yog tias koj pom Pi1 rhiab heev rau kev txav chaw, nce qhov pib mus rau ntau dua 1G hauv Pi1 tsab ntawv.

Yog tias txhua yam mus zoo, koj cov ntawv yuav tsis tsoo. Tam sim no, koj muaj lub kaw lus ceeb toom ua haujlwm. Thaum Pi1 pom cov kev txav lossis kev co, koj yuav tau txais SMS ceeb toom thiab pom pom LED ceeb toom ntawm Pi2.

Kauj Ruam 6: Tsim R-PiAlerts IOS App

Tsim R-PiAlerts IOS App
Tsim R-PiAlerts IOS App

Lub sijhawm los tsim iOS app! App yuav yooj yim haum. Nws yuav muaj LoginViewController thiab ItemTableViewController. ItemsTableViewController yuav tso cov ntawv ceeb toom ceeb toom los ntawm "ceeb toom" tus menyuam. Ib tus tseem tuaj yeem tshem tawm cov ntaub ntawv nkag los ntawm lub app. Txhawm rau txuag koj qee qhov mob taub hau, yog tias koj npaj yuav saib online qhia rau Firebase, nco ntsoov tias koj saib cov ntawv qhia hnub tim tom qab Lub Peb Hlis 2016 vim tias muaj kev hloov pauv loj nyob rau xyoo tas los nyob rau lub sijhawm ntawd. Txhua yam ua ntej Lub Peb Hlis 2016 yuav yog qub txeeg qub teg. Kuv tau koj txaus siab rau cov ntaub ntawv nrawm, thov tshuaj xyuas cov lus hauv qhov chaws. Yog tias koj xav tau cov ncauj lus qhia ntxaws ntxaws txog yuav tsim Firebase app uas nyeem lub hauv paus, txheeb xyuas Ray Wunderlich cov lus qhia li cas.

Teem Koj Li Txheej Txheem Txheej Txheem iOS

  • Tsim ib qhov saib iOS project hauv Xcode.
  • Luam theej daim ntawv pov thawj
  • Mus rau koj qhov haujlwm Firebase ntawm lub vev xaib thiab tsim cov ntaub ntawv info.plist nrog rau tus lej cim.
  • Ntxiv GoogleService-info.plist cov ntaub ntawv rau koj qhov haujlwm. Info.plist no tsuas ua haujlwm nrog qhov tshwj xeeb Firebase Project koj tau tsim.
  • Kaw tawm ntawm Xcode thiab nruab Firebase ntawm Cocoapods. Nco ntsoov nruab Auth thiab Database.
  • Pib dua Xcode, tom qab ntawd teeb tsa koj li AppDelegate.swift rau Firebase. Nws tsuas yog siv 2 kab ntawm txoj cai.

    Ntshuam Firebase ib

    FIRApp.configure (). Xaiv tau, Firebase muaj qhov ua haujlwm ruaj khov uas tsuas yog siv 1 kab ntawm txoj cai

    FIRDatabase.database (). PersistenceEnabled = muaj tseeb

  • Cov ncauj lus kom ntxaws cov txheej txheem tuaj yeem nrhiav tau ntawm Firebase lub Vev Xaib

Yuav ua li cas App cuam tshuam nrog Firebase Database:

  • Lub app yuav tsum tau txheeb xyuas tus neeg siv.
  • Thaum lees paub qhov tseeb, lub app yuav siv lub snapshot ntawm Firebase database thiab khaws nws ua "Khoom" yam khoom.
  • Hais kwv yuav sau ib array. Hais array yuav siv los sau cov tableview.
  • Tus neeg soj ntsuam yuav saib rau kev hloov pauv rau Firebase database thiab tsim cov duab nrawm.
  • Thaum cov kev hloov pauv raug kuaj pom, cov kab ke yuav txuas ntxiv los ntawm daim duab tshiab.
  • Tableview yuav muab rov qab los qhia qhov kev hloov pauv.

Cov Lus Qhia dav dav ntawm Yuav Ua Li Cas Tsim Lub App

  • Ua tibzoo saib cov duab ntawm yuav ua li cas lub app tau tso tawm hauv Xcode tus interface tsim.
  • Tsim ViewController hauv tus tsim interface thiab taw qhia cov chav kawm tshwj xeeb rau LoginViewController.swift.
  • Ntxiv textfields rau email thiab password. Tsis txhob hnov qab qhib "Ruaj Ntseg Nkag Nkag" rau lo lus zais. Ntxiv tus ID nkag mus khawm.
  • Txuas cov kab ntawv thiab khawm mus rau LoginViewController.swift. LoginViewController.swift yuav lis qhov authentication.
  • Ntxiv Navigation Controller hauv tus tsim interface. Tsim segue los ntawm LoginViewController mus rau Tus Tswj Kev Tswj. Nco ntsoov muab tus segue tus cim.
  • Teeb tsa chav kawm tshwj xeeb ntawm lub rooj saib tshiab uas tuaj nrog tus tswj kev taw qhia rau PointTableViewController.swift. Kuv kuj muaj 2 lub nyees khawm ntawm ItemTableViewController: Logout thiab ib qho ntxiv khawm. Txuas cov nyees khawm rau ItemTableViewController.swift.
  • Hais txog LoginViewController.swift code. Tus neeg siv yuav nkag mus rau lub peev xwm nkag mus thiab Firebase yuav xa tus neeg siv rov qab. Yog tias tus neeg siv tam sim no, nws yuav ua segue nrog tus cim. (saib cov ntawv txuas nrog)
  • Ntxiv rau Class.swift chav kawm (saib cov ntawv txuas nrog)
  • Hais txog ItemTableViewController code, nws yog tus qauv zoo nkauj tableview code. Yuav muaj ib tus neeg soj ntsuam los saib xyuas kev hloov pauv rau koj cov ntaub ntawv khaws tseg raws li cov duab me me ua cov khoom. Tom qab ntawd Cov Khoom Khoom yuav ntxiv cov kab ntawv los ua kom pom lub rooj. Lub pob ntxiv teeb tsa nkag rau hauv Firebase database rau Pi1 nyeem thiab tso saib. Txog kev luag, kuv kuj ntxiv cov cai (saib cov lej txuas nrog)

Kauj ruam 7: Kuaj App

Kuaj App
Kuaj App
Kuaj App
Kuaj App
Kuaj App
Kuaj App

Khiav koj lub app

  • Nkag mus thiab co koj Pi1. Koj yuav tsum pib pom cov ntawv ceeb toom ceeb toom tshiab tshwm tuaj.
  • Coj mus rhaub khawm ntxiv thiab saib koj Pi1 tso koj cov lus.
  • Los so sab laug, saib "Alerts" nkag nkag tau raug tshem tawm.
  • Tau txais ntau cov ntawv ceeb toom hauv kev ua tiav sai? hloov kho qhov ntsuas qhov ntsuas lossis nce lub sijhawm pw tsaug zog hauv Pi1 tsab ntawv.

Kauj Ruam 8: Xaus

Xaus
Xaus
Xaus
Xaus

Zoo heev! Tam sim no peb muaj Pis uas tuaj yeem txheeb xyuas kev txav chaw thiab xa koj cov ntawv ceeb toom ntawm kev txav chaw. Ntxiv rau qhov ntawd, koj tuaj yeem tswj hwm koj cov lus ceeb toom nkag nrog koj lub cuab yeej iOS! Lub sijhawm los xa Pis. Muab Pi1 nyob ib sab ntawm koj lub qhov rooj thiab Pi2 ncig koj thaj chaw ua haujlwm. Lwm zaus lwm tus tuaj, koj tuaj yeem tshawb xyuas qhov xwm txheej! Los yog zoo dua, sim zais ntawm Pi hauv koj lub tsheb nrog lub roj teeb pob. Qhib lub qhov rooj ob peb zaug, pom tias muaj dab tsi tshwm sim!

Qhov no tsuas yog pib qhov ua tau ntawm yam koj tuaj yeem ua nrog Raspberry Pi thiab Firebase. SenseHat tseem suav nrog cov ntsuas ib puag ncig, gyros, thiab lub compass. Koj tuaj yeem teeb tsa koj tus Pis txhawm rau txheeb xyuas qee qhov kev hloov pauv rau ib puag ncig. Xav nce koj cov kev ua si? Thaum koj tus Pi pom kev txav chaw, siv lub koob yees duab ntes cov duab thiab muaj Pi ntawv koj cov duab. Kuj sim siv lub khoos phis tawj lub zeem muag pom kev kom paub lub ntsej muag. yog nws lub ntsej muag ntawm ib tus neeg koj paub, koj tuaj yeem tau txais kev ceeb toom! Muaj kev lom zem!

Pom zoo: