GY-91 Sensor; Arduino

From wikiluntti
Revision as of 20:18, 26 November 2022 by Mol (talk | contribs) (→‎Theory)

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

GY-91 includes MPU-9250 circuit which has gyro, accelerometer and compass.

Theory

Example code

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