Cov txheej txheem:

Ua ke Kev Ruaj Ntseg Nrog Phidges thiab Twitter rau Awesomeness: 8 Cov Kauj Ruam
Ua ke Kev Ruaj Ntseg Nrog Phidges thiab Twitter rau Awesomeness: 8 Cov Kauj Ruam

Video: Ua ke Kev Ruaj Ntseg Nrog Phidges thiab Twitter rau Awesomeness: 8 Cov Kauj Ruam

Video: Ua ke Kev Ruaj Ntseg Nrog Phidges thiab Twitter rau Awesomeness: 8 Cov Kauj Ruam
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Hlis ntuj nqeg
Anonim
Ua ke Kev Ruaj Ntseg Nrog Phidges thiab Twitter rau Awesomeness
Ua ke Kev Ruaj Ntseg Nrog Phidges thiab Twitter rau Awesomeness

Kuv nyob hauv ib chav tsev uas txuas rau kev ruaj ntseg. Kuv tsis xav yuav xov tooj hauv tsev thiab kev saib xyuas hauv ib cheeb tsam tsis muaj qhov txaus ntshai. Kuv xav paub yog tias leej twg tuaj rau hauv kuv chav tsev thaum kuv ploj mus. Kuv tuaj yeem siv lub suab ntsuas tab sis kuv lub qhov rooj twb tau txuas (feem ntau yuav yog koj li)). Kuv xav kom ceeb toom ntawm twitter txawm hais tias sms, hu xov tooj, siren, thiab lwm yam kuj tseem ua haujlwm. Kuv muaj phidges interface 8/8/ 8 ntawm tes (https://www.phidgets.com) tab sis peb kuj tseem tuaj yeem ua qhov no nrog amx (https://www.amx.com) lossis netburner (https://www.netburner.com). …

Kauj Ruam 1: Kev Ruaj Ntseg Ua Haujlwm Li Cas

Kev Ruaj Ntseg Ua Haujlwm Li Cas
Kev Ruaj Ntseg Ua Haujlwm Li Cas

Nov yog tus txheej txheem ceev ntawm yuav ua li cas cov txheej txheem kev nyab xeeb nyob hauv ib txwm ua haujlwm. Thaum lub qhov rooj qhib lub LED rau thaj tsam 1 teeb tuaj. Lub qhov rooj sab yog thaj tsam 2. Ntau: Qhov teeb meem LED tau teeb vim tias nws tsis muaj xov tooj txuas nrog nws. Tsis muaj ib yam kuv ua tau txog qhov ntawd.

Kauj Ruam 2: Qhov Rooj Tiv Thaiv (tshem tawm)

Qhov Rooj Hu (tshem tawm)
Qhov Rooj Hu (tshem tawm)

Nov yog tus qauv "qhuav" kev sib cuag. Cov hlau nplaum ua tiav qhov Circuit Court thaum nws los ze.

Kauj Ruam 3: Ntsuas Qhov Rooj Sib Txuas thiab pleev xim

Lub Qhov Rooj Tiv Thaiv Txhim Kho thiab pleev xim
Lub Qhov Rooj Tiv Thaiv Txhim Kho thiab pleev xim

Nov yog lub qhov rooj tiv toj hauv lub qhov rooj jam thiab pleev xim rau.

Kauj Ruam 4: Saib hauv Khw

Saib hauv Khaub Ncaws
Saib hauv Khaub Ncaws

Nov yog lub kaw lus ruaj ntseg. Nws feem ntau yog nyob hauv lub txee dai khaub ncaws. Nws yog tus qauv txhawm rau ntswj lub qhov rooj kaw. Nws tau txais nws lub zog los ntawm lub qhov hluav taws xob hauv qab no thiab muaj lub roj teeb thaub qab 12volt hauv lub thawv.

Kauj Ruam 5: Sab Hauv Qhov Kaw

Sab Hauv Qhov Kaw
Sab Hauv Qhov Kaw

Qhov no zoo li scarier tias nws yeej yog. Koj tuaj yeem siv kev tshem tawm los txheeb xyuas cov xov hlau uas koj xav tau. Cov xov hlau mus rau keypads feem ntau muaj plaub lub xov hlau. Lub hwj chim los ntawm phab ntsa qhov hluav taws xob thiab roj teeb. Tsuas yog sab laug yog lub qhov rooj tiv tauj. Disconnect cov khoom thiab saib dab tsi tshwm sim. Yog tias koj tsuas hloov pauv ib lub xaim ib zaug koj tuaj yeem txuas nws dua ib zaug.

Kauj Ruam 6: Txuas rau Phidget

Txuas mus rau Phidget
Txuas mus rau Phidget

Tom qab koj tshem tawm cov xov hlau twg yog lub qhov rooj hu, txuas lawv mus rau cov tswv yim ntawm phidgets interface cov khoom siv. Kuv txuas ob lub xov tooj cua dub rau hauv av thiab lub qhov rooj nkag mus rau lub qhov rooj 4 thiab sab qhov rooj nkag mus rau 5.

Kauj Ruam 7: Tshooj Noog Yog Yooj Yim

Koj yuav xav tau google sej-twitter thiab yooj yim-json. Lawv muaj cov lus qhia yooj yim ntawm kev txhim kho cov tsev qiv ntawv ntawd. (Kuv suav nrog lawv hauv cov ntawv zip txuas) Koj kuj tseem yuav tsum tau txais lub tsev qiv ntawv sej phidgets. Peb tab tom pib nrog InterfaceKit-simple.py koj yuav tsum: ntshuam twittertwit = twitter. Api (username =, password =) thiab hloov def interfaceKitInputChanged (e): nrog rau qhov no interface interfaceKitInputChanged (e): #print "Input % kuv: % s " % (e.index, e.state) #status = twit. PostUpdate ('Qhov rooj sib cuag tau qhib thiab tam sim no nws tau kaw') yog e.index == 4: yog interfaceKit.getInputState (e.index): xwm txheej = twit. PostUpdate ('Qhov Rooj Tiv Thaiv Lub Qhov Rooj tau qhib thiab tam sim no nws tau kaw') lwm qhov: xwm txheej = twit. PostUpdate ('Lub qhov rooj sib tham hauv ntej tau raug kaw thiab tam sim no nws qhib') yog e.index == 5: yog interfaceKit. getInputState (e.index): xwm txheej = twit. PostUpdate ('Sab Rooj Sib Tham tau qhib thiab tam sim no nws tau kaw')

Kauj Ruam 8: Xeem Nws thiab Txaus Siab

Kuaj Nws thiab Txaus Siab
Kuaj Nws thiab Txaus Siab

Nco ntsoov tias koj muaj lub npe siv twitter siv tau thiab tus password. Koj lub khoos phis tawj koj txuas koj lub phidget kom xav tau kev sib txuas hauv internet. ENJOY thiab qhia rau kuv paub hauv twitter (mcotton) yog tias koj muaj lus pom

Pom zoo: