Hi!
I'm having some strange string output in the MPU6050 raw values
The code:
#include "Wire.h"
#include "I2Cdev.h"
#include "MPU6050.h"
MPU6050 mpu;
int16_t ax, ay, az;
int16_t gx, gy, gz;
float sensitivityAccel= 4096.0;
int fuerza;
int PinSensorFuerza=A0;
float x,y,z;
int periodo=50;
void setup()
{
Wire.begin();
Serial.begin(9600);
mpu.initialize();
mpu.setFullScaleAccelRange(MPU6050_ACCEL_FS_8);
}
void loop()
{
mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
fuerza=analogRead(PinSensorFuerza);
Serial.print(ax);
Serial.print(",");
Serial.print(ay);
Serial.print(",");
Serial.print(az);
Serial.print(",");
Serial.println(fuerza);
delay(periodo);
}
The first output line has this problem:
ð0.06,-0.67,3.69,15
You can see a strange string apearing always first.
As i'm importing the data to Qt I need it to be only ints.
Someone knows whats happening.
Thanks!