Cov txheej txheem:
- Kauj Ruam 1: Txhua Yam Peb Yuav Tsum Ua Ua Sib Ntaus Hockey?
- Kauj Ruam 2: Txhim Kho Cov Rooj Hockey Ncej: Tshooj A
- Kauj Ruam 3: Txhim Kho Cov Rooj Hockey Ncej: Ntu B
- Kauj Ruam 4: Kev Tshawb Fawb Sensors los Tshawb Pom Lub Pob Tom Qab Lub Hom Phiaj Tau Txais
- Kauj Ruam 5: Txhim Kho Magnetic Striker thiab Stick
- Kauj Ruam 6: Kho kom raug lub rooj hockey
- Kauj Ruam 7: Txuas lub Sensors thiab Teeb nrog Evive
- Kauj Ruam 8: Programming hauv Kos thiab Arduino: Algorithm Flow Chart
- Kauj Ruam 9: Programming hauv Kos thiab Arduino
- Kauj ruam 10: Gameplay
- Kauj ruam 11: Cia Ua Si
Video: DIY Magnetic Table Hockey With Cardboard, RGB Lights and Sensors: 11 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Koj yuav tsum tau ua Air Hockey! Them ob peb $$ duas las $$ rau thaj chaw twv txiaj thiab tsuas yog pib ua lub hom phiaj kom yeej koj cov phooj ywg. Tsis yog nws ntxiv? Koj yuav tsum tau xav txog kev khaws ib lub rooj nyob hauv tsev, tab sis hav! puas tau xav ua nws tus kheej?
Peb yuav ua peb tus kheej siv tshuab DIY sib nqus sib nqus hockey. Peb yuav ntxiv lub micro-maub los, teeb meem ntsuas lub ntsuas kom suav lub hom phiaj thiab taug qab lub sijhawm. Tsis tas yuav taug qab cov hom phiaj, cov ntsuas thiab ua kom pom tseeb yuav ua nws thaum peb nyiam ua si thiab tsom mus rau pob. RGB LEDs ntxiv cov xim zoo nkauj rau qhov kev tsim DIY txias no.
Tiag tiag, kuv cov phooj ywg thiab cov npoj yaig tau koom nrog ua qhov no ntau teev. Nws lom zem heev.
Kauj Ruam 1: Txhua Yam Peb Yuav Tsum Ua Ua Sib Ntaus Hockey?
Qhov no tuaj yeem ua tau yooj yim tom tsev txawm tias menyuam yaus lossis laus dua! Peb xav tau cov khoom hauv qab no:
- Cardboard Thick (peb siv 5mm corrugation sheet) (1 sq meter)
- Hard Cardboard (yuav tsum tiaj tus heev)
- Phom phom thiab nplaum phom nplaum
- Cov ntawv muaj xim (xav siv 3 daim ntawv sib txawv xim rau kev ua si thiab ob tus neeg sib tw)
- Tus kav
- Cim Cuam Tshuam
- Ntawv Txiav
- Ob peb All-pins
- Kua nplaum
- Pob
- 4 Muaj zog Neodymium Magnets (kwv yees li 10mm dia thiab 4mm qhov siab)
Peb xav tau qee yam khoom siv hluav taws xob los siv sijhawm, teeb thiab ntsuas lub hom phiaj (nws yooj yim heev, yooj yim heev)
- evive (lossis Arduino nrog LCD/TFT npo)
- 2 IR Sensors
- Jumper xov hlau
- 5V RGB LED kab txaij (evive lub inbuilt Li-ion roj teeb tuaj yeem muab 5V lossis lwm yam 12V RGB LED kab txaij nrog lub zog hloov pauv/6 AA roj teeb)
Kauj Ruam 2: Txhim Kho Cov Rooj Hockey Ncej: Tshooj A
Peb yuav tsum txiav tawm cov ntawv hauv qab no los ntawm cov ntawv tuab
- Base SupportIts ib daim duab plaub ntawm 50cm X 35cm
- Ob Sab Sab Ntev Ntev Cov duab plaub ntawm qhov loj 50cm X 15cm
- Ob Qhov Sab Qaum Qaum Rectangular sheet of size 36cm X 15cmRectangular cutout of size 28cm X 4cm at an offset of 7cm from the longer edge in middle
- Ob qhov kev txhawb nqa rau Sab saum toj Arena txajRectangular cutouts ntawm qhov loj 49cm X 9cm yuav muab lo rau sab ntev Mount rau ntawm Base Support.
- Kev txhawb nqa nruab nrab rau Top Arena txajRectangular cutout of size 34cm X 9cm glued in parallel to the Shorter Side Mounts on the Base Support, uas yuav ua rau muab faib ua ob ntu. Qhov no yuav txwv tsis pub cov players nkag mus rau hauv cov neeg tawm tsam sab (piav qhia tom qab) thiab tseem muab kev txhawb nqa hauv nruab nrab rau Arena Bed
Tam sim no peb yuav ua qhov qhib hauv Ob Qhov Sab Qaum Mounts los ntawm qhov uas peb tuaj yeem ntxig qhov tuav ua si nrog cov hlau nplaum khov kho rau ntawm ib kawg (peb yuav ua tus tuav tom qab)
Peb yuav siv daim ntawv tawv tawv ntawm qhov loj 35cm X 38cm, uas yuav tsum tiaj heev thiab yuav tsum tsis txhob deform lossis nthuav yooj yim. Tab sis ua ntej ua tus thav duab siv cov ntawv tuab tuab saum toj no thiab rov tshuaj xyuas qhov tsim nyog qhov loj, qhov twg koj tuaj yeem tso lub Arena Bed nyob saum ob Qhov kev txhawb nqa thiab Kev txhawb nqa nruab nrab raws li qee zaum koj xaus nrog kev sib txawv/tso rau tom qab lo nrog Glue Gun.
Kauj Ruam 3: Txhim Kho Cov Rooj Hockey Ncej: Ntu B
Yog li tam sim no peb cov thav duab thiab thaj chaw tau npaj txhij. Peb npog lub txaj Arena nrog cov ntawv tuab tuab tuab.
Tam sim no peb yuav tsum ua qhov qhib rau cov hom phiaj tshaj tawm thiab tus swb kom tau pob tawm tom qab lub hom phiaj tau ua tiav. Ua tib zoo ntsuas los ntawm tus ncej uas peb nyuam qhuav tau ua me ntsis kev hloov pauv ib txwm yuav nyob ntawd. Peb yuav txiav cov duab hauv qab no:
- Lub hom phiaj qhov sib tw: 4 Daim Duab Daim Duab Duab plaub ntawm qhov ntev 5cm X ~ 11.5cm (Qhov no yuav tawm mus ~ 12cm lub hom phiaj tshaj tawm) Peb yuav lo lawv ntsug nyob rau sab saum toj ntawm Arena txaj sib dhos nrog Sab Kev Txhawb Nqa. Qhov chaw seem hauv nruab nrab yuav ua raws lub hom phiaj.
- Sliders yuav ua los ntawm ib daim ntawv los xij ntawm kwv yees li ~ 36cm X 5.5cm (lossis 6) Peb yuav tsum ua tib zoo lo qhov me me hauv qab no (~ 1cm) Arena Bed hauv txoj hauj lwm me ntsis xws li lub pob tuaj yeem hla mus rau sab raws li qhia hauv daim duab (Peb khaws qhov sib txawv ntawm qhov siab ntawm 1cm kom nws inclined thiab pob tau yooj yim dov). Peb khaws nws me me hauv qab no kom zoo li lub pob txav nrawm yuav tsum tsis txhob rov los rau tom teb. Thov ntsuas ua ntej txiav qhov no thiab kho qhov ntev kom haum. Khawb daim ntawv dawb/tsaus rau ntawm daim ntawv slider raws li qhov sib thooj rau lub pob tsaus/lub teeb xim, uas yuav tsum tau siv rau lub ntsuas kom pom lub pob hla. (piav qhia hauv kauj ruam tom ntej)
- Thaum cov pob slider ua haujlwm tau zoo, peb yuav ua cov kab sib dhos nyob rau Sab Kev Txhawb Nqa kom tau pob tawm ntawm qhov swb. Peb tau ua ob lub pob me me, uas peb yuav muab lo rau ntawm lub hauv ntej ntawm lub qhov sib npaug ntawm txhua sab ntawm cov kab zauv.
- Lub Hom Phiaj Post Top Npog (~ 6.5cm X 36cm) Peb yuav muab lub hau npog tso rau sab saum toj ntawm lub hom phiaj tshaj tawm thiab kab zauv. Nws yuav muab tso rau sab saum toj nrog kev txhawb nqa ntawm Sab Qab Mount thiab ob txoj kab txiav uas ua rau lub hom phiaj tshaj tawm. Ntsuas qhov xav tau qhov ntev los ntawm tus ncej, peb nyuam qhuav ua. Maj mam Craft ib lub voj voos los ntawm sab. Tsis txhob lo qhov no tam sim no. (Qhia hauv cov kauj ruam tom ntej)
Kauj Ruam 4: Kev Tshawb Fawb Sensors los Tshawb Pom Lub Pob Tom Qab Lub Hom Phiaj Tau Txais
Leej twg xav sau tseg lub hom phiaj? Peb yuav ua kom nws siv lub tshuab IR yooj yim thiab cov tswj hwm micro. Peb yuav tsum tau teeb tsa ob lub ntsuas IR nyob sab sab hauv ntawm Lub Hom Phiaj Tshaj Tawm Sab Nrauv Sab Nraud ze ntawm ntug (tawm qee qhov chaw los ntawm ntug). Peb yuav tau khoov lub BLACK thiab TRANSPARENT LEDs ntawm lub ntsuas kom pom nws ntsug (raws li qhia hauv duab). Thov txheeb xyuas tias lub pob yuav tsum yooj yim tawm yam tsis tau kov lub sensor.
Tam sim no peb yuav siv cov ntawv qhia zaub mov evive uas tuaj yeem rub tawm los ntawm no. Nkag mus rau Pin State Monitor cov ntawv qhia zaub mov xaiv thiab peb yuav siv qhov no txhawm rau ntsuas peb cov ntsuas. Lub pob yuav dhau los ntawm Daim Ntawv Slider tom qab lub hom phiaj tau ua tiav. Muaj lub zog me me ntawm lub sensor uas yuav tsum tau ntsuas kom pom lub pob. Peb lub pob yog xim liab liab, yog li peb muaj daim ntawv dawb ntawm daim ntawv Slider kom sib txawv. Tig lub potentiometer ntawm ib kawg thiab tom qab ntawd maj mam tig nws thaum kuaj pom lub pob dhau.
Koj tuaj yeem hla cov kauj ruam no thiab ib qho program, yog tias koj tsis xav ntxiv lub sijhawm thiab ntsuas kom suav lub hom phiaj.
Kauj Ruam 5: Txhim Kho Magnetic Striker thiab Stick
Tam sim no peb yuav ua plaub daim ntawv isosceles txoj cai lub kaum sab xis ntawm daim duab duab nrog rau sab 7cm X 7cm rau cov neeg ntaus. Koj tuaj yeem sim qhov loj me uas koj xav ua. Ob daim duab peb sab txiav yuav tau muab lo rau saum ib sab tom qab muab cov hlau nplaum neodymium nyob nruab nrab. [Peb tau ntxiv daim thib peb nyob rau saum ob ntawm lub pob raws li lub pob tau hla mus rau saum nws]
Tsis tas li ntawd, peb yuav ua ob txoj hlua nrog cov lus sib nqus los tswj tus ntaus los ntawm hauv qab Arena Txaj. Cov hlau nplaum Neodymium muaj zog heev tau muab lo rau ntawm qhov kawg ntawm lo. Tom qab ntawd peb npog daim ntawv nrog tuab daim ntawv liab thiab xiav.
Cov pas no yuav rub tus neeg ncaws pob khaws cia rau saum Arena ntawm lub zog sib nqus.
Kauj Ruam 6: Kho kom raug lub rooj hockey
Peb lo cov xim liab thiab xiav ntawm ob sab thiab kos ib nrab kab thiab cim ib daim duab plaub nyob ze cov hom phiaj ntawm ob sab. Pob yuav muab tso rau hauv qhov no thaum pib ntawm txhua qhov kev ua si.
Txaus siab ua si nrog koj cov phooj ywg thaum hmo ntuj lig hangouts? Nws lom zem tiag tiag Muaj los txog RGB LEDs. Peb muab 12V RGB teeb ua rau muaj kev xav zoo heev nrog tua lub teeb pom kev hauv chav. Ntawm txhua sab, peb tau dhau los ntawm cov hlua LED uas tau tswj los ntawm evive lub inbuilt tsav tsheb siv 3 raws. Npaj cov xov hlau lossis LED kab thiab cov cim thiab coj nws ua tib zoo sab nraum tus ncej ze ntawm Lub Hom Phiaj Zoo Tshaj Plaws.
Kauj Ruam 7: Txuas lub Sensors thiab Teeb nrog Evive
Peb yuav tsum txuas cov hauv qab no los ua pov thawj:
- Ob IR Sensors Raws li peb tau teeb tsa lub ntsuas hluav taws xob nyob rau sab hauv qab ntawm Lub Hom Phiaj Tshaj Tawm Sab Nrauv Npog thiab teeb tsa xaim kom tau txais lawv ntawm sab nraud ntawm Ball Catcher, tam sim no peb yuav txuas peb lub xov tooj mus rau qhov muaj tseeb, uas yog GND rau hauv av, VCC rau 5V thiab Teeb liab rau 2 thiab 3.
- RGB LED sawb Cov kab txaij muaj plaub lub xov hlau. Raws li peb pom hauv daim duab qhia chaw, '+' txuas nrog VSS lossis VVR ntawm qhov muaj tseeb. 'R', 'G' thiab 'B' txuas nrog lub tshuab hluav taws xob txuas hauv ntsaws thiab ua si sib cuam tshuam.
- Txij li thaum peb tau siv 12V RGB LED sawb, peb yuav txuas 12V DC Adapter lossis 3 Li-ion roj teeb lossis 6 AA Cells.
Kauj Ruam 8: Programming hauv Kos thiab Arduino: Algorithm Flow Chart
Tam sim no, nws txog sijhawm rau program. Muaj rau yam:
- Timer: Raws li qhov kev ua si, txhua qhov kev ua si yuav muab peb feeb (lossis raws li qhov koj xaiv) thiab evive yuav taug qab nws. Timer yuav pib tom qab Tactile Hloov 1 raug nias ntawm evive.
- Txheeb Tactile Push Button: Qhov kev ua si pib thaum ib tus neeg siv twg nias lub pob Tactile inbuilt 1 ntawm evive.
- Cov cuab yeej ntsuas kom pom lub hom phiaj: Peb yuav tsum txheeb xyuas qhov dhau ntawm pob hauv qhov swb ntawm IR sensors tom qab txhua lub hom phiaj tau ua tiav ntawm ob tog. Thiab txoj haujlwm yuav taug qab cov hom phiaj tag nrho.
- RGB LEDs: LEDs yuav dawb thaum qhov kev ua si pib. Tom qab txhua lub hom phiaj, LEDs yuav ci liab/Xiav xim nyob ntawm seb leej twg tau ua tiav lub hom phiaj. LEDs yuav pib ntsais muag thaum 5 vib nas this tseem tshuav.
- evive Buzzer: Lub suab nrov nrov yuav tsim thaum pib, ntawm kev ntsuas txhua lub hom phiaj thiab qhov kawg ntawm kev ua si.
- evive's TFT: Peb yuav qhia cov lus qhia, lub hom phiaj tau qhab nia, sijhawm thiab yeej.
Qhia saum toj no yog qhov txheej txheem zaum kawg rau qhov kev ua si.
Kauj Ruam 9: Programming hauv Kos thiab Arduino
Qhov kev zov me nyuam tuaj yeem ua hauv Kos (raws li menyuam yaus nyiam cov duab kos duab) lossis Arduino.
Kos yog ib hom lus pub dawb uas koj tuaj yeem tsim koj tus kheej txoj haujlwm tshiab thiab sib tham sib, dab neeg, kev ua si, thiab kev ua yeeb yaj kiab. Siv mBlock (Kos 2.0 raws).
Nyem rau qhov no yog tias koj xav tau cov kauj ruam rau nruab Scratch thiab ua kom txuas ntxiv mus.
Nyem rau qhov no yog tias koj xav paub ntau ntxiv txog Scratch.
Txhawm rau ua kom yooj yim cov cai hauv Kos, 10 kev ua haujlwm raug tsim (ua haujlwm yog tias koj siv Arduino):
- Kev pib ua: Pib ua ntej pib teeb tsa game thiab hloov pauv.
- LED nrog peb lub tswv yim (Liab, Ntsuab thiab Xiav): Qhib lub LED raws li kev nkag.
- Cov Cai Qhia: Rau tso saib cov cai ntawm TFT Screen thaum pib kev ua si.
- Match Initialization: Pib qhov kev sib tw thiab sib tw hloov pauv.
- Qhia Timer: Zaub lub sijhawm ntawm TFT thaum kev sib tw tseem tab tom ua.
- Kev Sib Tw: Txhua yam tshwm sim thaum sib tw nyob ntawm no zoo li txheeb xyuas lub hom phiaj.
- Cov Ntsiab Lus: Txhawm rau pom cov qhab nia thaum thiab tom qab sib tw.
- Score Tie: Qhov thaiv no hloov LED mus rau ntsuab tom qab sib tw, qhia tias khi.
- Xiav Yeej: Qhov thaiv no hloov LED mus rau xiav tom qab sib tw, qhia tias Blue tau yeej qhov kev ua si.
- Liab Yeej: Qhov thaiv no hloov LED kom liab tom qab sib tw, qhia tias Liab tau yeej qhov kev ua si.
Txhua qhov thaiv tau koom ua ke rau cov cai tseem ceeb uas ua raws daim ntawv qhia ntws hauv cov kauj ruam dhau los.
Muab hauv qab no yog tsab ntawv hauv mBlock thiab Arduino
Kauj ruam 10: Gameplay
- Txhua qhov kev ua si yuav yog 3 feeb thiab pov tseg yuav txiav txim siab leej twg yuav pib.
- Txhua tus neeg uas ua ntawv yuav tau muab lub zog sib nqus thiab tus pas nrog cov hlau nplaum. Tus pas yuav raug ntxig los ntawm lub qhov uas tau ua nyob rau hauv Sab Qaum Qab Mount. Nws yuav nyob hauv qab Arena Txaj thiab tswj tus neeg ncaws pob tso rau saum Arena.
- Lub pob yuav muab tso rau sab hauv lub cheeb tsam puag ncig thaum pib kev ua si lossis tom qab txhua lub hom phiaj, nyob rau sab rov qab rau tus uas tau ua lub hom phiaj.
- Tus yeej yuav yog pab pawg uas tau qhab nia ntau lub hom phiaj lossis lwm qhov kev ua si yuav raug kos.
Kauj ruam 11: Cia Ua Si
Tsis muaj dab tsi ntxiv hais! Tsuas yog txaus siab rau Qhov Zoo Tshaj Hockey Table.
Nws xav tau kev sib sib zog nqus ntawm pob thiab kev sib koom tes ntawm lub qhov muag thiab tes.
Ntau lub tswv yim raug txais tos hauv cov lus hauv qab no.
Kawm thiab tshawb nrhiav ntxiv txog evive ntawm no.
Khiav Tawm hauv Kev Ua Kom Nws Sib Tw 2017
Pom zoo:
NeckLight V2: Glow-In-The-Dark Necklaces With Shapes, Colors and LIGHTS: 10 Kauj Ruam (nrog Duab)
NeckLight V2: Glow-In-The-Dark Necklaces With Shapes, Colours and LIGHTS: Nyob zoo txhua tus, Tom qab thawj qhov kev qhia: NeckLight Kuv tshaj tawm uas yog qhov ua tau zoo rau kuv, Kuv xaiv los ua V2 ntawm nws. Lub tswv yim tom qab qhov no V2 yog txhawm rau kho qee qhov yuam kev ntawm V1 thiab kom muaj kev pom ntau dua Hauv qhov lus qhia no Kuv yuav ua rau
DIY Tus Nqi Tsawg Tus Nqi Hockey Cov Rooj: 27 Cov Kauj Ruam (nrog Duab)
DIY Tus Nqi Tsawg Tus Nqi Hockey Cov Rooj: Kev tshaj lij huab cua hockey teeb tsa feem ntau tsuas muaj nyob hauv arcades vim yog cov txheej txheem ntse uas yuav tsum tau ua haujlwm nws. Peb lub hom phiaj yog tsim kom muaj rooj DIY huab cua hockey, nqa qhov kev paub twv txiaj hauv tsev. Los ntawm kev siv muaj nyob rau
Ntaub pua plag Nrog Sensors/ RF Kev Sib Txuas Nrog Arduino Micro: 4 Cov Kauj Ruam (nrog Duab)
Ntaub pua plag Nrog Sensors/ RF Kev Sib Txuas Nrog Arduino Micro: Kuv nyuam qhuav ua tiav kev teeb tsa Sib npaug sib txawv, uas yog ua los ntawm cov teeb ntawm cov teeb uas hnov mob rau lub ntsuas hluav taws xob tso rau hauv ntaub pua plag hauv qab lub teeb. Kuv vam tias koj yuav pom nws muaj txiaj ntsig
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
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