Introduction: 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 _)

Comments

author
monkeyshoe10 made it! (author)2009-04-23

You always need a sock when using arduino =P

author
bigbodysmallbrain made it! (author)bigbodysmallbrain2009-04-26

your right

author
ario56 made it! (author)2009-04-20

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

author
Noodle93 made it! (author)2009-03-05

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

About This Instructable

4,472views

3favorites

Bio: vigilant ad low volantes scaphas
More by bigbodysmallbrain:Make your own Ringtones for your verizon cell phonecontrol arduino using joystickcontrol servo using arduino and rock band guitar
Add instructable to: