Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Sib sau Arduinos thiab Cov Vev Xaib
- Kauj Ruam 2: Thauj Cov Sketches rau txhua Arduino
- Kauj Ruam 3: Ua Tus Dab Dab
Video: Arduino Pac-Man Ghost Costume: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Pac-Man yog CLASSIC game game xyoo no, peb cov neeg ua haujlwm hauv tsev kawm ntawv tau hnav khaub ncaws zoo li Pac-Man game game cim. Cov taub hau yog Pac-Man, cov kws qhia yog dab.
Nws yog qhov yooj yim kom tau txais ib daim xim ntawm Bristol Board, txiav ib nrab lub voj voos tawm sab saum toj, pom-hniav txiav rau hauv qab thiab muab tso rau qee daim ntawv dawb thiab xim dub.
Txij li thaum kuv yog Tus Kws Qhia Ntawv Khoos phis tawj, daim ntawv qhov muag Yuav Tsis Txiav Nws! Cia peb tso Arduino ntawm rooj plaub thiab ua rau lub qhov muag pom!
Txoj haujlwm no hloov daim ntawv ob lub qhov muag nrog ob Arduino Unos thiab ob lub mcu_friend 320x240 TFT touchscreen shields.
Qhov loj ntawm txoj haujlwm no yog 18 ntiv tes dav 24 ntiv siab. Yog li nws tuaj yeem ua los ntawm 1 daim ntawm Bristol Board thiab 1 daim ntawv duab los ntawm lub thawv loj.
Cia peb ua!
Khoom siv
- Ob Arduinos (Uno lossis Mega 2560) (saib cov duab saum toj no)
- Kua nplaum thiab kab xev los ua ke koj cov khaub ncaws
- Corrugated cardboard txhawm rau txhav koj tus dab.
- Coloured Bristol Board los ua koj tus dab.
- Soldering Hlau thiab qee qhov luv luv ntawm xaim
- Ob tus nab kuab clip thaj txuas rau txuas Arduinos
- Ob lub roj teeb 9V thiab cov txuas txuas
- Ob lub mcu_friend 320x240 TFT Touchscreen Display Shields. Xyuas kom lawv yog ib khub khub. Kuv qhov teeb tsa thawj zaug muaj lub hauv paus pib tshuaj ntsuam (0, 0) ntawm cov ces kaum sib txawv. Yog tias koj tsis muaj cov khub sib xws, koj tsuas yog yuav tsum ua ib qho Arduino ua nws qhov muag hloov hauv qhov kev coj rov qab los ua kom lawv sib phim.
Kauj Ruam 1: Sib sau Arduinos thiab Cov Vev Xaib
Nco ntsoov tias koj Arduinos TSIS txuas nrog lub khoos phis tawj lossis lub zog siv.
Nws yog ib qho tseem ceeb kom ntseeg tau tias koj ua tib zoo kab kab nyob ntawm txhua lub vijtsam tiv thaiv nrog Arduino. Yog tias koj tsis txuas lawv kom raug, koj yuav kib daim ntaub thaiv thiab HALLOWEEN Yuav RUINED! Koj puas xav RUIN HALLOWEEN? YOG KOJ?
Kuv tsis xav li ntawd.. Tshaj tawm!
Txhua Arduino muaj Serial Rx0 tus pin thiab Serial Tx1 tus pin. Siv tus xaim hluav taws xob luv luv rau MASTER's Tx1 tus pin.
Siv lub xaim hluav taws xob luv luv rau SLAVE's Rx0 tus pin.
Siv lub xov hlau luv luv rau GND tus pin ntawm txhua Arduino.
Txuas txhua daim thaiv rau nws tus kheej Arduino.
Tsis txhob txuas Arduinos ua ke.
Kauj Ruam 2: Thauj Cov Sketches rau txhua Arduino
Cov duab kos xav tau ob daim duab thiab cov tsev qiv ntawv tshuaj ntsuam kom thauj mus rau koj li Arduino IDE.
Hauv qab 'Sketch' ntawv qhia zaub mov, xaiv 'suav nrog Lub Tsev Qiv Ntawv', tom qab ntawd 'Tswj Tsev Qiv Ntawv'.
Hauv Kev Tshawb Nrhiav, tshawb rau 'Adafruit GFX' thiab ntxiv rau koj li IDE.
Hauv Kev Tshawb Nrhiav, tshawb rau 'MCUFriend' thiab ntxiv rau koj li IDE.
Arduinos txhua tus muaj cov duab kos uas tig lub qhov muag los ntawm sab laug mus rau sab xis hla lub vijtsam. Lub qhov muag sab xis Arduino yog MASTER thiab lub qhov muag sab laug Arduino yog SLAVE.
Cov duab kos yooj yim kos lub qhov muag (ib lub duab plaub dub thiab lub voj voos) nyob rau sab laug ntawm lub vijtsam, tom qab ntawd siv ob lub loops nrog cov kab lus ntsug txav kom hloov lub qhov muag ntawm sab laug mus rau sab xis thiab rov qab rau lub voj voog.
Raws li tus Xib Hwb pib lub voj voog, nws xa tus cim '1' los ntawm nws cov Serial chaw nres nkoj mus rau Qhev. Thaum tus qhev tau txais qhov '1', nws pib nws lub voj voog. Tus Xib Hwb mus tas li tig nws lub qhov muag thiab xa cov mem tes. Qhov tshwm sim yog sab laug-sab xis shifty qhov muag ntawm Pac-Man Ghost cim!
Qhib thiab upload MASTER thiab SLAVE cov duab kos rau ntawm lawv cov Arduino/Screen teeb tsa.
Ib ntus tshem tawm ob qho tib si Arduinos los ntawm lub khoos phis tawj.
Txuas ob GNDs ua ke nrog cov hlua txuas.
Txuas tus Xib Hwb Tx1 tus pin rau tus qhev Rx0 tus pin nrog cov hlua txuas.
Txuas koj Arduinos mus rau lub khoos phis tawj. Lub qhov muag yuav tsum pib caij tsheb kauj vab.
Woohoo!
Kauj Ruam 3: Ua Tus Dab Dab
Txiav koj cov duab los qhia corrugated rau hauv cov duab zoo li qub. Kuv qhov ntev yog 18 nti dav los ntawm 24 ntiv tes siab.
Kua nplaum cov ntawv txiav tawm rau ntawm Bristol board. Cia nws qhuav. Raws li qee cov kua nplaum ntswj thaum lawv qhuav, koj yuav xav muab cov khoom sib dhos rau hauv pem teb thiab muab qhov hnyav rau nws kom ntseeg tau tias nws nyob tiaj tus li cov kua nplaum qhuav.
Thaum cov kua nplaum qhuav, txiav cov Bristol board ntau dhau los ntawm ib ncig ntawm cov duab los qhia corrugated.
Tam sim no tig tus dab kom sab corrugated yog lub ntsej muag.
Nco ntsoov, cov ris tsho tam sim no thim rov qab.
Muab MASTER Arduino tso rau sab xis ntawm daim duab thiab SLAVE Arduino ntawm LEFT sab, sib nrug raws li koj xav tau. Ua kom ntseeg tau tias tus nab npawb thaj txuas tuaj yeem txuas ob Arduinos.
Taug qab cov ntaub thaiv npog nrog tus xaum.
Ua tib zoo txiav tawm qhov muag qhov.
Tam sim no txuas txhua Arduino/Zaub rau cov ris tsho nrog cov kab xev. Txuas ob lub roj teeb 9V nyob ze kom yooj yim txuas rau Arduinos.
Hwj chim rau koj Arduinos thiab cia peb mus dag-lossis-kho!
Tsis tas yuav hais, tej zaum koj yuav xav muab daim kab xev tso rau sab nraub qaum ntawm Arduinos yog li tsis muaj qhov luv-luv yog tias lawv tau ntsib nrog nag thiab/lossis cov xim hlau zippers ntawm lub tsho loj/lub tsho thiab lwm yam.
Muab cov pluaj nyob ib puag ncig nws rau koj kom dai nws puag ncig koj lub xub pwg, hnav lub tsho dub thiab lub ris dub thiab koj tau npaj txhua yam los caum PacMan nyob ib puag ncig koj lub zej zog! Ua tag nrho cov teeb!
Zoo siab Xus!
Pom zoo:
Costume FPV Zaub: 5 Kauj Ruam
Costume FPV Zaub: Thaum tsim qee yam ntawm kuv cov khaub ncaws, Kuv tau nquag ntsib teeb meem uas tsis tuaj yeem pom tawm ntawm lub taub hau lossis lub kaus mom hlau, txawm yog vim li cas cov ntaub ntawv uas tau yooj yim rau ua haujlwm nrog lossis uas yog qhov tseeb tshaj plaws tau ua tiav kiag li opa
LED Tsom iav thiab Costume: 4 Kauj Ruam (nrog Duab)
LED Tsom iav thiab Hnav Khaub Ncaws: Koj puas nyiam pom nyob deb ntawm qhov tsaus ntuj? Koj puas xav tau tsom iav zoo li Elton's? Tom qab ntawv, Cov Lus Qhia no yog rau koj !!! Koj yuav kawm paub yuav ua li cas thiaj ua tau ib qho hnav tsoos tsho LED thiab tsom iav qhov muag pom kev
Raspberry Pi Zombie Carnival Costume: 6 Kauj Ruam
Raspberry Pi Zombie Carnival Costume: Koj puas tau hnov zoo li koj muaj npauj npaim hauv koj lub plab? Hnub kawg ntawm kev ua koob tsheej Kuv tau xav li ntawd …. Zoo li Taug kev tuag kiv cua, Kuv xav ua qhov kev cai sib npaug rau cov koob. Kuv tau taug kev ncig lub nroog, sim nrhiav tsis pom zombie. Dheev, kuv pom Rick
DIY LED Stick Daim Duab Costume: 7 Kauj Ruam (nrog Duab)
DIY LED Stick Daim Duab Costume: Kuv yuav qhia koj yuav ua li cas thiaj tsim tau ib qho yooj yim LED lo daim duab cov khaub ncaws. Txoj haujlwm no yooj yim heev muab rau koj muaj cov txuj ci yooj yim soldering. Nws yog qhov kev ntaus loj nyob hauv peb lub zej zog. Kuv poob suav pes tsawg tus neeg hais tias qhov no yog qhov hnav zoo tshaj plaws lawv
ETextile Unicorn Costume: 16 Kauj Ruam (nrog Duab)
ETextile Unicorn Costume: Unicorns yog tsiaj txhu zoo nkauj heev uas muaj keeb kwm nplua nuj thiab keeb kwm keeb kwm. Lawv tau txais txiaj ntsig nrog ntau tus yam ntxwv nkag mus - kev dawb huv, kev cia siab, paub tsis meej, kho kom zoo, thiab kev ntxim nyiam suav nrog tsuas yog qee qhov ntawm lawv lub peev xwm. Yog li leej twg yuav tsis xav dre