slide

Electronique Electricité Invention et Schéma

Code Project Arduino and MPU6050 Accelerometer and Gyroscope

 CODE BELLOW/* Arduino and MPU6050 Accelerometer and Gyroscope Sensor */ #include <Wire.h> const int MPU = 0x68; // MPU6050 I2C address float AccX, AccY, AccZ; float GyroX, GyroY, GyroZ; float accAngleX, accAngleY, gyroAngleX, gyroAngleY, gyroAngleZ; float roll, pitch, yaw; float AccErrorX, AccErrorY, GyroErrorX, GyroErrorY, GyroErrorZ; float elapsedTime, currentTime, previousTime; int c = 0; void setup() { Serial.begin(19200); Wire.begin();...

Articles les plus consultés