Cov txheej txheem:
- Kauj ruam 1: Txoj kev xav
- Kauj ruam 2: Mus Tau Cov Khoom
- Kauj Ruam 3: Ua Sensor Mount
- Kauj Ruam 4: Txuas lub Sensor
- Kauj ruam 5: Plug rau hauv
- Kauj Ruam 6: Program Squidbee
- Kauj Ruam 7: Txuas rau Computer
- Kauj Ruam 8: Python
- Kauj Ruam 9: Kev vam khom
- Kauj ruam 10: Code
- Kauj Ruam 11: Tshem lub Rooj Zaum
- Kauj ruam 12: Undo Upholstery
- Kauj Ruam 13: Hloov Kho Lub Cushion
- Kauj Ruam 14: Ntxig rau Sensor
- Kauj Ruam 15: Rov ua dua
- Kauj Ruam 16: Hauv qab
- Kauj ruam 17: Qhib Nws
- Kauj Ruam 18: Khiav Txoj Cai
- Kauj ruam 19: Tweet
Video: Twittering Office Chair: 19 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Lub rooj zaum Twittering chaw ua haujlwm "tweets" (tshaj tawm Twitter hloov tshiab) thaum pom cov pa nkev xws li uas tsim los ntawm tib neeg flatulence. Nov yog ib feem ntawm kuv kev cog lus kom raug cov ntaub ntawv thiab qhia kuv lub neej thaum nws tshwm sim. Yog xav paub ntau ntxiv hauv qhov kev xav, thov saib cov kauj ruam tom ntej muaj cai Theory. Saib cov txiaj ntsig ntawm koj cov haujlwm ntawm Twitter.
Kauj ruam 1: Txoj kev xav
Raws li kuv tus neeg ua haujlwm, Twitter yuav tsum tshwm sim hauv qhov chaw ntawm Flickr cov lus tshaj tawm thiab Facebook hloov tshiab, hauv qhov chaw thaum lub neej tshwm sim tiag tiag. Zoo, hauv qhov chaw ntawm lub sijhawm "thaum lub neej tshwm sim tiag tiag," lub neej tshwm sim tiag tiag. Nws tsis zoo nkauj thiab tsis zoo. Nws yog lub neej xwb. Yog tias Twitter yuav tsum yog cov ntaub ntawv ntawm lub neej raws li nws tshwm sim, tom qab ntawd nws yuav tsum tau sau tseg lub neej tiag tiag, tsis cais leej twg, vim nws tshwm sim yam tsis muaj kev cuam tshuam. Yog tias nws tsis ua qhov no, lub neej tom qab ntawd dhau los ua qhov chaw nruab nrab ntawm "tweets" (Twitter posts).
Yog li, nws yog qhov tseem ceeb tshaj plaws, tuaj yeem hloov kho Twitter nrog cov xwm txheej hauv lub neej yam tsis cuam tshuam nrog qhov xwm txheej lawv tus kheej. Cov ntaub ntawv ntawm lub neej, txij no mus, yuav tsum tau siv lub tshuab.
Qhov ntawd tau hais tias, Kuv txiav txim siab thawj feem ntawm lub neej uas yuav tsum tau sau tseg yog kuv qhov kev ntuav txhua hnub ntawm haujlwm. Kuv yuav tsis dag, Kuv yog tus neeg gassy. Txij li thaum kuv ntuav yog ib feem ntawm lub neej, nws yuav yog kev dag ntawm kuv kom sau lub neej raws li nws tshwm sim yam tsis tau sau cov xwm txheej no.
Ua raws li cov txheej txheem ntawm kev tsis cuam tshuam hauv kev ua ub no txhua hnub, Kuv tau tsim lub rooj zaum hauv chaw haujlwm kom pom ob qho tib si thiab Twitter kuv ntuav tsis tas yuav thab kuv los hloov kho kuv tus kheej.
Kauj ruam 2: Mus Tau Cov Khoom
Koj yuav xav tau:- Chaw ua haujlwm lub rooj zaum- Squidbee TX/RX khub- 1/8 daim ntawm acrylic- 50K trimpot- Cov pa nkev nkev- Cov hlua txuas txuas txuas txuas- Kev teeb tsa teeb tsa- Laser txiav (lossis pom thiab xyaum)- rab chais hniav- Ntsia taub hau teeb - Laum- Ceev thiab ntsia liaj qhov rooj (lossis cov ntsia hlau)- Pliers- rab phom phom- Python- Tus account Twitter
(Nco ntsoov tias qee qhov txuas ntawm nplooj ntawv no yog cov koom nrog sib txuas. Qhov no tsis hloov pauv tus nqi ntawm yam khoom rau koj. Kuv rov nqis peev nyiaj dab tsi uas kuv tau txais los ua cov haujlwm tshiab. Yog tias koj xav tau cov lus qhia rau lwm tus neeg xa khoom, thov qhia rau kuv paub.)
Kauj Ruam 3: Ua Sensor Mount
Ua lub ntsuas hluav taws xob los ntawm rub tawm cov ntawv Corel txuas nrog thiab txiav koj li 1/8 daim ntawm acrylic siv koj li Epilog laser zoo txiav.
Kuv puas tau hais txog qhov txaus ntshai Epilog laser txiav?
Txawm li cas los xij … Yog tias, tsis zoo li peb ntawm Cov Ntawv Qhia, koj tsis muaj lub tshuab txiav laser, koj tuaj yeem rub tawm cov ntawv thiab luam nws rau ntawv. Txiav tawm cov lus qhia ncig ntawm daim ntawv ntawv thiab kaw qhov no rau koj cov acrylic raws li phau ntawv qhia. Yog tias tsim nyog, laum qhov los ntawm acrylic siv lub zog laum thiab txiav ib ncig ntawm tus qauv nrog tus lej (lossis zoo sib xws).
Kauj Ruam 4: Txuas lub Sensor
Txuas lub sensor mus rau qhov txuas txuas los ntawm kev ua raws cov kab hluav taws xob hauv daim duab qhia duab. Yog tias koj tsis muaj trimpot, koj tuaj yeem ntxig tus nqi tiv thaiv nruab nrab ntawm 22K thiab 47K (trimpot tau pom zoo). Thaum cov khoom siv tau ntxig, muab lawv tso rau hauv qhov chaw. Tej zaum koj yuav xav thawj zaug txiav tawm ib qho kev coj ua ntxiv uas yuav ua rau koj tsis meej pem. Saib cov ntawv teev tseg ntawm no.
Kauj ruam 5: Plug rau hauv
Qhib koj Squidbee (piv txwv tias koj tsis tau ua koj tus kheej) thiab tshem tawm txhua qhov tsis muaj txiaj ntsig. Ntsaws rau hauv koj lub nkev roj pom lub ntsuas pa xws li lub zog mus rau lub qhov hluav taws xob thiab cov ntaub ntawv kab mus rau tus pin 2 (raws li qhia hauv qab).
Kauj Ruam 6: Program Squidbee
Tam sim no yog lub sijhawm los ua haujlwm rau koj Squidbee nrog cov lej txhawm rau nyeem cov ntsuas sib piv.
Thawj yam ua ntej tshaj, tshem lub Xbee daim thaiv los ntawm Arduino (ib feem ntawm Squidbee lub ntsuas hluav taws xob tau ntsaws rau hauv). Tsis tas li, hloov lub hwj chim jumper los ntawm roj teeb rau USB zog.
Tom ntej no, ntsaws Arduino rau hauv koj lub USB chaw nres nkoj.
Qhib Arduino programmer.
Teeb Serial chaw nres nkoj (feem ntau zoo li /dev/tty.usbserial-A70048pF). Sau qhov chaw nyob chaw nres nkoj rau kev siv yav tom ntej.
Rub tawm, qhib thiab ntaus lub pob "ua si" txhawm rau sau cov cai (rub tawm hauv qab). Tshaj tawm cov cai rau koj Arduino.
Tshem lub Arduino ntawm koj lub computer. Hloov lub jumper rov qab rau roj teeb lub zog thiab tso Xbee daim thaiv rov qab.
Kauj Ruam 7: Txuas rau Computer
Thaum koj npaj pib pib nyeem ntawv sensor, ntsaws koj lub roj teeb 9V rau hauv Squidbee tus xa xov thiab txuas tus txais rau lub khoos phis tawj.
Koj tuaj yeem pom cov ntaub ntawv nkag los ntawm kev saib cov ntawv txuas hauv Arduino interface ntawm koj lub computer.
Kauj Ruam 8: Python
Ua ntej koj tuaj yeem mus tom ntej, koj xav tau Python. Yog tias koj siv Mac nrog OS X tsis ntev los no, koj yuav tsum muaj Python twb tau qhib lawm. Qhov no yuav tsum qhib Python. To pom Python ua nws yam khoom: luam tawm 'nyob zoo ntiaj teb' (thiab ntaus Enter) Qhov no yuav rov qab "Nyob Zoo Ntiaj Teb" hauv qhov hais kom sai. Lo tawm Python ntaus "tswj-D". Yog koj tsis ua muaj Python, koj tuaj yeem rub tawm nws ntawm no thiab teeb tsa nws los ntawm kev ua raws cov lus qhia teev tseg.
Kauj Ruam 9: Kev vam khom
Muaj ntau tus hoops koj yuav tsum dhia hla ua ntej koj tuaj yeem ua haujlwm Python code hauv cov kauj ruam tom ntej. Thawj qhov koj xav tau yog setuptools plhaub tsab ntawv. Qhib lub davhlau ya nyob twg thiab hloov koj cov npe ua haujlwm rau cov npe setuptools yog nyob hauv. Koj tuaj yeem hloov cov npe los ntawm kev ntaus "cd nameofdirectory" thiab ntaus "enter". thiab koj tuaj yeem saib cov npe dab tsi nyob hauv koj qhov chaw tam sim no los ntawm kev ntaus "ls" thiab ntaus "enter". Thaum koj nyob hauv phau ntawv qhia raug, teeb tsa lub plhaub tsab ntawv los ntawm kev ntaus chmod setuptools.egg (lossis xijpeem lub npe tseeb ntawm cov ntawv yog. Tsis txhob hloov npe cov ntawv). Qhov no yuav xav kom nkag mus rau koj tus thawj coj tus password. Ua li ntawd thaum hais kom ua thiab ntaus "nkag mus". Tam sim no koj yuav tsum tuaj yeem siv Easy Install, uas, tshwm sim los ua ib qho ntawm cov ntawv loj tshaj plaws uas tau sau tseg. Thaum koj muaj Kev Nruab Nrab yooj yim koj tsuas yog yuav tsum sau rau hauv qhov hais kom ua "easy_install" ua raws li lub npe ntawm pob koj tab tom sim rub tawm thiab ntaus "nkag." Piv txwv li, "easy_install greatcode" (tsis yog piv txwv tiag). Yam tom ntej uas koj paub, koj tau rub tawm thiab teeb tsa tag nrho "cov lej zoo" pob rau siv hauv koj tus lej code. Qhov no yuav nruab qhov yooj yim Json, Twitter, Lub Sijhawm thiab qib Lej (lej) pob khoom.asy_install yooj yimjsoneasy_install pyserialeasy_instally tus lej yooj yim_instally timeDownload thiab teeb tsa Python Twitter los ntawm kev ua raws cov lus qhia ntawm nplooj ntawv (koj yuav txawm sim "yooj yim_install twitter").
Kauj ruam 10: Code
Txoj haujlwm no yog qhov kev zam txim rau kuv kom pib kawm Python. Raws li cov neeg tshiab, txoj cai no tsis zoo tag nrho, tab sis nws tau ua txoj haujlwm tiav. Yog tias koj muaj lus qhia yuav ua li cas thiaj yuav txhim kho qhov no, thov qhia rau kuv paub. Qhov ntawd tau hais, qee qhov muaj txiaj ntsig uas kuv tau kawm txog Python suav nrog: Ib qho ntawm Python cov yam ntxwv zoo tshaj (lossis tej zaum qhov phem tshaj?) Yog nws tsis muaj syntax. Koj tsis tshua xav tau nco txog qhov kaw lossis qhib tag. Koj tsuas tuaj yeem khaws cov kab ntawm cov cai thiab Python yuav sim nws qhov zoo tshaj plaws los ua nws. Python txheej txheem thaiv cov cai raws li lawv qhov kev nkag mus. Kev nkag tsis zoo tuaj yeem ua rau muaj kev puas tsuaj loj. Piv txwv li, tsuas yog txoj hauv kev tus lej paub tias qee yam yog ib feem ntawm lub voj yog vim nws tau nkag mus tib yam li txhua yam uas tseem yog ib feem ntawm lub voj ntawd. Qhov no tuaj yeem pib ua kom tsis yooj yim nrog cov kab sib txuas (loops sab hauv ntawm loops) thiab ua rau tsis meej pem thiab cov cai tsis zoo. Python txoj haujlwm ua haujlwm tsis meej pem ntawm ntau qib (piv txwv li qee qhov kev hloov pauv tau thiab qee qhov tsis yog). Kuv tsis nkag siab txog cov haujlwm nyuaj, tab sis yog tias koj xav tau, koj yuav tsum tau saib nws tas li. Qhov chaws peb yuav siv suav nrog ntau lub pob, sau ua haujlwm uas tuaj yeem thov ntawm yuav (saib kawg kauj ruam rau cov ntaub ntawv ntau ntxiv txog kev txhim kho cov pob khoom.
! phim koj qhov chaw nres nkoj serial#ser = serial. Serial ('/dev/tty.usbserial-A70063pF', 19200) serialArray = ntiaj teb gassygassy = 0def checkokay (): ser.flushInput () time.sleep (3) kab = ser.readline () time.sleep (3) yog kab == '': kab = ser.readline () luam tawm 'ntawm no' pib qhov kev ntsuas pib (i): thaum kuv <= 50: #time.sleep (.25) kab = ser.readline () serialArray.append (int (kab)) ser.flushInput () i = i+1 luam tawm serialArraycheckokay () pib tus nqi (0) def main (i, i1): ArrayTransfer = numpy.array (i) ComparatorValue = int (numpy.mean (ArrayTransfer)) print ComparatorValue lastReading = ComparatorValue print lastReading loopy = i1 print loopy y = 0 x = 0 while y <10: while x lastReading: lastReading = currentReading print lastReading print currentReading time.sleep (6) ser.flushInput () x = x+1 luam 'ib nrab feeb e 'x = 0 y = y + 1 if lastReading> (ComparatorValue + 50): i1 = 1 if i1 == 1: sayings = ["Nws farted dua nrog kev ua tiav thiab muaj zog. Woest kuv. "," Pfffffffffft "," Ugh. Qhov ntawd yog qhov tsis txaus ntseeg "," Qee tus neeg thov tshem kuv "," Yog tias kuv tuaj yeem ua rau kuv cov khoom ua npuas, kuv yuav "," Kuv xav tias kuv yog lwm lub rooj zaum "," Nws rov qab ncaj rau kuv dua "," Tsis Yog hnov tias los "," tso cai rau kuv rov… ppppfffffffffftttttttttttttttttttttttttttttttttttttttttttttt, "Nws tsis yog ib txwm zoo li no."] pickSaying = random.randint (0, 9) print pickSaying status = api. PostUpdate (sayings [pickSaying]) loopy = 0 luam 'ua tiav' yog _name_ == "_main_": lub ntsiab (serialArray, loopy) lub ntsiab (serialArray, gassy)
Kauj Ruam 11: Tshem lub Rooj Zaum
Kos rau ntawm lub rooj zaum ntawm qhov chaw nruab nrab ntawm koj hauv qab thiab hauv qab ntawm tus thaub qab. Nov yog qhov chaw uas koj xav teeb tsa lub sensor.
Tshem lub rooj los ntawm lub rooj sib dhos lub rooj zaum thiab tshem lub nraub qaum kom txog thaum koj tuaj yeem nkag mus tau ua npuas dej hauv thaj chaw uas koj cim.
Kauj ruam 12: Undo Upholstery
Cov ntaub ntawm koj lub rooj zaum yog zaum nrog cov khoom siv.
Tshem cov khoom siv los ntawm sab nraub qaum ntawm lub rooj uas koj tuaj yeem rub me me ntawm cov ntaub.
Kauj Ruam 13: Hloov Kho Lub Cushion
Rip li ua npuas ncauj kom muaj lub hnab tshos uas lub sensor tuaj yeem tso rau hauv lub rooj zaum. Kuv pom siv rab chais hniav kom tau lub qhov pib, ua kom yooj yim dua.
Kauj Ruam 14: Ntxig rau Sensor
Ntxig lub sensor rau hauv lub qhov uas koj nyuam qhuav ua hauv lub ncoo ntawm lub rooj zaum. Yog tias ua tau, tig lub sensor me ntsis ntawm qhov uas koj lub nraub qaum yuav nyob.
Kauj Ruam 15: Rov ua dua
Muab lub rooj zaum rov qab los ua ke. Qhov no txhais tau tias rov txhim kho nws nrog rab phom rab phom thiab rov ua dua txhua yam txiv ntoo thiab ntsia liaj qhov rooj.
Kauj Ruam 16: Hauv qab
Txawm li cas los xij, khawm lub thawv xa mus rau hauv qab ntawm lub rooj zaum hauv lub rooj uas koj tseem tuaj yeem qhib thiab kaw rooj plaub.
Kuv xaiv los muab kuv tus kheej siv cov kua nplaum kub. Koj tseem tuaj yeem siv yam khoom xws li txiv ntseej thiab ntsia liaj qhov rooj.
Qhov no yuav xav tau ua ntej tshem rooj plaub.
Kauj ruam 17: Qhib Nws
Ntsaws lub roj teeb rau hauv lub tshuab xa mus rau lub rooj zaum thiab kaw rooj plaub.
Txuas lub receiver rau hauv lub computer.
Kauj Ruam 18: Khiav Txoj Cai
Khiav cov cai los ntawm qhib lub davhlau ya nyob twg, mus rau phau ntawv teev npe cov ntaub ntawv nyob hauv thiab ntaus hauv nab hab sej TwitterChair.py
Yog tias koj tsis tau rub cov ntaub ntawv nab hab sej los ntawm "chaws" kauj ruam, rub nws los ntawm cov kauj ruam no!
Kauj ruam 19: Tweet
Tweet thaum koj toot. Zoo siab qhia rau tib neeg paub tias koj tab tom koom nrog lub neej thaum nws tshwm sim.
Koj puas pom qhov no muaj txiaj ntsig, lom zem, lossis lom zem? Ua raws @madeineuphoria kom pom kuv cov phiaj xwm tshiab kawg.
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv