Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Arduino thiab LED
- Kauj ruam 2: Pib Khawm
- Kauj Ruam 3: Tswj
- Kauj ruam 4: Suab
- Kauj ruam 5: Lub ntiajteb txawj nqus
- Kauj Ruam 6: Kawg Software
- Kauj Ruam 7: Nrhiav phooj ywg los sib tw nrog \ o/
Video: Smash Dash 3000: 7 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
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
### 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
### 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
### 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
### 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
### 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
Ntxiv tus yeej rau qhov kev ua si.
! (./ dluab/nees.jpg)
Saib [`./code/step6-final.ino`](./code/step6-final.ino)
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov av noo noo Cov Lus Qhia Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): 5 Cov Kauj Ruam
Cov av noo noo Cov lus pom zoo Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): Tsis txhawj xeeb txog koj lub vaj lossis nroj tsuag thaum koj mus rau hnub so ntev, lossis tsis nco qab ywg dej koj cov nroj tsuag txhua hnub. Zoo ntawm no yog kev daws teeb meem Nws cov av ya raws tswj hwm thiab thoob ntiaj teb txuas nrog cov dej txau dej tswj los ntawm ESP32 ntawm software pem hauv ntej kuv
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): 3 Cov Kauj Ruam
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): Peb txhua tus nyiam ua si nrog peb tus lej L … cov ntsiab lus tau ntxiv thiab nws tsis tshwj xeeb rau lub qhov muag. Arduino IDE cov phiaj xwm tsis
Cov Ntawv Cim Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Cov Ntawv Cim - Cov Khoom Siv Soldering: 11 Kauj Ruam
Cov Khoom Siv Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Daim Npav - Cov Khoom Siv Soldering: Kab lus no tau txaus siab txhawb nqa los ntawm PCBWAY.PCBWAY ua cov qauv zoo PCBs rau tib neeg thoob plaws ntiaj teb. Sim nws rau koj tus kheej thiab tau txais 10 PCBs rau tsuas yog $ 5 ntawm PCBWAY nrog qhov ua tau zoo heev, Ua tsaug PCBWAY. Robadge#1 uas kuv tau tsim rau
Windows 7: Cov Ntsiab Lus Cov Ntawv Cov Khoom Tsis Muaj: 3 Cov Kauj Ruam
Windows 7: Cov Ntawv Qhia Cov Khoom Uas Tsis Muaj: Thaum twg los peb xaiv ntau dua 15 cov ntaub ntawv hauv Windows. qee yam khoom los ntawm cov ntawv qhia zaub mov ploj mus … Cov ntawv qhia no yuav qhia koj yuav ua li cas kom tau txais cov khoom ntawd rov qab los ntawm cov ntawv qhia zaub mov