Control Servo Using Arduino and Rock Band Guitar

About: vigilant ad low volantes scaphas

Intro: Control Servo Using Arduino and Rock Band Guitar

this is my first Instructable no nasty coments
how i made a program

Step 1: Plug Everything In

plug the arduino cable and rock band guitar receiver in to the usb ports and the other side of the cable to the arduino

sorry if this confused any one

Step 2: Get Stuff You Need

1.Arduino
2.usb cable
3.2 free usbports on computer(or you could use a hub like i did)
4.servo
5.some fasion of conecting arduino to the servo
6.rockband guitar

Step 3: Use Joy to Key

download to atached file it has to thisng maped out for you already

Step 4: Program

connect the black wire on gnd pin on arduino, connect red wire to +5v, connect sensor wire (usually orange or yellow but sometime like on my fubuta servo it is white)to pin 9

program

//made by everywhere
//i worked very hard on this so please give credit to me

#include <Servo.h>

Servo servo1;
Servo servo2;

void setup()
{
servo1.attach(9);
servo2.attach(10);
Serial.begin(19200);
Serial.print("Ready");
}

void loop()
{
static int v = 0;

if ( Serial.available()) {
char ch = Serial.read();

switch(ch) {
case 'g':
servo1.write(v);
v = 0;
break;
case 'r':
servo1.write(v);
v = 45;
break;
case 'y':
servo1.write(v);
v = 90;
break;
case 'b':
servo1.write(v);
v = 135;
break;
case 'o':
servo1.write(v);
v = 180;
break;
}
}

}

Step 5: There You Go

threre you be done
i hope u enjoyed this instrucble
p.s. if you don't have a base on you arduio so it can't short curcit(i used a pice of accrillic found in the trash _)

Share

    Recommendations

    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest
    • Tiny Home Contest

      Tiny Home Contest

    4 Discussions

    0
    None
    ario56

    9 years ago on Introduction

    how does it attach to the controller? i must know...

    0
    None
    Noodle93

    9 years ago on Introduction

    This is a great instructable, but perhaps some more information about this could be beneficial to new users of Arduino.