0

Your Shopping Cart is empty.

  • Arduino Potentiometer module for Sensor Shield Rotation
    • i i
    • images/l/Geeetech_IMG_7641_1.jpg images/l/Geeetech_IMG_7641_1.jpg
    • images/l/Geeetech_IMG_7641_2.jpg images/l/Geeetech_IMG_7641_2.jpg
Arduino Potentiometer module for Sensor Shield Rotation
INFO

SKU:700-001-0122

Shipping Weight:63g

Free Shipping!

$2.80
Qty:
VS
VOTES

Vote for specials.

0 votes

maker-moments

This potentiometer module is a simple knob that provides a variable resistance, which we can read into the arduino board an analog value. By turning the shaft of the potentiometer, we change the input signal to analog pin.

 

Building interactive wok is as easy as pilling bricks, just plug it to our arduino sensor shield with a cable, and make it looks professional and neat. Free cable is included.

 

 

Demo Code

int potPin = 4; // pin for potentiometer

int ledPin = 13; // pin for LED

int val = 0;

void setup() {

pinMode(ledPin, OUTPUT); // state ledPin as an OUTPUT

}

void loop() {

val = analogRead(potPin);

digitalWrite(ledPin, HIGH);

delay(val);

digitalWrite(ledPin, LOW);

delay(val);

login or register to add your words.