- ID: enc03r
- Name: Single-axis Analog Gyro Module
- Other Names: Grove Single Axis Analog Gyro
- Category: compass
- Manufacturer: seeed
- Connection: analog
- Kit: robok
- Link: http://www.murata.com/en-us/products/productdetail?partno=ENC-03RC-R
UPM module for the ENC03R single axis analog gyro. This gyroscope measures x-axis angular velocity, that is how fast the sensor is rotating around the x-axis. Calibration of the sensor is necessary for accurate readings.
ENC03R sensor constructor
Analog pin to use
Reference voltage to use; default is 5.0 V
Calibrates the sensor by determining an analog reading over many samples with no movement of the sensor. This must be done before attempting to use the sensor.
Number of samples to use for calibration
Update the internal state with the current reading. This function must be called prior to calling angularVelocity() .
Returns the currently stored calibration value
Current calibration value
Computes angular velocity based on the value and stored calibration reference.
Computed angular velocity
Set sensor offset. The offset is applied to the return value before scaling. Default is 0.
Offset to apply to value
Set sensor scale. The return value is scaled by this value after the offset is applied. Default is 1.0.
Scale to apply to value
Get a normalized ADC value from the sensor. The return value will be between 0.0 (indicating no voltage) and 1.0 indicating max voltage (aref). update() must be called prior to calling this function.
The normalized reading from the ADC.