Cov txheej txheem:

Arduino Laser Tag - Duino Tag: 11 Kauj Ruam (nrog Duab)
Arduino Laser Tag - Duino Tag: 11 Kauj Ruam (nrog Duab)

Video: Arduino Laser Tag - Duino Tag: 11 Kauj Ruam (nrog Duab)

Video: Arduino Laser Tag - Duino Tag: 11 Kauj Ruam (nrog Duab)
Video: Лазертаг Arduino — DuinoTag 2024, Kaum ib hlis
Anonim
Arduino Laser Tag - Duino Tag
Arduino Laser Tag - Duino Tag
Arduino Laser Tag - Duino Tag
Arduino Laser Tag - Duino Tag

Duino tagger- Cov lus qhia dav dav Duino lossis yog lub tshuab laser cim raws ib puag ncig ntawm arduino. Thaum kawg lub tshuab laser tag uas tuaj yeem hloov kho thiab hacked kom txog rau thaum koj muaj lub tshuab laser zoo tagnrho rau lub chaw ua haujlwm tsis muaj phom, kev ua tsov rog hauv hav zoov thiab kev sib cav nyob ib puag ncig. Laser tag yog kev sib ntaus sib tua zoo li paintball lossis airsoft tsis muaj mob, nws siv lub teeb infrared (IR) los simulate tagging / tua ntawm lwm tus players lossis lub hom phiaj. Kuv tau ua haujlwm ntawm txoj haujlwm no ib pliag, tab sis tsis pom nws li lawm, Kuv tsuas yog nws yog lub sijhawm kom tau txais coob leej neeg koom nrog. Cia siab tias cov lus qhia no yuav nyob ze txaus ua tiav rau lub sijhawm rau kuv nkag mus rau hauv kev sib tw arduino, txawm hais tias kuv cia siab tias cov ntawv qhia yuav xav tau kho thiab kho dua rau qee lub sijhawm tuaj. Cov lus qhia no lub hom phiaj muab koj nrog cov ntaub ntawv koj yuav xav tau tawm mus thiab tsim koj tus kheej duino tagger. Cov lus qhia no tsom mus rau yuav ua li cas tsim lub duino tagger los ntawm kev hloov kho lub teeb phom tab sis nrog kev ua haujlwm ntxiv me ntsis koj tuaj yeem tsim koj tus kheej rab phom los ntawm kos. Cov lus qhia no tsis saib kom ntxaws ntau dhau ntawm software / code sab ntawm txoj haujlwm, txawm hais tias muaj txoj cai ua haujlwm raws li mais tag raws tu qauv tau muab. Rau cov uas xav kawm paub txog duino tagger programming kuv hais qhia koj pib ntawm qhov qhia tau zoo nyob ntawm A Ideal Terrible. Thoes kev paub txog cov neeg siv arduino tej zaum yuav pom cov ntsiab lus ntawm nplooj ntawv (Kauj Ruam 1) thiab nplooj ntawv nplooj ntawv (Kauj Ruam 8) qhov muaj txiaj ntsig tshaj plaws, cov neeg siv arduino tshiab yuav xav tau ua tib zoo saib ntawm cov lus qhia thiab cov txuas tau muab. Kuv vam tias ntau ntawm koj yuav pom cov lus qhia no muaj txiaj ntsig thiab yuav txuas ntxiv tsim koj tus kheej duino taggers. Muaj ntau txoj hauv kev los txhim kho thiab kho dua tshiab cov kab ke uas tau hais tseg ntawm no. Yog tias koj mus txuas ntxiv txhim kho ntawm duinotagger no thov qhia koj txoj haujlwm thiab vam tias nyob rau lub sijhawm cov txheej txheem yuav hloov pauv mus rau qhov kev paub twv txiaj ntau dua. Youtube cov vis dis aus ntawm kuv tus duino taggers: Cov vis dis aus no qhia kuv siv tus lej thib ob duino kuv tau ua los tua ntawm lub hom phiaj talcapult uas kuv tau ua haujlwm. Kuv vam tias yuav ua ib qho kev qhia paub txog talcapult sai.

Kauj ruam 1: Txheej txheem cej luam

Txheej txheem cej luam
Txheej txheem cej luam

Txheej txheem cej luam Qhov tseem ceeb ntawm duino tagger: IR Transmitter system Dab tsi - Transistor amplifier, lub zog loj IR LED thiab lub lens kom muab lub teeb tsom IR zoo. Vim li cas - Txhawm rau muab tagger txhais tau tias ntawm tagging / tua lwm tus players nrog rau kev sib txuas lus cov ntaub ntawv game. Lub tshuab xa hluav taws xob nthuav dav cov teeb liab xa los ntawm arduino thiab xa nws siv IR LED, lo ntsiab muag tau siv los ua lub teeb liab kom ncaj qha txhawm rau ua kom cov phom coj zoo li phom thiab ua kom ntev kis tau zoo. lub suab kaw / rov ua hluav taws xob los ntawm daim npav tos txais) Vim li cas - Nws yog qhov zoo uas muaj qee cov lus tawm suab los ntawm cov kab ke. Lub suab los qhia rau koj paub thaum tus cim tagger tau raug tua lossis tsis muaj mos txwv lossis lub neej. Receivers Dab tsi - Tus qauv IR tus qauv txais thiab lub hwj chim tswj lub peev xwm Vim li cas - Yog li rab phom paub thaum nws tau raug tua. Kev tsim qauv hauv cov lus qhia no saib ntawm kev siv 3 lub cim 1 ntawm rab phom nrog rau pem hauv ntej thiab nraub qaum lub taub hau. qhia rau koj paub thaum twg koj raug tua. Nqi Los ua ntu no ua phooj ywg thoob ntiaj teb; thaum lub sijhawm sau ntawv: £ 1 GBP = $ 1.6 USD = 1.1 EUR Piv txwv tias koj twb muaj tus arduino cov khoom siv yooj yim ntxiv rau txoj haujlwm no tuaj yeem yuav tau ib ncig £ 10. Tam sim no yog lub sijhawm zoo los sim tsim lub duino tagger vim nws yooj yim kom tuav tau rab phom rab phom pheej yig. Cov phom me yog cov phom uas koj tuaj yeem siv nrog ua si hauv computer, ntau ntawm lawv tsis ua haujlwm nrog cov ntxaij vab tshaus LCD niaj hnub no thiab yog li muaj ntau ntawm lawv mus rau ntawm eBay thiab lwm qhov twg. Kuv yuav ob lub phom phom txhua tus nqi kwv yees li £ 4 ib qho tawm ntawm ebay ib qho los ntawm lub khw siab hlub. Cov phom phom yog lub hauv paus pib zoo rau txoj haujlwm no vim lawv muab cov kho qhov muag, hloov pauv thiab cov ntaub ntawv xav tau rau kev tsim. Koj yuav xav tau: Arduino Lub Teeb Phom Xim Xim LED (nyiam dua 30mA+) IR sensors Tsawg kawg 2x IR LED sib phim rau IR tus txais (nyiam dua 100mA+) Peizo sounder Fais fab transistor /MOSFET Ob peb lub hauv paus hluav taws xob: solder, resistors, capacitors. Koj kuj tseem xav tau seem yas yas LED kab teeb tsav tsav Ntau LED's Sau koj tus kheej cov lus txais tos daim npav Lub kaus mom / lub kaus mom hlau / lub taub hau txhawm rau txhawm rau ntsuas cov cim ntawm

Kauj ruam 2: Pib

Cov hauv paus
Cov hauv paus
Cov hauv paus
Cov hauv paus
Cov hauv paus
Cov hauv paus

BasicsPage sim pab cov khoom siv hluav taws xob noobs. Some cov hauv paus uas muaj txiaj ntsig ntawm ntau lub ntsiab lus hauv kev tsim ntawm duino tagger. R = ResistorC = CapacitorV = VoltageI = CurrentUsing LED'sLED's yuav tsum tau siv nrog tus tiv thaiv kom txwv qhov tam sim no los ntawm lawv. Xaiv qhov tam sim no LED yuav ua haujlwm ntawm R = (V muab -V coj) /INot: Koj yuav zaum tsuas yog tuaj yeem theej cov tshuaj tiv thaiv qhov tseem ceeb uas kuv tau siv. Cov nyees khawm (ua rau lwm yam) hauv txoj haujlwm no tau xav tias yuav muab qhov hluav taws xob qis thaum nias. Cov txheej txheem txheej txheem rau qhov no tau qhia hauv daim duab qhia chaw. FiltersR C (Resistor Capacitor) cov khoom siv hluav taws xob tuaj yeem siv tau ntawm ob peb qhov chaw hauv duino tagger, txawm hais tias ua kom yooj yim hloov pauv ntawm lub zog hluav taws xob lossis hloov PWM cov cim rau hauv qib sib piv, tsis nyuaj li nws yuav zoo li: Siv dej kev sib piv rau hluav taws xob thiab tam sim no tus tiv thaiv ua haujlwm zoo li cov yeeb nkab nqaim (xav txog cov quav) tsuas yog tso dej qeeb (tam sim no) ntws. Lub capacitor ua haujlwm zoo li lub tank dej loj / thoob. Cov lim dej qis hauv daim duab ua haujlwm zoo li quav nyab thiab lub thoob sib xyaw: Txawm tias koj hloov pauv cov dej ntws los lossis tawm ntawm lub thoob qhov siab (qhov hluav taws xob) yuav hloov pauv qeeb. Txiav tawm zaus kom dhau qis: f = 1/(2pi*R*C)

Kauj Ruam 3: Hloov Kho Lub Teeb Phom

Hloov Kho Lub Teeb Phom
Hloov Kho Lub Teeb Phom
Hloov Kho Lub Teeb Phom
Hloov Kho Lub Teeb Phom
Hloov Kho Lub Teeb Phom
Hloov Kho Lub Teeb Phom

Hloov kho rab phom teeb Nov yog qee qhov lus qhia dav dav thiab cov tswv yim: Cov khoom siv muaj txiaj ntsig los tso rau hauv: SwitchesTrigger LED'sLense Ntxiv qhov chaw cia rau koj lub teeb phom: Siv cov khoom haum tuaj yeem nyuaj, koj kuj tseem yuav tsis xav muab koj cov arduino tso rau hauv rab phom. Kuv xav kom tuaj yeem tshem tawm kuv cov arduinos tau yooj yim los ntawm kuv cov duino taggers yog li kuv tuaj yeem siv lawv hauv lwm qhov haujlwm. Ntawm ib qho ntawm kuv tus duino taggers (rab phom MK1) Kuv txiav qhov hauv rooj plaub rau tus pin arduino nano kom dhau mus thiab teeb lub qhov (socket) nyob rau sab hauv ntawm rab phom kom cov arduino ntsaws rau sab nraud ntawm rab phom. Ntawm kuv rab phom Mk2 kuv ntxiv cov ntaub ntawv sab nraud rau arduino thiab sim ua kom nws zoo li lub mos txwv. Cov ntaub ntawv / ammo clip tau ua los ntawm cov yas Kuv tau txais los ntawm cov ntawv nplaum pheej yig lub nplhaib thiab nws npog tau tuav hauv qhov chaw los ntawm cov hlau nplaum muaj zog.

Kauj ruam 4: Transmitter

Tshaj Tawm
Tshaj Tawm
Tshaj Tawm
Tshaj Tawm

IR transmitter Koj yuav xav tau: IR LED: Saib rau LED nrog lub nqaim pom lub kaum ntse ntse (kom ntseeg tau tias ntau npaum li cas ntawm IR lub teeb ua rau nws hla lub optics). Xaiv LED nrog lub nthwv dej uas haum koj li IR cov txais. Tau txais qee qhov khoom seem LED raws li lawv tau ua haujlwm siab dua lawv cov ntsuas tam sim no yog li yuav hlawv tawm. Koj tuaj yeem tsuas yog txuas IR LED (nrog qhov txwv tam sim no tiv thaiv) rau tus pin tso tawm ntawm arduino thiab nws yuav tuaj yeem xa tawm, tab sis qhov ntau ntawm duino tagger yuav tsis zoo heev. Txhawm rau txhawm rau txhim kho qhov ntau ntawm duino tagger amplification xav tau. Qhov yooj yim amplifier kuv tau ua yog ib qho yooj yim transistor Circuit (daim duab qhia chaw muab), koj yuav xav txiav txim siab mosfet hloov ntawm transistor. Current los ntawm LED: Kuv tsom rau txog 300mA tam sim no los ntawm IR LED. Qhov no ntau dua li qhov ntsuas tam sim no rau LED, tab sis LED zoo li tuaj yeem tiv taus vim tias koj tsuas yog ua rau lub siab tam sim no rau lub sijhawm luv. Yog tias koj siv 5V muab los ntawm arduino los ua kom lub zog LED nws tsuas tuaj yeem muab kwv yees li 400/500mA yog li siv 300mA rau IR transmitter Led tsis tso ntau dhau rau lwm tus LED thiab hais lus thiab lwm yam, yog li liab qab qhov no hauv siab thaum tsim tsim koj tus duino tagger, nws yuav yog lub tswv yim zoo los ntxiv qhov ntsuas hluav taws xob muaj peev xwm muab cov dej ntws ntau dua. Koj yuav tsum tau siv lub tsom iav tsom mus rau IR nqaj, koj tuaj yeem siv lub tsom iav uas tuaj nrog rab phom. Koj tuaj yeem siv lub teeb liab liab los ua haujlwm qhov twg tso IR coj kom tau txais lub teeb pom kev zoo. Yog xav paub ntau ntxiv saib cov mais mais site.

Kauj ruam 5: Txais

Khiav Tawm Hauv Kev Sib Tw Arduino

Pom zoo: