ADXRS610 Class
- ID: adxrs610
- Name: Gyro Breakout Board (300 Degrees/second)
- Other Names: ADXRS610
- Category: compass
- Manufacturer: dfrobot
- Link: http://www.dfrobot.com/index.php?route=product/product&product_id=642
- Connection: analog
The ADXRS610 is a MEMS based single axis gyroscope with a range of +/- 300 degrees/sec. It also incorporates a temperature sensing unit that can be used for advanced calibration.
This sensor returns an analog voltage proportional to the rotation about the Z-axis in degrees/sec. The temperature component returns a proportional analog values in degrees C.
This driver was developed using the DFRobot ADXRS610 Gyro Breakout board.
Item Index
Methods
ADXRS610
-
dPin
-
tPin
-
aref
ADXRS610 constructor
Parameters:
-
dPin
NumberAnalog pin to use for DATAOUT
-
tPin
NumberAnalog pin to use for temperature measurement
-
aref
NumberAnalog reference voltage; default is 5.0 V
Returns:
getDataVolts
()
Number
Returns the voltage detected on the DATA analog pin
Returns:
The detected voltage
getTemperatureVolts
()
Number
Returns the voltage detected on the TEMP analog pin
Returns:
The detected voltage
setDeadband
-
deadband
This method allows you to specify a deadband region around the zero point of the gyro (at rest). This can be used as a primitive filter to ignore movment around the zero point.
Parameters:
-
deadband
NumberThe voltage around the zero point which will be ignored
setZeroPoint
-
zeroPoint
Set the zero point. This is the point measured and averaged when the sensor is not moving. It is set at construction time (averaged over a number of samples), but can be overridden here.
Parameters:
-
zeroPoint
NumberThe averaged zero point of the sensor at rest
calibrateZeroPoint
-
samples
This method samples the data pin samples times to produce an average. This value can then be used as the zero point ( setZeroPoint() ).
Parameters:
-
samples
Numberthe number of samples to take an average over. The default is 50.
Returns:
the average of the reading over samples times.
getZeroPoint
()
Number
Return the zero point value.
Returns:
the current zero point value
getTemperature
()
Number
Return the measured temperature in Celsius. Note, the datasheet says that this value is very repeatable, but is not an accurate absolute temperature.
Returns:
the current temperature in C
getAngularVelocity
()
Number
Return the measured angular velocity in degrees/sec.
Returns:
the current angular velocity in degrees/sec