Ashwini kumar sinha
Created February 27, 2019

Smart device for players.

The built in sensors like tap sensor , gyro sensors and other different sensors added to give live data about different player and game over

30
Smart device for players.

Things used in this project

Hardware components

Rapid IoT Prototyping Kit
NXP Rapid IoT Prototyping Kit
×1

Story

Read more

Schematics

Sensors added in Rapid IOT Kit

Code

code for mpu live data visliation

Arduino
#include "Wire.h"
#include "I2Cdev.h" 
#include "MPU6050.h" 

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




void setup() 
{ 
Wire.begin(); 
Serial.begin(38400); 
Serial.println("Initialize MPU"); 
mpu.initialize(); 
Serial.println(mpu.testConnection() ? "Connected" : "Connection failed"); 
  

} 

void loop() 
{ 
mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); 
  Serial.print("\t");
  Serial.print("ax=  ");
  Serial.println(ax);
 
  Serial.print("\t");
  Serial.print("ay=  ");
  Serial.print(ay);

  
 Serial.print("\t");
  Serial.print("az=  ");
 Serial.print(az);


   Serial.print("\t");
  Serial.print("gx=  ");
  Serial.print(gx);
//
//
   Serial.print("\t");
  Serial.print("gy=  ");
  Serial.print(gy);
//
//  
  Serial.print("\t");
  Serial.print("gz=  ");
  Serial.print(gz);





delay(60);

}

Credits

Ashwini kumar sinha

Ashwini kumar sinha

29 projects • 71 followers
Ashwini kumar sinha a Robotic lover and electronics hobbyist. Works at EFY-I

Comments