GY-91 Sensor; Arduino: Difference between revisions
From wikiluntti
| Line 28: | Line 28: | ||
=== Magnetometer === | === Magnetometer === | ||
<syntaxhighlight lang="C" line> | |||
mySensor.beginMag(); | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="C" line> | |||
magX(); | |||
</syntaxhighlight> | |||
== Exercises == | == Exercises == | ||
Revision as of 20:15, 26 November 2022
Introduction
Uisng GY-91 sensor with Asukiaa's MPU9250 library. Install the library using Arduino IDE Manage Libraries. More information about the library is at https://github.com/asukiaaa/MPU9250_asukiaaa
Theory
Accelerometer
mySensor.beginAccel();
accelX();
Gyrometer
mySensor.beginGyro();
gyroX();
Magnetometer
mySensor.beginMag();
magX();
Exercises
See Also & References
https://www.cod3v.info/index.php?title=Arduino_OKY3259-1_GY-BMP280