A Music Controller

 

A controller for my pocket and fidgity hands.

 

For my music controller I chose to look to myself as a starting point for the design audience. 

 
 

Diagrams & Code

 
 
int lastOnOff = LOW; //start/stop button


//keyboard variables

//int buttonA = 3;
//int buttonD = 4;
int first = 4;
int second = 5;
int third = 6;
int fourth = 8;
int fifth = 9;
int six = 10;

int motor = 7;



void setup() {
Serial.begin(9600);
// put your setup code here, to run once:

pinMode(first, INPUT);
pinMode(second, INPUT);
pinMode(third, INPUT);
pinMode(fourth, INPUT);
pinMode(fifth, INPUT);
pinMode(motor, OUTPUT);



}

void loop() {
// put your main code here, to run repeatedly:


int buttonState1 = digitalRead(first);
int buttonState2 = digitalRead(second);
int buttonState3 = digitalRead(third);
int buttonState4 = digitalRead(fourth);
int buttonState5 = digitalRead(fifth);
int buttonState6 = digitalRead(six);

if (buttonState1 == 1 ) {

Serial.println(“1st working”);
analogWrite(motor, 255);

delay(500);
} else {
analogWrite(motor, 0);
}

if (buttonState2 == 1) {

Serial.println(“2nd working”);
analogWrite(motor, 150);


delay(500);
} else {
analogWrite(motor, 0);
}
if (buttonState3 == 1 ) {

Serial.println(“3rd working”);
analogWrite(motor, 255);

delay(500);
} else {
analogWrite(motor, 0);
}
 

Housing and Interaction

 

To make something that could fit comfortably in one hand, but still house all of the hardware I needed, I created a number of cardboard prototypes to get the size and button placement correct. 

 

A also did a small run of paper prototypes to feel out the angle and depth of the button depressions that would feel best for each finger.

 

First Circuit Tests:

 
 

To create the housing I used layers of cardboard cut on a laser cutter.

 
 
 
Skylar JessenComment