(SKU:RB-02S071) Slide Sensor v1.0

From ALSRobot-Wki
Jump to: navigation, search
Htcgq.jpg

Contents

Product overview

Slide Sensor v1.0 Sensor module is Harbin aosong robot technology co., LTD., 2013, the latest research and development, exclusive production and sales. Based on straight slide potentiometer position sensor, which can be combined with the Arduino sensor expansion board, can realize the interaction between location change related works. Using double straight slide potentiometer, has two output ports, cable casual side use effect is the same, is to do a backup.

specification

  1. Working voltage:DC 5v
  2. output signal:Analog signal
  3. Compatible with sensors extension board I/O
  4. Plane dimension:86×22.5
  5. weight:26g

Method of use

Pin definition

  • S:(Signal)
  • +:(VCC)
  • -:(GND)

Connection here

S ports from the I/O port of the controller. + and - received power of + 5 v &gnd respectively.

Htcgq1.jpg

Application of routine

In accordance with the procedures will be slider sensors connected into the controller of A0 mouth sliding slider to observe the serial port output values.

sample code

void setup() {
Serial.begin(9600); 
}
void loop() {
int sensorValue = analogRead(A0); 
Serial.println(sensorValue);
delay(10);
 } 

Application effect

Open the program downloaded to the controller, the Arduino IDE serial port monitor window, sliding straight slide potentiometer can see watch window output analog value changes.

Products related to recommend

Buy address:[1]

Personal tools
Namespaces

Variants
Actions
Navigation
Tools