Categorii




   Comanda Direct Furnizor
   Consultanta Tehnica
   Ticket Garantie
   Problema Livrare
   Retur Produse
   Feedback
   Verifica Status


Accelerometru + Giroscop IMU MPU 6050

Accelerometru + Giroscop IMU MPU 6050
Brand: Sparkfun
Cod Produs: SEN-IMU-01 8
Stoc : 0 buc (produsul nu se afla in stoc in acest moment)
4 bucati au fost comandate la furnizor in data de 10-07-2019. Le asteptam sa soseasca in jurul datei de 31-07-2019 (data estimata, data exacta depinde mult de modul cum decurg formalitatile vamale).
Comanda acum produsul ca sa fie deja rezervat pentru tine cand va ajunge in stoc. Va ajunge la tine cu transport gratuit in momentul cand revine in stoc (te vom suna inainte de livrare ca sa reconfirmam comanda).
Pret: 139 RON (TVA inclus)
Cu pini ?:


Cantitate:  

Accelerometru + Giroscop MPU 6050.

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); // <-- use for AD0 high

int16_t ax, ay, az;
int16_t gx, gy, gz;



// uncomment "OUTPUT_READABLE_ACCELGYRO" if you want to see a tab-separated
// list of the accel X/Y/Z and then gyro X/Y/Z values in decimal. Easy to read,
// not so easy to parse, and slow(er) over UART.
#define OUTPUT_READABLE_ACCELGYRO

// uncomment "OUTPUT_BINARY_ACCELGYRO" to send all 6 axes of data as 16-bit
// binary, one right after the other. This is very fast (as fast as possible
// without compression or data loss), and easy to parse, but impossible to read
// for a human.
//#define OUTPUT_BINARY_ACCELGYRO


#define LED_PIN 13
bool blinkState = false;

void setup() {
  // join I2C bus (I2Cdev library doesn't do this automatically)
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
  Wire.begin();
#elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE
  Fastwire::setup(400, true);
#endif

  // initialize serial communication
  // (38400 chosen because it works as well at 8MHz as it does at 16MHz, but
  // it's really up to you depending on your project)
  Serial.begin(38400);

  // initialize device
  Serial.println("Initializing I2C devices...");
  accelgyro.initialize();

  // verify connection
  Serial.println("Testing device connections...");
  Serial.println(accelgyro.testConnection() ? "successful" : "failed");

  // configure Arduino LED for
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  // read raw accel/gyro measurements from device
  //accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
  // these methods (and a few others) are also available
  accelgyro.getAcceleration(&ax, &ay, &az);
  //accelgyro.getRotation(&gx, &gy, &gz);

#ifdef OUTPUT_READABLE_ACCELGYRO
  // display tab-separated accel/gyro x/y/z values
  Serial.print("a/g:\t");
  Serial.print(ax); 
  Serial.print("\t");
  Serial.print(ay); 
  Serial.print("\t");
  Serial.print(az); 
  Serial.print("\t");
  Serial.print(gx); 
  Serial.print("\t");
  Serial.print(gy); 
  Serial.print("\t");
  Serial.println(gz);
#endif

#ifdef OUTPUT_BINARY_ACCELGYRO
  Serial.write((uint8_t)(ax >> 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

Scrie un review / pune o intrebare in zona de mai jos.

Intrebarea / review-ul tau va fi publicata pe site in cel mai scurt timp posibil (pe langa intrebarile scrise de clienti, cu acest formular mai interactioneaza si unii boti si servicii de spam automate care incearca sa ne vanda Viagra, postari pe care este necesar sa le filtram manual :)
.

Numele tau


Adresa ta de email (nu o vom face publica, nu va fi publicata nicaieri pe site)


Intrebarea / review-ul tau

Rating: Bad           Good


Introdu codul in caseta de mai jos:



Robofun © 2019