Cov txheej txheem:

MIT App Inventor Particle Photon Test: 5 Kauj Ruam
MIT App Inventor Particle Photon Test: 5 Kauj Ruam

Video: MIT App Inventor Particle Photon Test: 5 Kauj Ruam

Video: MIT App Inventor Particle Photon Test: 5 Kauj Ruam
Video: Test Spark Photon Control by Android Particle App 2024, Kaum ib hlis
Anonim
MIT App Inventor Particle Photon Test
MIT App Inventor Particle Photon Test

Peb (Pab Pawg Pabcuam Tswv Yim) tau tsim kho cov phiaj xwm siv Internet siv Particle Photon thiab Electron IoT cov cuab yeej siv rau qee xyoo tam sim no, saib:

github.com/TeamPracticalProjects

Peb tau siv ntau qhov kev pabcuam los sib txuas lus nrog peb cov khoom siv Particle, xws li IFTTT thiab Blynk. Cov kev pabcuam no ua haujlwm zoo thiab tsis xav tau ib lub program. Txawm li cas los xij, lawv yuav tsum tau txwv; tshwj xeeb, hauv kev hwm rau cov laj thawj txwv uas koj tuaj yeem tso rau hauv app. Qhov no tau xav kom peb tso tag nrho cov laj thawj thiab suav qhov xav tau ntawm txoj haujlwm mus rau hauv Particle device firmware. Qhov no feem ntau tsis xav tau; tshwj xeeb thaum peb xav tsim kho vajtse thiab firmware uas tuaj yeem siv rau ntau dua ib lub hom phiaj.

MIT App Inventor 2 yog qhov siv tau yooj yim heev rau kev tsim cov kab ke tsim cov apps tiag. Tam sim no nws txwv tsis pub tsim Android apps, tab sis pab pawg MIT tau cog lus tias yuav txhawb nqa iOS hauv xyoo 2018. Ntxiv mus, muaj Android emulators muaj uas yuav khiav cov apps tsim nrog MIT App Inventor 2 ntawm Windows thiab Mac/OSX platforms.

Txoj haujlwm no yog hais txog kev qhia koj li cas los tsim cov apps hauv MIT App Inventor 2 uas tuaj yeem cuam tshuam nrog koj li phiaj xwm. Tshwj xeeb, koj tuaj yeem txhim kho koj tus kheej lub app uas tuaj yeem nyeem Particle Cloud-nthuav tawm qhov sib txawv (Particle.variable ()) los ntawm koj lub cuab yeej Particle thiab tuaj yeem hu ua huab nthuav tawm ua haujlwm (Particle.function ()) ntawm koj lub cuab yeej Particle. Txoj haujlwm no suav nrog Particle firmware thiab app sib xws, nrog rau cov ntaub ntawv hais txog yuav ua li cas cov cai no ua haujlwm.

Txoj haujlwm no tseem qhia koj yuav ua li cas suav nrog peb Cov Ntawv Teev Npe hauv koj li MIT App Inventor 2 app:

github.com/TeamPracticalProjects/Particle_App_Template

Cov Ntawv Teev Npe Me Me no tseem tau sau hauv MIT App Inventor 2 thiab muab koj lub app nrog lub peev xwm rau tus neeg siv nkag mus rau lawv tus lej Particle thiab xaiv cov khoom siv Particle siv nrog lub app. Nrog rau Particle App Template hauv koj lub app txhais tau tias koj tuaj yeem tshaj tawm koj li app ua ntej (.apk file); tus neeg siv ntawm koj daim ntawv thov tsis tas yuav tso lawv tus kheej Cov neeg siv nkag mus nkag tau yooj yim_token thiab deviceID sab hauv ntawm qhov chaws thiab suav nws tus kheej.

Zoo siab app tsim!

Pab Pawg Ua Haujlwm Zoo

Kauj ruam 1: Kho vajtse

Koj tsis xav tau kho vajtse yog tias koj tsuas xav kawm peb cov piv txwv app. Txawm li cas los xij, koj tuaj yeem tau txais txiaj ntsig los ntawm kev ua piv txwv, suav nrog kho vajtse, Particle firmware, thiab MIT App Inventor 2 software.

Kho vajtse uas koj yuav xav tau siv peb Cov Dej Los Dej Sensor luam tawm Circuit Board nrog cov khoom siv, thiab sab nraud LED/khawm hloov thiab nyiam ua haujlwm. Cov ntaub ntawv ua tiav tuaj yeem nrhiav tau ntawm:

github.com/TeamPracticalProjects/WaterLeak…

Txawm li cas los xij, koj tsis tas yuav tsim Txoj Haujlwm Dej Leak Sensor los ua qhov piv txwv no. Koj tuaj yeem ua nws ntawm lub khob cij uas tsis siv cov khoom siv cov khoom hauv qab no:

1. Particle Photon (lossis Electron)

2. LED nrog tam sim no txwv resistor

3. Hobby servo (3.3 volt tau tshaj)

4. (Tsis teb los tau) micro hloov khawm

Cov lus qhia rau kev tsim daim ntawv qhia zaub mov no rau lub khoos phis tawj tau suav nrog hauv Kev Txhim Kho thiab Kev Siv Tus Kheej:

github.com/TeamPracticalProjects/MIT-App-I…

Kauj ruam 2: Particle Firmware

Txhawm rau ua qhov haujlwm piv txwv no siv cov cuab yeej khoos phis tawj uas koj tau ua hauv cov kauj ruam dhau los, koj yuav tsum tau thauj khoom, ua ke thiab nyem Flash Particle firmware ("Test_MIT.ino") mus rau koj lub cuab yeej Particle (Photon). Lub firmware (qhov chaws) tau tshaj tawm ntawm:

github.com/TeamPracticalProjects/MIT-App-I…

Cov lus qhia rau kev suav ua ke, ntsais qhov firmware no rau koj li Photon lossis Electron, thiab ntsuas seb nws ua haujlwm li cas siv Particle Console, nyob hauv Kev Txhim Kho thiab Kev Siv Tus Kheej:

github.com/TeamPracticalProjects/MIT-App-I…

Kauj Ruam 3: MIT App Inventor 2 Piv Txwv Software

Peb tau suav nrog kev tsim ua ntej thiab npaj-rau-nruab version ntawm lub app ntawm:

github.com/TeamPracticalProjects/MIT-App-I…

Koj tuaj yeem xa cov ntawv no ncaj qha rau koj lub xov tooj ntawm tes Android thiab nruab nws yooj yim los ntawm kev coj mus rhaub ntawm cov ntawv no ntawm koj lub xov tooj ntawm tes. Cov lus qhia ntxaws ntxiv suav nrog hauv Kev Txhim Kho thiab Kev Siv Tus Kheej, ntawm:

github.com/TeamPracticalProjects/MIT-App-I…

Kauj Ruam 4: Kawm Yuav Sau Koj Tus Kheej Li Cas Li Cas Rau Koj Cov Txheej Txheem Raws Li Particle

Qhov project no yog kev ua si. Raws li xws li, nws lub hom phiaj tseem ceeb yog qhia koj txog yuav ua li cas sau MIT App Inventor software thiab cuam tshuam Particle firmware. Txhawm rau ua tiav lub hom phiaj no, peb tau suav nrog qhov chaws rau ob qho Particle firmware thiab rau MIT App Inventor 2 software rau qhov piv txwv no. Particle firmware qhov chaws yog nyob ntawm:

github.com/TeamPracticalProjects/MIT-App-I…

MIT App Inventor 2 qhov chaws nyob ntawm:

github.com/TeamPracticalProjects/MIT-App-I…

Nco ntsoov tias koj yuav xav tau MIT App Inventor 2 IDE txhawm rau saib thiab kho qhov chaws no. IDE yog lub vev xaib pub dawb uas tsuas yog xav kom koj muaj tus lej Google dawb thiaj li siv tau. Mus rau qhov URL hauv qab no kom pib nrog MIT App Inventor 2:

ai2.appinventor.mit.edu

Peb yuav tsis tso koj los xam tag nrho cov no rau koj tus kheej! Peb tau suav nrog cov lus piav qhia ntxaws txog qhov no txhua yam ua haujlwm li cas; saib:

github.com/TeamPracticalProjects/MIT-App-I…

Yog tias koj tsis ua dab tsi ntxiv nrog txoj haujlwm no, thov nyeem los ntawm daim ntawv kawg no. Peb lav tias koj yuav kawm ntau yam los ntawm kev ua li ntawd.

Kauj ruam 5: Mus Ntxiv

Qhov phiaj xwm ua haujlwm no siv peb Cov Ntawv Teev Npe Particle. Cov Ntawv Teev Npe Particle muab cov neeg siv ntawm koj lub app nrog lub peev xwm nkag mus rau hauv lawv tus lej nyiaj thiab xaiv lub cuab yeej siv nrog lub app. Ua li ntawd, nws tsis tsim nyog rau tus neeg siv ntawm koj txoj haujlwm txhawm rau nkag mus rau lawv tus kheej cov neeg siv thiab cov cuab yeej siv pov thawj rau hauv lub app qhov chaws thiab tom qab ntawv suav cov app rau lawv siv. Koj tuaj yeem sau daim ntawv thov rau koj txoj haujlwm, tsim nws rau hauv.apk cov ntaub ntawv (npaj rau nruab), thiab koj cov neeg siv tuaj yeem yooj yim teeb tsa nws yam tsis tas yuav tau sab laj txog qhov chaws (ntawm chav kawm, peb txhawb txhawb qhib qhov chaw tshaj tawm ntawm txhua qhov. qhov chaws kom cov neeg siv tuaj yeem nkag siab qhov haujlwm thiab txawm ua rau lawv tus kheej hloov kho thiab txhim kho rau nws).

Koj tsis tas yuav nkag siab tias Particle App Template ua haujlwm li cas rau koj siv nws hauv koj li MIT App Inventor 2 apps. Txawm li cas los xij, koj tuaj yeem kawm paub ntau ntxiv txog kev sib txuas lus nrog Particle Cloud yog tias koj tshuaj xyuas cov ntaub ntawv nthuav dav uas peb tau muab, ntawm:

github.com/TeamPracticalProjects/Particle_…

Koj puas tseem muaj lus nug? Tswv yim? Xav qhia rov qab? Thov koj xav tiv tauj peb ntawm:

Pom zoo: