ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Hakan Bey's profile - activity

2017-09-19 16:22:09 -0500 received badge  Taxonomist
2016-08-05 18:10:39 -0500 received badge  Famous Question (source)
2016-08-05 18:10:39 -0500 received badge  Notable Question (source)
2016-08-05 05:58:15 -0500 received badge  Famous Question (source)
2016-07-14 09:50:20 -0500 received badge  Popular Question (source)
2016-07-14 09:50:20 -0500 received badge  Famous Question (source)
2016-07-14 09:50:20 -0500 received badge  Notable Question (source)
2016-03-28 00:34:53 -0500 received badge  Famous Question (source)
2015-12-21 18:28:24 -0500 received badge  Notable Question (source)
2015-12-16 19:08:47 -0500 received badge  Popular Question (source)
2015-12-15 06:00:55 -0500 received badge  Notable Question (source)
2015-12-15 02:49:16 -0500 commented question How to calculate running speed using accelerometer sensor ?

Okey, I will try thanks.

2015-12-14 11:15:29 -0500 received badge  Popular Question (source)
2015-12-14 07:24:38 -0500 asked a question How to calculate running speed using accelerometer sensor ?

Hi guys,

I am working with accelerometer sensor. I would like to turn speed value that you got. what should I do ? can you help me

Me code;

 #include<Wire.h>
const int MPU_addr=0x68;  // I2C address of the MPU-6050
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;

void setup(){
  Wire.begin();
  Wire.beginTransmission(MPU_addr);
  Wire.write(0x6B);  // PWR_MGMT_1 register
  Wire.write(0);     // set to zero (wakes up the MPU-6050)
  Wire.endTransmission(true);
  Serial.begin(57600);
}
void loop(){
  Wire.beginTransmission(MPU_addr);
  Wire.write(0x3B);  // starting with register 0x3B (ACCEL_XOUT_H)
  Wire.endTransmission(false);
  Wire.requestFrom(MPU_addr,14,true);  // request a total of 14 registers
  AcX=Wire.read()<<8|Wire.read();  // 0x3B (ACCEL_XOUT_H) & 0x3C (ACCEL_XOUT_L)    
  AcY=Wire.read()<<8|Wire.read();  // 0x3D (ACCEL_YOUT_H) & 0x3E (ACCEL_YOUT_L)
  AcZ=Wire.read()<<8|Wire.read();  // 0x3F (ACCEL_ZOUT_H) & 0x40 (ACCEL_ZOUT_L)
  Tmp=Wire.read()<<8|Wire.read();  // 0x41 (TEMP_OUT_H) & 0x42 (TEMP_OUT_L)
  GyX=Wire.read()<<8|Wire.read();  // 0x43 (GYRO_XOUT_H) & 0x44 (GYRO_XOUT_L)
  GyY=Wire.read()<<8|Wire.read();  // 0x45 (GYRO_YOUT_H) & 0x46 (GYRO_YOUT_L)
  GyZ=Wire.read()<<8|Wire.read();  // 0x47 (GYRO_ZOUT_H) & 0x48 (GYRO_ZOUT_L)
  Serial.print("AcX = "); Serial.print(AcX);
  Serial.print(" | AcY = "); Serial.print(AcY);
  Serial.print(" | AcZ = "); Serial.print(AcZ);
  Serial.print(" | Tmp = "); Serial.print(Tmp/340.00+36.53);  //equation for temperature in degrees C from datasheet
  Serial.print(" | GyX = "); Serial.print(GyX);
  Serial.print(" | GyY = "); Serial.print(GyY);
  Serial.print(" | GyZ = "); Serial.println(GyZ);

Serial.print("HIZ:");Serial.println(sqrt( AcX^2 + AcY^2 + AcZ^2));      


  delay(333);
}

And me values Arduino com;

AcX = 0 | AcY = 0 | AcZ = 0 | Tmp = 36.53 | GyX = 0 | GyY = 0 | GyZ = 0
HIZ:1.41
AcX = 1112 | AcY = 15716 | AcZ = -3776 | Tmp = 26.27 | GyX = -624 | GyY = 2157 | GyZ = -1428
HIZ:nan
AcX = 976 | AcY = 15700 | AcZ = -4280 | Tmp = 26.46 | GyX = -493 | GyY = 266 | GyZ = -177
HIZ:nan
AcX = 900 | AcY = 15660 | AcZ = -4176 | Tmp = 26.46 | GyX = -522 | GyY = 287 | GyZ = -157
HIZ:nan
2015-12-09 06:07:00 -0500 received badge  Notable Question (source)
2015-12-09 06:07:00 -0500 received badge  Famous Question (source)
2015-12-09 05:47:19 -0500 commented question Use a gyro/accelerometer with Arduino

Akif Meraba, sordum oraya da net bir cevap gelmedi buraya yönlendirdi bi iki arakdaşda ondan dolayı sordum.

2015-12-09 02:28:05 -0500 asked a question Use a gyro/accelerometer with Arduino

Hi guys, I am working on the project Accelerometer. I used= Arduino IDE 1.5 and GY 521 accelometer. But library does not see the MP 6050. I got the address library https://github.com/jrowberg/i2cdevlib... .

And I received Error: "sketch_dec09a.ino:3: fatal error: MPU6050.h: No such file or directory compilation terminated."

Me code;

> #include <Servo.h>
> #include <Wire.h>
> #include <I2Cdev.h>
> #include <MPU6050.h>
> 
> MPU6050 mpu;
> 
> int16_t ax, ay, az; int16_t gx, gy,
> gz;
> 
> Servo myservoY; Servo myservoX;
> 
> int valY; int prevValY;
> 
> int valX; int prevValX;
> 
> void setup()  {   Wire.begin();  
> Serial.begin(38400);  
> Serial.println("Initialize MPU");  
> mpu.initialize();  
> Serial.println(mpu.testConnection() ?
> "Connected" : "Connection failed");  
> myservoY.attach(9);  
> myservoX.attach(10); } void loop()  { 
> mpu.getMotion6(&ax, &ay, &az, &gx,
> &gy, &gz);   valY = map(ay, -17000,
> 17000, 0, 179);   valX = map(ax,
> -17000, 17000, 0, 179);   if (valY != prevValY)   {
>     myservoY.write(valY);
>     prevValY = valY;   }
> 
>   if (valX != prevValX)   {
>     myservoX.write(valX);
>     prevValX = valX;   }   delay(50); }
2015-11-25 18:52:31 -0500 received badge  Popular Question (source)
2015-11-20 03:28:57 -0500 asked a question How to do Android and Arduino bidirectional communication?

I'm doing an android and arduino communication project. I provide communication I am writing to give android the arduino. How do I write from android Arduino? Does anyone have an idea? Thanks.

void loop()
{    
    Usb.Task();

    if (adk.isReady()) {      
        adk.read(&bytesRead, RCVSIZE, buf); // read data into bufRead array
        if (bytesRead > 0) {
          if (parseCommand(buf[0]) == 1) {// compare received data
            // Received "1" - turn on LED
            digitalWrite(LED_PIN, HIGH);
          } else if (parseCommand(buf[0]) == 0) {
            // Received "0" - turn off LED
            digitalWrite(LED_PIN, LOW); 
          }


I write code, I want to come here





       } else {
      digitalWrite(LED_PIN, LOW);
    }  

    delay(10);
}
2015-10-13 18:53:44 -0500 received badge  Famous Question (source)
2015-09-17 08:58:40 -0500 received badge  Popular Question (source)
2015-09-02 17:21:02 -0500 received badge  Notable Question (source)
2015-09-02 17:21:02 -0500 received badge  Popular Question (source)
2015-07-29 03:53:18 -0500 commented question Package was not found!

okey thanks

2015-07-29 01:18:03 -0500 received badge  Supporter (source)
2015-07-29 00:58:39 -0500 received badge  Popular Question (source)
2015-07-28 08:46:19 -0500 asked a question Package was not found!

Hii guys, I'm working with OpenCV4Android. I have any problem with my simulation. I work with windows8, android studio, android-sdk and OpenCV-android-sdk. When I will run the example program (OpenCV sample) in Emulator (AVD android API 22), show message "package not found" - "OpenCV Manager Package was not found! Try to install it?" , after I click* "yes"* , then show message "OpenCV Manager" - "package installation failed".

can you help me friends...

2015-07-28 01:33:01 -0500 received badge  Enthusiast
2015-07-27 09:45:49 -0500 asked a question Error:Execution failed for task ':app:compileDebugNdk'

Hi guys,

I’m working on a project to view 3D objects using PTAM library. When executing the project, I get the error: “Error:Execution failed for task ':app:compileDebugNdk'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\HAKAN\AppData\Local\Android\ndk\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 2"

What would be the solution for this?

Thanks.

2015-07-27 02:22:04 -0500 asked a question error: package org.opencv.android does not exist

Hi guys,

I’m working on a project to view 3D objects using PTAM library. When executing the project, I get the error: “error: package org.opencv.android does not exist." What would be the solution for this? OpenCV downloaded the android SDK and have included the project. But I got the same error. What would be the solution for this? Thanks.

2015-07-20 05:44:55 -0500 asked a question PTAM Error

Hi guys,

I’m working on a project to view 3D objects using PTAM library. When executing the project, I get the error: “java.lang.unsatisfiedlinkerror.". What would be the solution for this? How can I run PTAM on Android? Thanks.