Electronic building block double linear potentiometer module Arduino mixer linear sliding resistance
Wiring instructions: Connect the main controller to the main controller according to the standard interface of the sensor module. The symbol "G" is connected to the "ground", "V" to "5V" and "S" to the "Arduino" A0 and A1 pins of the main controller. Burn the test program.
test program:
void setup ()
{
Serial.begin (9600);
}
void loop ()
{
Serial.print ("NUM1 ---");
Serial.print (analogRead (0));
Serial.println ();
Serial.print ("NUM2 ---");
Serial.print (analogRead (1));
Serial.println ();
}
Open the serial monitor, you can see the value changes with the slider slide change
Wiring instructions: Connect the main controller to the main controller according to the standard interface of the sensor module. The symbol "G" is connected to the "ground", "V" to "5V" and "S" to the "Arduino" A0 and A1 pins of the main controller. Burn the test program.
test program:
void setup ()
{
Serial.begin (9600);
}
void loop ()
{
Serial.print ("NUM1 ---");
Serial.print (analogRead (0));
Serial.println ();
Serial.print ("NUM2 ---");
Serial.print (analogRead (1));
Serial.println ();
}
Open the serial monitor, you can see the value changes with the slider slide change
Package Included:
1 x 10K Double Row Sliding Linear Electronic Block Module