Ks0279 keyestudio Slide Potentiometer Module for Arduino: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 49: Line 49:
==Resource ==
==Resource ==
'''PDF File:''' <br>
'''PDF File:''' <br>
http://www.keyestudio.com/files/index/download/id/1501555111/
https://drive.google.com/open?id=1lPlAY3qC57W6g-BVaTOS7uql7x34hsAi


==Get One Now ==
==Get One Now ==

Revision as of 13:35, 16 November 2017

Keyestudio Slide Potentiometer Module for Arduino


thumb

Introduction

Keyestudio slide potentiometer module using high-quality sliding electrical appliance, has the performances of stability and reliability. It is a dual analog output, and outputs 0-VCC analog voltage signal.


thumb


Specification

  • Size:27*90*30mm
  • Weight:14.7g
  • Voltage:3.3V、5V
  • Port:analog quantity
  • Numerical value of resistance:10K
  • Platform:Arduino、microcontrollers、ARM and other microcontrollers'platform.


thumb

Connection Diagram


thumb

Sample Code

void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  Serial.println(sensorValue);
  delay(1);        // delay in between reads for stability
}

Test Result

Connecting the wire and burning the program, after powered-on, please open the serial monitor, and you can see the analog value of analog port A0, as the figure shown below. When sliding the slide pole, the value ranges from 0 to 1023.


thumb

Applications


thumb

Resource

PDF File:
https://drive.google.com/open?id=1lPlAY3qC57W6g-BVaTOS7uql7x34hsAi

Get One Now

http://www.keyestudio.com/keyestudio-slide-potentiometer-module-for-arduino-black-environmental-friendly.html