Analog_Rotation_Sensor_V1__SKU__DFR0054_-DFRobot

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 a simple potentiometer. With the Arduino sensor expansion board, it very easily achieve position-dependent interaction with a rotattion trigger or even produce MIDI instrument.

Specification

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

More Documents

DFshopping_car1.png Get Analog Rotation Sensor V1 from DFRobot Store or DFRobot Distributor.

Category: DFRobot > Sensors & Modules > Sensors > Potentiometers

category: Product Manual category: DFR Series category: Sensors
category: Source category: Diagram

Turn to the Top