Cod Sursa include I2Cdev.h include MPU6050.h Arduino Wire library is required if I2Cdev I2CDEV_ARDUINO_WIRE implementation is used in I2Cdev.h if I2CDEV_IMPLEMENTATION I2CDEV_ARDUINO_WIRE include Wire.h endif class default I2C address is 0x68 specific I2C addresses may be passed as a parameter here AD0 low 0x68 (default for InvenSense evaluation board) AD0 high 0x69 MPU6050 accelgyro; MPU6050 accelgyro(0x69); 8)); Serial.write((uint8_t)(ax 0xFF)); Serial.write((uint8_t)(ay 8)); Serial.write((uint8_t)(ay 0xFF)); Serial.write((uint8_t)(az 8)); Serial.write((uint8_t)(az 0xFF)); Serial.write((uint8_t)(gx 8)); Serial.write((uint8_t)(gx 0xFF)); Serial.write((uint8_t)(gy 8)); Serial.write((uint8_t)(gy 0xFF)); Serial.write((uint8_t)(gz 8)); Serial.write((uint8_t)(gz 0xFF)); endif blink LED to indicate activity blinkState !blinkState; digitalWrite(LED_PIN, blinkState); } Varianta cu pini Acest produs este disponibil atat in varianta fara pini (ca in pozele de mai sus), cat si in varianta cu pini tata gata lipiti, ca in imaginea de mai jos. Daca doriti varianta cu pini, selectati optiunea Da, cu pini lipiti . Acest lucru va adauga 5 RON la pretul produsului. Daca alegeti varianta cu pini, cea mai simpla conectare cu placa Arduino se face folosind un set de fire mama-tata . Specificatii: Output I2C, matrice de rotatie, unghiurile Euler Tensiunea de alimentare : 2.3 – 3.4V Tri-Axis Gyro . Sensibilitate 131 LSBs dps . Scala 250, 500, 1000, and 2000dps Tri-Axis accelerometru . Scala of 2g, 4g, 8g and 16g Engine Digital Motion Processing (DMP ) pentru detectarea gesturilor Autocalibrare Senzor de temperatura Linkuri: Schema Eagle Files Datasheet (MPU-6050) Example Code I2Cdevlib Page
Related products
RoboFun
Lumina