Analog Slide Position Sensor (SKU: DFR0053)
Contents
1 Introduction
2 Specification
3 Pin Definition
4 Connection Diagram
5 Sample Code
Introduction
The DFRobot Slide Position Sensor is based on straight-slip potentiometer position sensor and can
be combined easily with the Arduino sensor expansion board. The sensor includes two outputs to
allow the user to average the values and minimize random sensor fluctuations.
Specification
Interface Type: Analog
Compatible with the Arduino sensor expansion board
Voltage: +5 V
Size: 86X22.5mm
Weight: 15g
Pin Definition
Connection Diagram
Analog sensor connection diagram
Sample Code
// # Editor
: Lauren from DFRobot
// # Date
: 30.12.2011
// #
// # Editor
: Lauren from DFRobot
// # Date
: 17.01.2012
// # Product name: Rotation Sensor v1/v2 or Analog Slide Position Sensor
// # Product SKU : DFR0054/DFR0058/DFR0053
// # Version
: 1.0
// # Description:
// # the sample to drive some analog sensors
// # Connection:
// #
Signal output pin
-> Analog pin 0
// #
void setup()
{
Serial.begin(9600);
//Set serial baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0);
//Read slider value from analog 0
Serial.println(val,DEC);//Print the value to serial port
delay(100);
}
Powered By DFRobot © 2008-2017
很抱歉,暂时无法提供与“DFR0053”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+139.61213
- 2+130.77591
- 国内价格
- 1+62.95637
- 2+57.92561
- 3+55.56594
- 6+54.76342