Hello, I've been working on a Midi Controller project and after a lot of reserach I found that:
- I don't want regular analog potentiometers because I don't want a fixed value so I can change parameter and not mess up the current value.
- I don't want digital encoders because of their low resolution on affordable models.
So I came up with this
https://www.mouser.es/ProductDetail/Alpha-Taiwan/RV112FF-40B1-15F-0B20K-0068?qs=%2Fha2pyFadugIUR6z4peD5VgXgqxB99COJ4kSfZg41aSWLc55zFxVXs6XFyc2q3gYyB27TqoGq8Q=
This are the same or very similar as the ones that Maschine MK3 uses and I really like the feel. I found them contacting with this great guy.
https://www.youtube.com/watch?v=q2axuDSDThQ&list=LL8_Dy_2inRPRU5aztbPRgKA&index=6&t=0s
So my question is, How do I read properly this with the Teensy LC that I have. I want to have increments or decrements.
I connected the potentiometer correctly and I get the two values, one delayed from the other.
This is the behaviour of the potentiometer:
This is what I got on the serial:
This is the code so far:
int val6, val5;
void setup()
{
Serial.begin(38400);
val6 = analogRead(6);
val5 = analogRead(5);
}
void loop()
{
delay(250);
if (abs(val6 - analogRead(6)) > 10) {
val6 = analogRead(6);
val5 = analogRead(5);
Serial.print("values: ");
Serial.print(val6);
Serial.print(" / ");
Serial.println(val5);
Serial.println("");
}
}
Sorry for the mess, and thanks.
- I don't want regular analog potentiometers because I don't want a fixed value so I can change parameter and not mess up the current value.
- I don't want digital encoders because of their low resolution on affordable models.
So I came up with this
https://www.mouser.es/ProductDetail/Alpha-Taiwan/RV112FF-40B1-15F-0B20K-0068?qs=%2Fha2pyFadugIUR6z4peD5VgXgqxB99COJ4kSfZg41aSWLc55zFxVXs6XFyc2q3gYyB27TqoGq8Q=
This are the same or very similar as the ones that Maschine MK3 uses and I really like the feel. I found them contacting with this great guy.
https://www.youtube.com/watch?v=q2axuDSDThQ&list=LL8_Dy_2inRPRU5aztbPRgKA&index=6&t=0s
So my question is, How do I read properly this with the Teensy LC that I have. I want to have increments or decrements.
I connected the potentiometer correctly and I get the two values, one delayed from the other.
This is the behaviour of the potentiometer:
This is what I got on the serial:
This is the code so far:
int val6, val5;
void setup()
{
Serial.begin(38400);
val6 = analogRead(6);
val5 = analogRead(5);
}
void loop()
{
delay(250);
if (abs(val6 - analogRead(6)) > 10) {
val6 = analogRead(6);
val5 = analogRead(5);
Serial.print("values: ");
Serial.print(val6);
Serial.print(" / ");
Serial.println(val5);
Serial.println("");
}
}
Sorry for the mess, and thanks.