Rotary Potentiometer Module Arduino Compatible
ARD2-3050
$5.95
QTY | Price |
---|---|
1 | $5.95 |
Description
This Rotary Potentiometer Module produces analog output between 0 and Vcc (5V DC with Arduino) on its D1 connector. The D2 connector is not used. The angular range is 300 degrees with a linear change in value. The resistance value is 10kohm, perfect for Arduino use.
Test Code
int adcPin = A0; // input pin for the potentiometer
int ledPin = 5; // select the pin for the LED
int adcIn = 0; // variable to store value coming from sensor
void setup() {
Serial.begin(9600); // init serial to 9600b/s
pinMode(ledPin, OUTPUT); // set ledPin to OUTPUT
Serial.println(“Rotary Potentiometer Test Code!!”);
}
void loop() {
// read the value from the sensor:
adcIn = analogRead(adcPin);
if(adcIn >= 500) digitalWrite(ledPin,HIGH);
else digitalWrite(ledPin, LOW);
Serial.println(adcIn);
delay(100);
}
Features
- Add a rotary control function to your projects
- 300 degree angular range
- Write code to respond to the 10Kohm pot
- Perfect for controlling LED brightness or servos
Specifications
Colour (Board
Red
Material
PCB
Dimensions
Length (mm)
25
Width (mm)
25
Height (mm)
18.8
Resources
You Might Also Like
All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.