Skip to content

Analog_Rotation_Sensor_V1_(SKU__DFR0054)

Angelo edited this page Sep 21, 2016 · 3 revisions

Introduction

Analog Rotation Sensor V1 (SKU: DFR0054) the dfrobot rotation sensor v1 is arduino compatible and can be rotated upto 300-degree. it is based on the potentiometer. with the Arduino sensor expansion board, in combination, it can be very easy to achieve position-dependent interaction with the rotating effect or produce MIDI instrument.

Specification

  • Interface type: Analog
  • 300 degree rotation sensor

Pin Definition

The definition of gas sensor pin is

  1. Signal Output
  2. GND
  3. Power

Analog Sensor 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);
}

image:nextredirectltr.pngGo shopping analog rotation sensor v1 (sku: dfr0054) category: Product Manual category: DFR Series category: Sensors category: Source category: Diagram

Clone this wiki locally