Description
For this homework, I decided to build something that could aid my guitar playing. Tremelo picking is a style of picking where you play one string at a extremely fast pace. Normally, this requires a quick wrist and good timing. With the contraption I built, I was able to build a tremelo picker that can play much faster than I can. Its speed can also be controled via a potentiometer. For my video, I used it on my guitar, but for the in class demonstration, I'll be using a rubber band to get the same effect.
Here's a video of it in action with my guitar
Materials
1 - potentiometer
1 - DC motor
1 - diode
1 - 1k resistor
1 - battery pack
1 - transistor
poster putty, duct tape, a popsicle stick, and one guitar pick
Code
I used the same code from lab, just tweaked what value the motor gets so it doesn't spin out of control
int potPin = 0; // select the input pin for the potentiometer
int motorPin = 9; // select the pin for the Motor
int val = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(potPin); // read the value from the sensor, between 0 - 1024
Serial.println(val);
analogWrite(motorPin, val/6); // analogWrite can be between 0-255
}
- Login to post comments