Cov txheej txheem:

The Shooting ArteFact: 4 Kauj Ruam (nrog Duab)
The Shooting ArteFact: 4 Kauj Ruam (nrog Duab)

Video: The Shooting ArteFact: 4 Kauj Ruam (nrog Duab)

Video: The Shooting ArteFact: 4 Kauj Ruam (nrog Duab)
Video: Playstation 5 | Astro's Playroom | Augmented reality controller 2024, Hlis ntuj nqeg
Anonim
Image
Image
Shooting ArteFact
Shooting ArteFact
Shooting ArteFact
Shooting ArteFact
Shooting ArteFact
Shooting ArteFact

Kev Tua Tsiaj ArteFact yog qhov khoom tsim tshwj xeeb. Nws lub hom phiaj yog txhawm rau txhim kho kev paub ib puag ncig tus lej ntawm kev tua neeg uas tshwm sim hauv Tebchaws Meskas txhua xyoo. Txhua lub sijhawm tus neeg raug tshaj tawm tias tuag ntawm https://www.gunviolencearchive.org/, Shooting ArteFact yuav ua suab nrov thiab nyem lub vijtsam. Cov naj npawb ntawm cov neeg tuag kuj tseem tshwm ntawm daim duab. Cov Khoom Siv Hluav Taws Xob tuaj yeem tso rau hauv qhov chaw pej xeem txhawm rau txhawm rau ua rau nws muaj kev cuam tshuam, lossis hauv cov chaw ntiag tug uas tsis khoom xws li chaw tos txais lossis lub elevator.

Cov ntaub ntawv xav tau:

  • 1 x Adafruit Audio FX Suab Pawg
  • 1 x Ntoo Huzzah Wifi board
  • 2 x Hais Lus - 3 "Txoj kab uas hla - 8 Ohm 1 Watt (nyob ntawm koj xav tau)
  • 1 x Adafruit 0.8 "8x16 LED Matrix FeatherWing Display
  • 1 x Lub thawv rau koj cov khoom siv kho vajtse. Kuv tau ua ib lub thawv, tab sis koj tuaj yeem kho qhov no raws li koj nyiam.
  • 1 x Power bank (3500 mAh @ 3.7V) nrog USB rau mini USB.

Kauj ruam 1: Teeb Kho Vajtse

Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb

Nqa koj lub Wifi pawg thiab nco ntsoov ua tiav thawj peb ntawm "IoT" cov chav kawm ntawm Cov Lus Qhia. Yuav pom ntawm no.

Sib sau ua ke koj li Matrix zaub tshiab thiab lub rooj sib tham suab los ntawm cov laug txuas ntawm lawv. Siv cov xov hlau txuas rau koj tus neeg hais lus thiab txuas lawv mus rau lub tso suab tso suab. Cov lus qhia ntxiv txog kev sib dhos cov khoom tuaj yeem pom ntawm no: Soundboard. Matrix zaub. Speakers.

-Kuv pom zoo kom khiav cov qauv piv txwv uas mus nrog kho vajtse ua ntej khiav cov cai los ntawm tus lej no. Txoj hauv kev no koj yuav tuaj yeem txheeb xyuas seb koj lub khoos phis tawj puas ua haujlwm.-

Peb qhov tso tawm los ntawm lub rooj tswj hwm lub suab yuav los ntawm tus lej PIN 12 ntawm Wifi board thiab mus rau tus lej 0 ntawm lub Rooj Tswjhwm Saib Lub Suab. Cov suab thiab cov hais lus tau siv los ntawm Wifi pawg thawj coj saib lub zog siv (PIN 3V) thiab GND. Matrix zaub yuav zaum ncaj qha ntawm Wifi pawg thawj coj uas tau siv los ntawm lub micro USB chaw nres nkoj. Koj lub txhab nyiaj lossis lub roj teeb yuav ua lub zog tsim khoom los ntawm nws lub USB-chaw nres nkoj.

Kauj ruam 2: Code

Code
Code

Cov cai yog kev sib xyaw ntawm cov qauv piv txwv sib txawv thiab lwm qhov kev ua haujlwm zoo

Cov cai tau tsim rau Adafruit HUZZAH ESP8266 WiFi microcontroller, tab sis tseem tuaj yeem ua haujlwm ntawm lwm lub ESP8266 cov laug cam. Cov lej tau muab los ntawm https://www.gunviolencearchive.org/. Thaum tuag tau sau npe nws ua suab thiab ntsais muag. Qhov no yog ua raws lub vev xaib piv txwv los ntawm Phillip Burgess thiab ua ke nrog cov lus yooj yim rau Adafruit Audio FX Sound Board: Source 1 thiab source 2.

Cov cai tshem tawm lub vev xaib https://www.gunviolencearchive.org/ thiab tshawb hauv qhov chaw tus lej HTML. Ntawm no, nws saib rau qeb raug thiab cov pawg hauv qab. Saib daim duab. Tom qab ntawd nws pom tus lej (5 tus lej nkaus xwb) thiab hloov nws mus rau hauv cov lej.

Nco ntsoov tias cov lus qhia ntawm cov zaub yog raws li koj xav tau. Koj tuaj yeem hloov qhov no nrog matrix.setRotation (1); hais kom ua Tsuas yog hloov tus lej nruab nrab ntawm kab lus. Tus lej tuaj yeem nyob nruab nrab ntawm 1-4. Tsis tas li ntawd, koj yuav tsum hloov kho qhov loj ntawm tus font nyob ntawm seb koj xav kom cov ntawv txav mus li cas thiab cov lus qhia ntawm cov lej. Yog tias koj siv tib cov lus qhia ib yam li kuv, tom qab ntawd koj raug txwv rau ob daim ntawv: TomThumb thiab Tiny3x3a2pt7b. Koj tuaj yeem pom lawv ntawm no thiab qee qhov suav nrog hauv koj lub tsev qiv ntawv Matrix. Koj nyeem ntau ntxiv txog fonts feem ntau ntawm no.

Thaum nws los txog rau lub rooj tswj hwm lub suab nco ntsoov tias nws tsuas tuaj yeem siv WAV thiab OGG cov ntaub ntawv. Koj tuaj yeem pom qhov hloov pauv online yog tias koj cov ntaub ntawv yog MP3. Tam sim no tias peb lub Rooj Tswjhwm Saib WiFi tau txuas nrog tus lej 0 ntawm lub suab nrov nco ntsoov sau lub suab lub npe T00. FileType.

Kuv tau ua kuv qhov zoo tshaj plaws los piav qhia txoj cai thaum koj hla nws. Thov qhia rau kuv paub yog tias koj muaj lus nug.

Tam sim no, muaj ob qhov teeb meem: 1. Kuv tsis tuaj yeem txiav txim siab yuav ua li cas lub suab qhib. Kuv tau sim hloov qhov HIGH thiab LOW qhov tseem ceeb tab sis tsis muaj hmoo. Kuv qhov kev cia siab yog tias koj tuaj yeem pab kuv kho qhov chaws - thov sau qhov no hauv kab lus teb.

2. Txoj cai yuav ua haujlwm rau 5 tus lej xwb. Nws zoo rau ib pawg tshwj xeeb, tsis quav ntsej thawj lo lus thiab rov qab tsib tus lej tom ntej. Yog li ntawd, txoj cai tsuas ua haujlwm thaum cov neeg tuag mus txog tsib tus lej - Cia siab tias nws yuav tsis ua li ntawd ntxiv! Kuv tsis tau pom ib qho kev daws teeb meem rau qhov teeb meem no. Thov tawm tswv yim yog tias koj muaj.

Cov cai yog txuas.

Kauj Ruam 3: Muab tso rau hauv ib qho

Muab tso rau hauv ib yam
Muab tso rau hauv ib yam
Muab tso rau hauv ib yam
Muab tso rau hauv ib yam
Muab tso rau hauv ib yam
Muab tso rau hauv ib yam

Qhov zoo tshaj plaws ntawm txoj haujlwm no yog qhov koj tuaj yeem hloov pauv daim ntawv thiab qhia raws li koj nyiam.

Kuv tau ua Shooting ArteFact rau hauv lub thawv dub vim tias nws qhov nruab nrab thiab muaj txiaj ntsig txaus. Kuv siv ntoo vim nws zam txim ntau thiab yooj yim rau ua haujlwm nrog. Thov nco ntsoov tias cov duab thiab daim ntawv ntawm koj txoj haujlwm yog hais txog thaj chaw uas muaj kev cuam tshuam heev.

Ua lub thawv: 1. Koj yuav xav tau ib daim ntoo nrog cov ntsuas hauv qab no: Thickness: 1/4 ", Side1 12", Side2 18 ".

2. Txiav rau daim (6 "x6") ntawm ntoo.

3. Ua lub voj voog (3 txoj kab uas hla) nyob nruab nrab ntawm ob qho ntawm cov ntoo. Cov no yog cov qhov rau cov hais lus.

4. Ua ib lub qhov (1 5/8 "x 7/8") nyob nruab nrab ntawm ib qho ntawm lwm daim ntoo. Qhov no yog lub qhov rau cov zaub.

5. Xim cov ntoo ntoo. Kuv siv tshuaj tsuag xim.

6. Ntsia tus neeg hais lus thiab tso rau ntawm ob sab. Xyuas kom tseeb tias cov lus qhia ntawm cov khoom siv yog raws li koj nyiam.

7. Txuas velcro lossis lwm lub tshuab kaw rau ib qho ntawm daim. Qhov no yog sab nraum qab ntawm lub thawv.

7. Sib dhos lub thawv. Kuv siv kua nplaum kub. Txuas lwm sab ntawm lub velcro (yog tias muaj feem xyuam) rau ntawm ntug ntawm nraub qaum.

8. Xyuas kom tseeb tias ob tog haum zoo ua ke.

Nco ntsoov tias koj yuav xav kom nkag tau yooj yim rau WiFi board lossis USB cable txhawm rau txhawm rau kho qhov chaws thiab WiFi daim ntawv pov thawj.

Kauj ruam 4: Tso Nws

Qhov Chaw
Qhov Chaw

Tam sim no nws tau ua tiav koj yuav tsum muab nws tso rau hauv qhov chaw uas nws yuav rub cov xim uas nws tsim nyog. Koj tuaj yeem tso nws rau qhov chaw sab nraum zoov. Tsuav nws muaj WiFi txuas thiab lub zog ntawm lub roj teeb. Koj tseem tuaj yeem tsim WiFi hotspot ntawm koj lub xov tooj ntawm tes thiab WiFi pawg thawj coj yuav tuaj yeem txuas rau nws.

Ntawm cov ncauj lus nkag siab zoo li no, koj yuav tsum xav ntau txog qhov muaj peev xwm tshwm sim. Koj xav txog leej twg koj xav nthuav tawm nws thiab vim li cas lawv thiaj raug. Cov txiaj ntsig tau muaj dab tsi?

Tam sim no, cia coj kev paub txog qhov txaus ntshai ntawm kev ua phem phom!

Pom zoo: