Introduction
When things rotate around an axis, they have what's called angular velocity, which is a measurement of how fast it is spinning around that axis. A gyroscope can be used to measure angular velocity.Â
In this guide, learn to use the ShakeUp's built-in gyroscope with the Arduino IDE and plot its measurements in the Serial Plotter.
Complete this guide to get started with using the gyroscope.
-
-
-
-
#include <LittleBird_ICM20689.h> LittleBird_ICM20689 motion; void setup() { Serial.begin(115200); motion.begin(); motion.init(); motion.calibrate(); } void loop() { Serial.print(motion.getGyroX()); delay(10); }
-
-
#include <LittleBird_ICM20689.h> LittleBird_ICM20689 motion; void setup() { Serial.begin(115200); motion.begin(); motion.init(); motion.calibrate(); } void loop() { Serial.print(motion.getGyroX()); Serial.print(" "); Serial.print(motion.getGyroY()); Serial.print(" "); Serial.println(motion.getGyroZ()); delay(10); }
-
-