Cov txheej txheem:

Smash Dash 3000: 7 Cov Kauj Ruam
Smash Dash 3000: 7 Cov Kauj Ruam

Video: Smash Dash 3000: 7 Cov Kauj Ruam

Video: Smash Dash 3000: 7 Cov Kauj Ruam
Video: 99.5% Players Failed This Part Because They Were Distracted 2024, Kaum ib hlis
Anonim
Tsoo Dash 3000
Tsoo Dash 3000
Tsoo Dash 3000
Tsoo Dash 3000
Tsoo Dash 3000
Tsoo Dash 3000

Nov yog daim ntawv theej tawm ntawm 4/13/2019 los ntawm GitHub, rau lub hom phiaj ntawm kev koom nrog hauv Kev Qhia Ntawv LED kev sib tw! Yog tias leej twg muaj teeb meem, tsis txhob tso qhov teeb meem ntawm GitHub!

Cov ntaub ntawv tag nrho cov phiaj xwm ntawm

Nov yog ib qhov project txog teeb. Kuv tau tsim qhov kev sib tw arduino raws kev sib tw ua haujlwm nrog tsoo lub pob thiab sib tw mus txog qhov kawg ntawm LED sawb. Muaj ntxiv cov neeg kho tshuab zoo li lub ntiajteb txawj nqus los ua kom qhov kev ua si zoo siab dua.

Tshaj tawm rau kev tshoov siab rau txoj haujlwm no, [Qhib LED Race] (https://create.arduino.cc/projecthub/gbarbarov/open-led-race-a0331a).

Khoom siv

## Khoom siv

- Arduino Mega- 5V Relay- 5V 2.5A Cov Khoom Siv Hluav Taws Xob- WS2813 Coj Sawb 60 LED/5 Meter- DF Player Mini- RJ45 4-Port Breakout Board- RJ45 Keystone (1)- RJ45 Breakout (2)- 1000 uF Capacitor- 470 uF Capacitor- 470 Ohm Resistor (5)- 1000 Ohm Resistor- 10k Ohm Resistor (3)- Cardboard Box- 3 Watt Speaker- Pringles Can- Empty Pill Fwj (2)- 22 AWG Khoom Hlau- Ethernet Cable- Txiv neej RJ45 Connectors- Breadboard- Arcade Khawm (3)- Micro SD

### Lwm yam uas koj xav tau

- Micro SD Reader- Wire Stripper- RJ45 Crimper- Soldering Iron- Solder- Shrinktube

Kauj ruam 1: Arduino thiab LED

Arduino thiab LED
Arduino thiab LED
Arduino thiab LED
Arduino thiab LED
Arduino thiab LED
Arduino thiab LED

### 1.1 Teeb lub npov

#### 1.1.1

Txuas mus rau koj lub npov: Arduino Mega, daim ntawv qhia zaub mov, tso tawm, RJ45 ntsaws, lub hwj chim ntsaws

#### 1.1.2

Plug Arduino rau hauv daim ntawv qhia khoom noj khoom haus (xa mus rau kab hluav taws xob schematic).

#### 1.1.3

Plug txuas mus rau hauv daim ntawv qhia khoom noj khoom haus (xa mus rau kab hluav taws xob schematic).

#### 1.1.4

RJ45 rau lub rooj noj mov, ntxiv cov neeg tawm tsam

Ntsuab = Rov Qab Cov Ntaub Ntawv Kab Xiav = Kab Kab Txiv Kab Ntxwv = 5V Xim av = Av

Ntxiv 470 Ohm resistor ntawm ob kab ntawv cov ntaub ntawv (xa mus rau kab hluav taws xob schematic).

#### 1.1.5

Txuas lub hwj huam mov rau hauv lub khob cij, ntxiv 1000 uF capacitor.

### 1.2 Teeb LED sawb

#### 1.2.1 Tsim LED txuas txuas hlau

Txog 6-9 ko taw ntev.

Cov hlau txuas txuas.

Liab (5V) = Txiv kab ntxwv dub (Hauv av) = Xim av daj (Cov Ntaub Ntawv) = Xiav Ntsuab (Cov Ntaub Ntawv Rov Qab) = Ntsuab

Siv cua sov ntsws.

! (./ images/ledextensionwire.jpg)

#### 1.2.2 Daim kab xev LED xaim ua

! (./ images/ledWire.jpg)

#### 1.2.3 Plug LED sawb rau hauv RJ45 keystone.

### 1.3 Software: Qhib teeb

Saib ["./code/step1-turnOnLights.ino"](./code/step1-turnOnLights.ino)

Kauj ruam 2: Pib Khawm

Pib khawm
Pib khawm
Pib khawm
Pib khawm
Pib khawm
Pib khawm

### 2.1

Pom tau ib nrab ntiv tes siab dua koj lub npov.

! (./ images/startButtonInBox.jpg)

### 2.2

Txiav ib lub qhov rau koj lub arcade khawm.

Siv cov hlau lead xaim los pib khawm.

! (./ images/startButtonHole.jpg)

### 2.3

Txuas lub khawm pib ua cov xov hlau mus rau lub rooj noj mov, thiab txuas lub rooj noj mov rau Arduino.

Ntxiv 470 oHm resistor rau LED. Ntxiv 10k resistor rau khawm.

! (./ images/startButtonWires.jpg)

### 2.4 Software: Tsiv Teeb

Saib ["./code/step2-movingLights.ino"](./code/step2-movingLights.ino)

Kauj Ruam 3: Tswj

Tswj
Tswj
Tswj
Tswj
Tswj
Tswj

### 3.1 Txuas cov tswj hwm pawg tswj hwm pawg tawm tsam rau arduino

#### 3.1.1 Thawj tus tswj

Nov yog kev teeb tsa rau thawj tus neeg uas ua ntawv tswj. Txhua lub xov hlau yuav tsum txuas nrog rau qhov chaw nres nkoj pawg tawm tsam 'D'.

Tus tswj kev tshem tawm qhov chaw nres nkoj hlau teeb tsa:

- Hlau 1: +5 volt rov qab los ntawm txhais ceg 2 ntawm kev hloov pauv - Txuas mus rau qhov muaj cov dav hlau dav dav ntawm lub khob cij - Txuas 10k ohm resistor los ntawm lub dav hlau dav hlau mus rau hauv av. Cov ntaub ntawv hauv av no pab tiv thaiv kev nyeem tsis raug. - Hlau 2: +5 volt mus rau ceg 1 ntawm kev hloov pauv - Txuas mus rau +5 volt fais fab kev tsheb nqaj hlau ntawm daim phiaj - Hlau 3: Hauv av rau khawm LED - Txuas rau -5 volt fais fab kev tsheb nqaj hlau - Hlau 4: +5 volt teeb liab rau khawm LED - Txuas mus rau lub davhlau ya nyob twg muaj kab txaij ntawm lub khob cij - Txuas txuas rau arduino mus rau lub dav hlau dav hlau tawm tsam - Txuas ob lub dav hlau dav hlau nrog 470 ohm resistor

Player 1 khawm = tus pin 26 Player 1 LED = tus pin 27

#### 3.1.2 Tus tswj thib ob

Ua raws cov kauj ruam rau thawj tus tswj hwm, tshwj tsis yog lub sijhawm no siv qhov chaw nres nkoj tawg `C`.

Player 2 khawm = tus pin 22 Player 2 LED = tus pin 23

### 3.2 Ua tus ethernet cable

Txog 6-9 ko taw ntev.

! (./ dluab/controllerWire.jpg)

### 3.2

Laum ib lub qhov hauv qab ntawm lub khob tshuaj.

! (./ dluab/controllerBottomHole.jpg)

### 3.3 Tus Tswj Xyuas Sab Saum Toj

! (./ dluab/controllerInside.jpg)

#### 3.3.1

Txiav ib lub qhov hauv lub hau ntawm lub khob ntim tshuaj rau khawm khawm.

#### 3.3.2

Cov kab hlau lead ua cov hlau rau koj lub arcade khawm.

#### 3.3.3

Muab koj lub arcade khawm tso rau hauv lub hau ntawm lub khob ntim tshuaj.

#### 3.3.4

Txuas RJ45 Poj niam tawm ntawm lwm sab ntawm lub hau.

### 3.4 Tus Tswj Xyuas Hauv Qab Los Ua Ke

! (./ dluab/controllerAlmostFinished.jpg)

Ntxig lub ethernet qaum rau hauv qab ntawm lub khob ntim tshuaj, tom qab ntawd khi txoj hlua xoob tam sim hauv qab qhov kawg ntawm txoj hlua ethernet.

### 3.5 Tus Kws Tswj Xyuas Lub Rooj Sib Tham zaum kawg

! (./ dluab/controllerFinished.jpg)

Plug ethernet rau RJ45 Poj niam tawm. Ceev faj thaum koj kaw lub thawv kom tsis txhob khawm khawm khawm.

### 3.6 Rov ua dua rau tus tswj thib ob

! (./ images/secondController.jpg)

### 3.7 Software: Tswj Player

Saib ["./code/step3-playerControls.ino"](./code/step3-playerControls.ino)

Kauj ruam 4: Suab

Suab
Suab
Suab
Suab

### 4.1 ntsaws DF Player rau hauv daim ntawv qhia zaub mov

Ntxiv capacitor thiab resistor.

! (./ dluab/audioCloser.jpg)

### 4.2 Plug 3 watt hais lus rau hauv daim txiag ntoo

### 4.3 Rub tawm suab rau Micro SD

Lub npe nplaub tshev yuav tsum yog mp3, muab tso rau hauv daim npav SD npe hauv paus, thiab lub npe cov ntaub ntawv mp3 yuav tsum yog 4 tus lej, piv txwv li, "0001.mp3", tso rau hauv daim nplaub tshev mp3. Yog tias koj xav sau nws ua lus Askiv thiab Suav, koj tuaj yeem ntxiv nws tom qab tus lej, piv txwv li, "0001hello.mp3" lossis "0001 后来.mp3".

Saib [``./audio/](./audio).

### 4.4 Plug Micro SD rau hauv DF Player

### 4.5 Software: Suab

Saib ["./code/step4-audio.ino"](./code/step4-audio.ino)

Kauj ruam 5: Lub ntiajteb txawj nqus

Lub ntiajteb txawj nqus
Lub ntiajteb txawj nqus

### 5.1 Ntsuas

! (./ dluab/lightsOnWall.jpg)

Dai koj daim kab xev LED ntawm phab ntsa lossis ib yam dab tsi. Xaiv qhov chaw uas nkag siab rau lub ntiajteb txawj nqus pib, piv txwv li qhov chaw uas lub teeb pom kev pib mus ncig.

Ntsuas deb npaum li cas los ntawm qhov kawg ntawm kab txaij LED qhov chaw nyob no. Xam qhov ntsuas ntawm LED ntawm txoj haujlwm no los ntawm kev siv ntsuas qhov ntev, tag nrho ntev ntawm kab txaij, thiab qhov nrug nruab nrab ntawm LEDs.

### 5.2 Software: Lub sijhawm nqus

Saib ["./code/step5- gravity.ino"](./code/step5-gravity.ino)

Kauj Ruam 6: Kawg Software

Kawg Software
Kawg Software

Ntxiv tus yeej rau qhov kev ua si.

! (./ dluab/nees.jpg)

Saib [`./code/step6-final.ino`](./code/step6-final.ino)

Pom zoo: