- ID: enc03r
- Name: ENC03R Single Axis Gyro
- Other Names: Grove Single Axis Analog Gyro
- Category: compass
- Manufacturer: seeed
- Connection: analog
- Kit: robok
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.
System.out.println("Please place the sensor in a stable location, and do not");
System.out.println("move it while calibration takes place");
System.out.println("This may take a couple of minutes.");
System.out.println("Calibration complete. Reference value: " + gyro.calibrationValue());
while (true) {
long val = gyro.value();
double av = gyro.angularVelocity(val);
System.out.println("Raw value: " + val + ", angular velocity: " + av + " deg/s");
Thread.sleep(1000);
}