Cov txheej txheem:

Tswj Servo Siv Arduino thiab Rock Band Guitar: 5 Kauj Ruam
Tswj Servo Siv Arduino thiab Rock Band Guitar: 5 Kauj Ruam

Video: Tswj Servo Siv Arduino thiab Rock Band Guitar: 5 Kauj Ruam

Video: Tswj Servo Siv Arduino thiab Rock Band Guitar: 5 Kauj Ruam
Video: "Vaajtswv Paub Koj Lub Sab Kws Tsi Ncaaj" - Kx. Nyaj Looj Yaaj 2024, Hlis ntuj nqeg
Anonim
Tswj Servo Siv Arduino thiab Pob Zeb Band Guitar
Tswj Servo Siv Arduino thiab Pob Zeb Band Guitar

qhov no yog kuv thawj Kev Qhia Tsis muaj qhov tsis txaus ntseeg coments

kuv ua qhov program licas

Kauj ruam 1: Plug Txhua Yam Hauv

Plug Txhua Yam Hauv
Plug Txhua Yam Hauv

ntsaws cov kab hluav taws xob arduino thiab pob zeb ntaus pob tesniv tau txais lub suab rau hauv cov chaw nres nkoj usb thiab lwm sab ntawm lub xov tooj mus rau arduino

thov txim yog tias qhov no tsis meej pem ib qho

Kauj Ruam 2: Tau Cov Khoom Koj Xav Tau

Tau Cov Khoom Koj Xav Tau
Tau Cov Khoom Koj Xav Tau
Tau Cov Khoom Koj Xav Tau
Tau Cov Khoom Koj Xav Tau
Tau Cov Khoom Koj Xav Tau
Tau Cov Khoom Koj Xav Tau

1. Arduino

2.usb cable 3.2 pub dawb usbports hauv computer (lossis koj tuaj yeem siv lub hub zoo li kuv tau ua) 4.servo 5.some fasion ntawm conecting arduino rau servo 6.rockband guitar

Kauj Ruam 3: Siv Joy rau Key

Siv Joy rau Key
Siv Joy rau Key

download rau atached cov ntaub ntawv nws tau mus rau qhov no maped tawm rau koj twb

Kauj Ruam 4: Txoj Haujlwm

Program
Program

txuas cov xaim dub ntawm gnd tus pin ntawm arduino, txuas cov hlau liab rau +5v, txuas cov xaim hluav taws xob (feem ntau yog txiv kab ntxwv lossis daj tab sis qee lub sijhawm zoo li ntawm kuv fubuta servo nws yog dawb) rau pin 9program // ua los ntawm txhua qhov chaw // Kuv ua haujlwm hnyav ntawm qhov no yog li thov muab credit rau kuv#suav nrog Servo servo1; Servo servo2; tsis muaj teeb tsa teeb tsa () {servo1.attach (9); servo2.attach (10); cov. Serial.begin (19200); Serial.print ("Npaj");} void loop () {zoo li qub int v = 0; yog (Serial.available ()) {char ch = Serial.read (); hloov (ch) {rooj plaub 'g': servo1.write (v); v = 0; tawg; rooj plaub 'r': servo1.write (v); v = 45; tawg; rooj plaub 'y': servo1.write (v); v = 90 hli tawg; rooj plaub 'b': servo1.write (v); v = 135; tawg; rooj plaub 'o': servo1.write (v); v = 180; tawg; }}}

Kauj ruam 5: Koj Mus

Muaj Koj Mus
Muaj Koj Mus

threre koj ua tiav kuv vam tias koj nyiam qhov instrucblep.s no. yog tias koj tsis muaj lub hauv paus ntawm koj arduio yog li nws tsis tuaj yeem luv curcit (Kuv siv lub pice ntawm accrillic pom hauv cov thoob khib nyiab. _)

Pom zoo: