Cov txheej txheem:

Nerf Chronograph thiab Tus Nqi Ntawm Cov Hluav Taws Xob: 7 Kauj Ruam
Nerf Chronograph thiab Tus Nqi Ntawm Cov Hluav Taws Xob: 7 Kauj Ruam

Video: Nerf Chronograph thiab Tus Nqi Ntawm Cov Hluav Taws Xob: 7 Kauj Ruam

Video: Nerf Chronograph thiab Tus Nqi Ntawm Cov Hluav Taws Xob: 7 Kauj Ruam
Video: Cardiovascular | Cardiac Output 2024, Hlis ntuj nqeg
Anonim
Image
Image
Nerf Chronograph thiab Tus Nqi Ntawm Cov Hluav Taws Xob
Nerf Chronograph thiab Tus Nqi Ntawm Cov Hluav Taws Xob

Taw qhia

Raws li tus neeg siv tinkerer nws ib txwm txaus siab heev kom pom cov lej ua tiav ntawm koj lub tinkering. Coob leej ntawm peb tau hloov kho phom Nerf ua ntej thiab leej twg tsis nyiam flinging daim ua npuas dej hla lub tsev ntau dua 100fps?

Tom qab hloov kho ntau rab phom Nerf thoob plaws kuv lub neej, pib thaum kuv nyob ~ 10 nrog kuv Txiv txog tam sim no thaum kuv thiab kuv cov phooj ywg nyob hauv chav txuas ntxiv ua npuas dej hla chav tsev ntawm ib leeg, kuv ib txwm xav paub tseeb tias lub dav hlau ya mus sai npaum li cas, thiab muaj pes tsawg darts ib pliag kuv cov phooj ywg nyob hauv chav nrawm-Strike tua. Muaj cov chronographs coj mus muag muaj rau Nerf thiab Airsoft, tab sis qhov ua tau zoo siab yog kim, thiab nws lom zem los tsim ib qho ntawm peb tus kheej. Yog tias koj xav yuav ib qho, Nerf tso tawm ib lub thoob uas zoo ib yam rau ib qho tshwj xeeb hauv txoj haujlwm no (nrog qee qhov kev tsim qauv zoo dua) thiab nws tuaj yeem pom ntawm no:

Nerf Modulus Ghost-Ops Chrono Chim

Nerf version kuj tseem siv roj teeb, thiab nthuav tawm lub txee rau cov phom tua. Cov Lus Qhia ntawm no tseem suav nrog lub vijtsam thiab khawm rov pib dua, txawm li cas los xij cia siab rau dart ntev rau kev suav nrawm, thiab tsis zoo li siv cuam tshuam. Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yuav yog nyob ntawm kev sib txuas lus (ua piv txwv yooj yim xws li qhov no tsis yooj yim mus nrhiav hauv online), thiab siv kev cuam tshuam cuam tshuam rau lub sijhawm raug. Qhov no tuaj yeem hloov pauv tau yooj yim rau hauv airsoft chronograph rau tib qho laj thawj nrog lub thawv ntim nruj dua thiab cov txheej txheem txhim kho zoo dua rau cov phom phom. Tsis siv kev cuam tshuam cov cai tuaj yeem qeeb dua thiab ua haujlwm tau zoo dua, nws kuj tseem nyuaj dua rau lub sijhawm hais txog microseconds kom raug raws li milliseconds yuav tsis tsim qhov raug rau dart nrawm.

Kuv yuav tsis tsom mus rau qhov tsim cov ntaub ntawv ntau dhau txawm hais tias STL cov ntaub ntawv muaj nyob hauv GitHub, vim tias leej twg tuaj yeem tsuas yog yuav Nerf version uas yog qhov zoo dua rau qhov kev ua si tiag, tab sis yav tom ntej ntawm qhov no tuaj yeem txo qhov txiaj ntsig.

Cov Ntsiab Cai Tseem Ceeb (Kev Kawm Tau Los):

  • Muaj daim ntawv ntawm tus qauv Nerf Barrel
  • Siv cov kws yees duab xa hluav taws xob los ua lub sijhawm rooj vag rau lub dart.
  • Qhia kev siv Adruino cuam tshuam rau lub sijhawm
  • Siv Kev Ua Haujlwm nrog Arduino rau Kev Sib Txuas Lus

Qhov Project Scope:

Kuv npaj yuav hla mus rau feem ntau tshwj xeeb rau txoj haujlwm no nrog qee qhov kev txheeb xyuas luv luv thiab pom zoo kom nyeem cov ntawv xa mus rau Arduino thiab Kev Ua Haujlwm kom paub ntau ntxiv. Qhov no yuav tsis qhia koj yuav ua li cas thiaj li yuav laug, tab sis ntau ntxiv ntawm yuav ua li cas koom ua ke Arduino thiab Ua Haujlwm thiab siv cuam tshuam. Ntau yam ntawm kev kawm no yuav yog los ntawm kev nyeem cov lus tau hais tseg tiag tiag yog li thov ua kom ntseeg tau tias koj tau nyeem los ntawm txhua txoj cai ua ntej muag qhov muag thiab sim ua kom nws ua haujlwm.

Cov txiaj ntsig dhau Cov Haujlwm Zoo ib yam:

  • Siv Kev cuam tshuam rau kev ntsuas qhov tseeb ntawm kev kub ceev
  • Ntu debugging dav rau phototransistors
  • Tus Nqi Hluav Taws Xob (ROF) Muab xam los ua ib puag ncig ob (RPS)
  • Fullscreen computer interface - tsis muaj txiaj ntsig thaum sib ntaus, tab sis zoo yog tias koj xav qhia rau lwm tus txog qhov tshwm sim ntawm kwj lossis Youtube nrog lub vijtsam kaw.
  • Muaj peev xwm yuav hloov pauv rau Airsoft lossis Paintball los ntawm kev hloov kho ntawm tsuas yog lub thaiv
  • Tsis xav tau kev cai PCBs (Yuav zoo nyob rau yav tom ntej hloov tshiab tab sis leej twg tuaj yeem ua qhov no rau tus nqi qis
  • Tag nrho tus nqi qis dua $ 10 thaum cov khoom faib tawm thiab yog tias muaj lub tshuab luam ntawv 3D - Nrog rau tus nqi lag luam, nrog ROF ntxiv

Kauj Ruam 1: Yuav Tsum Xeem thiab Cov Cuab Yeej

Yam Yuav Tsum Tau Paub thiab Cov Cuab Yeej
Yam Yuav Tsum Tau Paub thiab Cov Cuab Yeej

Yog tias koj muaj lub tshuab luam ntawv 3D qhov no yuav yog txoj haujlwm zoo rau koj raws li kuv yuav muab cov ntaub ntawv rau lub thawv ntawv. Xav tias dawb los hloov kho lub thawv ntawv. Kuv tsis muaj LCDs ntawm tes, tab sis tsab ntawv thib ob yuav cia siab tias muaj LCD thiab siv WEMOS D1 lossis zoo sib xws WiFi/BT qhib lub rooj tsavxwm, thiab roj teeb. Qhov no yuav tso cai rau khaws cov ntaub ntawv ntawm lub xov tooj ntawm tes thiab tawm tswv yim lub sijhawm tiag tiag - piv txwv li, muaj pes tsawg lub darts nyob hauv rab phom. Qee qhov kev paub dhau los tau pom zoo, yog tias koj tsis xis nyob Kuv pom zoo ua raws li Cov Lus Qhia rau kev siv tshuaj thiab tej zaum yuav yuav cov khoom siv hluav taws xob ntxiv hauv qhov xwm txheej.

Yuav tsum tau cov cuab yeej:

  1. Soldering Hlau
  2. Cov cua kub cua tshuab/ Cua Kub Phom/ Ntais (Yog tias siv cov cua sov)
  3. Hlau Strippers
  4. Mini - B USB Cable (lossis kab ntawv twg yog qhov xav tau rau koj lub micro tswj)
  5. Kub Nplaum Rab Phom lossis Zoo ib yam (Kuv tau siv lub tshuab luam ntawv 3D los txuas txhua yam khoom rau hauv 3D luam ntawv ib sab)

Cov Ntaub Ntawv Yuav Tsum Tau:

  1. 22AWG Cov tub ntxhais hlau xaim ex: Cov Tub Ntxhais Hluav Taws Xob Teeb 22AWG
  2. Arduino Nano (lossis zoo sib xws, kuv siv clone) ex: 3 x Arduino Nano (Clone)
  3. Cov Khoom Siv Hluav Taws Xob (2 x 220 ohm, 2 x 220k ohm) Koj tuaj yeem tuaj yeem siv tus nqi qis dua cov khoom tiv thaiv xws li 47k nrog kev ua tiav, Kuv nyuam qhuav tshwm sim pom tias kuv xav tau tus nqi no rau nws ua haujlwm. Phau ntawv qhia teeb meem piav qhia yuav ua li cas thiaj txiav txim siab tau yog tias tus neeg tiv taus pulldown resistor yog tus nqi raug rau koj qhov tshwj xeeb phototransistor thiab teeb tsa LED. Vim li no kuv xav kom tau txais teeb tsa: ex: Resistor Set
  4. 2 x IR LED ex: IR LED thiab PhotoTransistor Teeb
  5. 2 x PhotoTransistor
  6. 1 x 3D luam ntawv Enclosure - Hauv IR Opaque Filament (Hatchbox Nyiaj Ua Haujlwm thiab tsuas yog xim kuv tau sim)
  7. Cov Ntawv Teev Npe tag nrho muaj nyob ntawm no ntawm GitHub ntxiv rau hauv Zip File txuas nrog. STLs tseem muaj nyob ntawm Thingiverse ntawm no.

Kauj Ruam 2: Kuaj Breadboard

Kev xeem Breadboard
Kev xeem Breadboard
Kev xeem Breadboard
Kev xeem Breadboard

Thaum cov khoom siv hluav taws xob tau los txog, cov laug txuas mus rau tus kws kho qhov muag thiab IR Leds ~ 20-30cm rau kev debugging, Kuv pom zoo kom cua sov ua rau cov no poob qis. Kuv tsis muaj qhov ntsuas cua sov me me kom raug thiab yuav tsum siv daim kab xev hluav taws xob rau qhov qauv no. Qhov no yuav tso cai rau koj siv lawv rau kev sim hauv qhov thaiv. Yog tias koj tau luam tawm lub thawv ntawv thiab muaj LEDs thiab cov duab transistors hauv txoj haujlwm raug koj tuaj yeem pib ntsuas.

Xyuas kom koj muaj Arduino thiab Ua Haujlwm teeb tsa.

Zip cov ntaub ntawv thaum pib muaj tag nrho cov cai nrog rau STL cov ntaub ntawv rau luam tawm lub thawv ntawv.

Siv Arduino txhawm rau debug thaum xub thawj thiab tsuas yog siv ua rau kev sim zaum kawg (koj tuaj yeem pom txhua yam hauv kev saib xyuas los ntawm Arduino).

Koj tuaj yeem sim yooj yim tua Nerf dart los ntawm chronograph nrog Chronogrpah_Updated.ino teeb tsa ntawm Arduino. Yog tias qhov no ua haujlwm ces koj tau teeb tsa tag nrho. Yog tias qhov no tsis ua haujlwm ces koj yuav muaj peev xwm hloov kho qhov ntsuas qhov ntsuas. Qhov no yog tham hauv kauj ruam tom ntej.

Me ntsis ntawm qhov chaws ua haujlwm li cas:

  1. Interrupst nres qhov chaws thaum lub dart hla lub qhov rooj thiab txiav txim lub sijhawm hauv microseconds
  2. Qhov nrawm tau suav nrog qhov no thiab lub sijhawm khaws cia
  3. Lub sijhawm nruab nrab ntawm kev txhaj tshuaj yog xam thiab hloov pauv mus rau ib puag ncig thib ob
  4. Lub sijhawm nruab nrab ntawm cov rooj vag raug suav thiab hloov pauv mus rau taw ib pliag raws qhov rooj nrug deb.

    Kev siv ob lub rooj vag tso cai rau cov txiaj ntsig zoo nrog lub sijhawm zoo ib yam (yuav tsum tau npog lub ntsuas ntau npaum li cas) thiab txo qis hysteresis

  5. Qhov nrawm thiab tus nqi hluav taws raug xa los ntawm cov lej sib cais los ntawm tus lej rau ob qho tib si saib hauv arduino lossis kev kos duab ua rau pom zoo UI (tsom mus rau kev ua thaum txhua yam ua haujlwm!).

Kauj Ruam 3: Xeem thiab Debugging

Yog tias koj tsis tau ua tiav nrog thawj qhov kev sim, tom qab ntawd peb yuav tsum txheeb xyuas qhov ua tsis raug.

Qhib Arduino piv txwv AnalogReadSerial pom hauv Cov Ntaub Ntawv-> Piv txwv-> 0.1 Cov Hauv Paus-> AnalogReadSerial

Peb xav kom ntseeg tau tias cov kws kho qhov muag ua haujlwm raws li peb xav kom lawv ua. Peb xav kom lawv nyeem HIGH thaum lub dart tsis thaiv lawv, thiab LOW thaum lub dart tsis. Qhov no yog vim tias txoj cai siv Kev cuam tshuam los sau lub sijhawm thaum lub dart hla lub sensor, thiab hom kev cuam tshuam siv yog FALLING, uas txhais tau tias nws yuav ua rau thaum mus los ntawm HIGH mus rau LOW. Txhawm rau kom tus pin yog HIGH peb tuaj yeem siv siv tus lej sib piv los txiav txim siab tus nqi ntawm cov koob.

Tshaj tawm Arduino Piv Txwv AnalogReadSerial thiab dhia los ntawm tus lej digital D2 lossis D3 rau A0.

D2 yuav tsum yog thawj lub ntsuas thiab D3 yuav tsum yog lub ntsuas thib ob. Xaiv 1 los nyeem thiab pib muaj. Ua raws li phau ntawv qhia hauv qab no txhawm rau txiav txim siab qhov kev daws teeb meem raws li kev nyeem:

Tus nqi yog 0 lossis qis heev:

Tus nqi yuav tsum yog nyob ib puag ncig 1000 thaum pib, yog tias nws tau nyeem tus nqi qis heev lossis xoom ces xyuas kom koj cov LEDs txuas tau zoo thiab tsis kub hnyiab, nrog rau ua kom zoo. Kuv hlawv kuv cov LEDs hauv kev sim thaum siv 100 ohm resistor hloov ntawm 220 ohm. Nws yog qhov zoo tshaj rau xa mus rau cov ntawv teev tseg rau LEDs txhawm rau txiav txim siab tus nqi tiv thaiv raug, tab sis feem ntau LEDs tej zaum yuav ua haujlwm nrog 220 ohm resistor.

LEDs Ua Haujlwm, thiab Tus Nqi tseem yog 0 lossis qis heev:

Qhov teeb meem yuav zoo li hauv qhov rub tawm tus tiv thaiv qis heev hauv kev tiv thaiv. Yog tias koj tab tom muaj teeb meem nrog 220k resistor, koj tuaj yeem tuaj yeem nce nws siab dua qhov no, tab sis yuav muaj suab nrov. Koj yuav tsum xyuas kom koj cov duab transistor tsis raug hlawv.

Tus nqi yog qhov nruab nrab:

Qhov no yuav ua rau muaj teeb meem loj, feem ntau ua tsis raug, lossis tsis ua rau siab. Peb yuav tsum ua kom ntseeg tau tias HIGH tau txais, txhawm rau ua qhov no peb xav tau tus nqi ~ 600 tab sis cia siab rau 900+ kom muaj kev nyab xeeb. Kev nyob ze rau qhov pib no tuaj yeem ua rau muaj qhov tsis raug, yog li peb xav kom tsis txhob muaj qhov tsis zoo. Txhawm rau kho tus nqi no, peb xav kom nce lub zog tiv thaiv kab mob (220K). Kuv twb tau ua qhov no ob peb zaug hauv kuv qhov kev tsim thiab koj yuav tsis tas yuav ua qhov no vim qhov no yog tus nqi loj heev rau qhov rub tawm tus tiv thaiv.

Tus nqi yog nrov heev (dhia ncig ntau yam tsis muaj kev txhawb sab nraud):

Ua kom ntseeg tau tias koj cov xov hluav taws xob raug nrog lub rub tawm tus tiv thaiv. Yog tias qhov no raug, koj yuav xav tau nce tus nqi ntawm tus tiv thaiv.

Tus nqi tau nyam ntawm 1000+, txawm tias thaum thaiv lub sensor:

Ua kom ntseeg tau tias koj lub zog rub tawm cov kab hluav taws xob raug, qhov no yuav tshwm sim yog tias tsis muaj qhov rub tawm. Yog tias qhov no tseem yog qhov teeb meem, sim txo qhov rub tawm tus nqi tiv thaiv.

Tus nqi yog siab thiab mus rau xoom thaum thaiv lub teeb:

Qhov no yuav tsum txaus rau lub ntsuas kom ua haujlwm, txawm li cas los xij peb yuav tsis teb sai txaus raws li lub dart hla txoj kev. Muaj qee qhov muaj peev xwm nyob hauv Circuit Court, thiab nrog 220K resistor nws yuav siv qee lub sijhawm rau qhov hluav taws xob poob qis dua qhov yuav tsum tau ua. Yog tias qhov no tshwm sim, txo qhov kev tawm tsam no mus rau 100K thiab saib seb qhov kev ntsuas ua haujlwm li cas.

MUAJ TEEB MEEM RESISTOR CHANGES YUAV TSUM MUAJ NEEG NTAWV SENSORS

Ua kom ntseeg tau tias cov kab hluav taws xob zoo ib yam rau ob qho tib si tswj hwm tib lub sijhawm nruab nrab ntawm cov tiv thaiv uas yuav tso cai rau qhov raug qhov zoo tshaj plaws hauv kev ntsuas.

Yog tias koj muaj teeb meem ntxiv, tso tawm cov lus hauv qab no thiab kuv yuav ua qhov zoo tshaj plaws los pab koj.

Kauj ruam 4: Khoos phis tawj khoos phis tawj

Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos

Muab cov khoom sib txuas rau PCB me me raws li pom ntawm no:

Cov coj rau LEDs thiab PhotoTransistors yuav tsum txiav kom ntev, kwv yees li _.

Solder Arduino mus rau ntawm lub rooj tsavxwm, thiab xaim cov resistors los ntawm hauv av kom nkag tau yooj yim. Txuas ntxiv kom ntseeg tau tias 4 Cov xov hlau zoo tuaj yeem txuas tau yooj yim ua ke. Yog tias koj muaj teeb meem nrog qhov no, koj tuaj yeem hle ib qho ntawm cov xaim thiab ua kom nws hla txhua qhov kev coj ua thaum kawg.

Kuv xaim lub ntsuas hluav taws xob mus rau sab nraud ntawm lub thawv ntawv, txawm li cas los xij xav tias xaim xaim yog ntev li ntev tau thaum koj ua ob sab zoo ib yam. Kuv txiav cov xov hlau kom ntev thiab muab cov xov txuas txuas rau txhua qhov ntawm diodes kawg. Kuv hloov kho cov xov hlau me ntsis kom muab chav ntau dua thiab tsis muaj kev txhawj xeeb vim muaj qee cov xov hlau nyob hauv PCB thiab lwm tus hla nws kom yooj yim siv. STLs yog nyob rau hauv cov ntaub ntawv zauv teb qhov project thaum pib ntawm txoj haujlwm.

Kauj Ruam 5: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Yog tias koj lub qhov PCB tsis sib xws nrog lub qhov ntawm lub cev chronograph tseem ceeb, koj tuaj yeem muaj peev xwm ruaj ntseg cov khoom siv hluav taws xob hauv qhov thaiv nrog qee daim kab xev lossis kua nplaum kub, Kuv pom nws tsis tas yuav tsum tau nyab xeeb tom qab xaim thiab USB tau nyob hauv qhov chaw, txawm li cas los xij koj cov txiaj ntsig yuav txawv. Nws tau tsim los tso cai rau nias ntawm 1.75mm filament rau hauv lub qhov ntsia hlau rau qhov cua sov, txawm li cas los xij PCB kuj tseem tuaj yeem ntsia tau rau hauv los yog lo. Qhov tseem ceeb tshaj plaws ntawm no yog kom ntseeg tau tias USB chaw nres nkoj tuaj yeem nkag tau.

Npog cov khoom siv hluav taws xob nrog cov khoom siv hluav taws xob, Cov ntaub ntawv hloov kho tshiab yuav tsum haum zoo dua li kuv tau ua thiab vam tias yuav nias rau hauv qhov chaw, txawm li cas los xij kuv siv lub tshuab luam ntawv 3D los txhuam cov npog hauv qhov chaw. Tam sim no koj tau npaj los tua qee lub darts!

Kev hloov kho yav tom ntej tuaj yeem siv cov txheej txheem sab hauv rau cov xov hlau, tab sis cov npog hauv qhov no ua rau me ntsis rau qhov zoo nkauj Nerf.

Kauj Ruam 6: Chronograph hauv Kev Ua

Image
Image
Chronograph hauv Kev Ua
Chronograph hauv Kev Ua

Qhib Cov Txheej Txheem Cov Ntaub Ntawv: Chronograph_Intitial_Release yuav tso cai rau tus neeg siv zoo nkauj tiag tiag rau chronograph tso saib ob qho FPS thiab RPS (Rounds per Second). Yog tias koj muaj teeb meem txuas kom ntseeg tau tias koj kaw koj li Arduino tus saib xyuas, koj kuj tseem yuav tau hloov pauv chaw nres nkoj hauv tus lej, tab sis qhov no tau hais tawm thiab yuav tsum yooj yim. Txhawm rau rov pib dua qhov txiaj ntsig siab tshaj plaws yooj yim nias qhov chaw-bar ntawm koj lub computer.

Me ntsis ntawm qhov chaws ua haujlwm li cas (Duab ntawm UI tuaj yeem pom saum toj no):

  1. Tau txais cov tswv yim los ntawm Arduino
  2. Sib piv qhov no rau cov tswv yim yav dhau los txhawm rau nrhiav tus nqi siab tshaj
  3. Qhia qhov tam sim no thiab qhov txiaj ntsig siab tshaj plaws hauv puv npo kom yooj yim pom kev tawm tswv yim
  4. Pib dua tus nqi siab tshaj thaum qhov chaw raug nias

Kauj Ruam 7: Cov phiaj xwm yav tom ntej

Kev hloov kho yav tom ntej rau qhov no yuav suav nrog cov kev txhim kho hauv qab no. Yog tias koj muaj cov yam ntxwv ntxiv uas koj xav tau, qhia rau kuv paub thiab kuv yuav sim siv lawv.

  1. Suav nrog LCD Screen
  2. Suav nrog Roj Teeb
  3. Nerf Tau Tshaj Cov Ntawv Txuas Txuas
  4. Hloov Kho Cov Ntaub Ntawv
  5. Hlau Sights

Pom zoo: