Expand menu
0
Cart
Home
Products
Sensors
Semiconductors
Passive Components
Connectors
Power
Electromechanical
Optoelectronics
Circuit Protection
Integrated Circuits - ICs
Main Products
Manufacturers
Blog
Services
About OMO
About Us
Contact Us
Check Stock
DFR0053
P1-P3
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 potent
iometer position sensor and can
be combined easily with the Arduino sensor expan
sion board. The sensor includes two outputs to
allow the user to average the values a
nd minimize random sensor fluctuations.
Specification
Interface Type: Analog
Compatible with the Ardui
no sensor expansion board
Voltage: +5 V
Size: 86X22.5mm
Weight: 15g
PinDefinition
ConnectionDiagram
Analog sensor connection diagram
SampleCode
// # 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 B
y DFRobot © 2008-2017
P1-P3
DFR0053
Mfr. #:
Buy DFR0053
Manufacturer:
DFRobot
Description:
Position Sensor Development Tools Gravity Analog Slide Position SNSR
Lifecycle:
New from this manufacturer.
Delivery:
DHL
FedEx
Ups
TNT
EMS
Payment:
T/T
Paypal
Visa
MoneyGram
Western
Union
Products related to this Datasheet
DFR0053