-
Notifications
You must be signed in to change notification settings - Fork 5
Analog_Rotation_Sensor_V1_(SKU__DFR0054)
Angelo edited this page Sep 21, 2016
·
3 revisions
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.
- Interface type: Analog
- 300 degree rotation sensor
The definition of gas sensor pin is
- Signal Output
- GND
- Power
// # 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);
}
shopping analog rotation sensor v1 (sku: dfr0054) category: Product Manual category: DFR Series category: Sensors category: Source category: Diagram