GY-91 Sensor; Arduino: Difference between revisions

From wikiluntti
Line 17: Line 17:


=== Gyrometer  ===
=== Gyrometer  ===
<syntaxhighlight lang="C" line>
  mySensor.beginGyro();
</syntaxhighlight>
<syntaxhighlight lang="C" line>
  gyroX();
</syntaxhighlight>


=== Magnetometer ===
=== Magnetometer ===

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

Exercises

See Also & References

https://www.cod3v.info/index.php?title=Arduino_OKY3259-1_GY-BMP280