Questions tagged [gyroscope]

A gyroscope is a device for measuring or maintaining orientation, based on the principles of angular momentum. Modern high-end Mobile devices have been supplying this device.Thus, many uses are found in Android API and iOS API.

A gyroscope is a device for measuring or maintaining orientation, based on the principles of angular momentum. Mechanically, a gyroscope is a spinning wheel or disk in which the axle is free to assume any orientation. Although this orientation does not remain fixed, it changes in response to an external torque much less and in a different direction than it would without the large angular momentum associated with the disk's high rate of spin and moment of inertia. Since external torque is minimized by mounting the device in gimbals, its orientation remains nearly fixed, regardless of any motion of the platform on which it is mounted.

805 questions
0
votes
1 answer

Moving a ball with accelerometer Windows Phone 8

I'm learning for windows phone 8, and i wanted to write an app where i can move an image using the accelerometer, not a level detector, i want it to move just like in labyrinth games. How would i make this happen? Does anyone have any good…
Erik
  • 799
  • 2
  • 15
  • 27
0
votes
1 answer

Unreliable Gyroscope values after Calibration

I have implemented an application that incorporates the following sensors: Accelerometer Magnetic Field Orientation (deprecated) Gyroscope Gravity This is a sample code of onSensorChanged() method: @Override public void…
npal
  • 529
  • 4
  • 11
0
votes
0 answers

Gyrometer exception handling fails windows phone 8

I was trying to access the Gyrometer capabilities from Windows Phone 8 but a First Chance Exception keeps poping when I try to get a handle to the sensor via Gyrometer::GetDefault(), that I cannot catch it in a "try catch" block. The error message…
Cristi Minica
  • 56
  • 1
  • 5
0
votes
1 answer

CCMotionManager, accelerometerData, gyroData, magnetometerData return nil

I'm working from Apple's Event Handling Guide for iOS. I'm using the pull method described near startAccelerometerUpdates. The pull method is fine for my purposes since I only need to read from the sensor once. I'm getting a nil from the calls to…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
1 answer

if condtions for acceleomter x,y,z and gyroscope x,y,z give me a very quick result, more that i think its true

i am gathering accelerometer and gyroscope data using push methods( startDeviceMotionUpdatesToQueue:withHandler: and startGyroUpdatesToQueue:[NSOperationQueue mainQueue] I compare these raw data with certain thresholds, if it satisfies the…
Dina
  • 467
  • 4
  • 18
0
votes
1 answer

Android Mobile as Gesensor Remote for Google TV

I want to use my android phone as remote for my android tv box or google tv. i want play motion games remotely on google tv remotely using accelerometer of my mobile over the wifi communication.
0
votes
1 answer

Get view to rotate with gyro

I want to rotate my device and have the main view rotate with it, sort of like a compass. I have literally no idea how to do this, I've looked at the developer API intro guide and it doesn't help me at all.
user2623825
  • 115
  • 1
  • 9
0
votes
1 answer

device motion in constrained environment

I am trying to solve a seemingly easy problem related to device motion but couldn't figure out how to solve it. I have a situation where iPhone will move in a circle in the x-y plane. I need to find the angle between the iPhone's x and y axes…
ae262
  • 35
  • 8
0
votes
1 answer

Conflicting JavaScript for gyroscope move and touchmove on iOS, how do I pause one part when the second is in use?

I'm punching above my weight a bit with some JavaScript code on an iOS web app. What I'm doing is moving a layer above another layer using: Gyro and accelerometer data and Touch input. This means I've got two bits of javascript both trying to move…
user2528534
  • 203
  • 3
  • 6
0
votes
1 answer

how to read Gyro data in new thread?

I am developing one APP of reading GYRO data, then save the X,Y,Z value in excel file stored in SD card. I am using the JXL to implement excel write, since the excel write is a resource hog I start new thread for it. my code compiled OK, but when…
hunk
  • 1
  • 1
0
votes
1 answer

Cocos2d for iOS: Gyroscope vs UIAccelleration

I have implemented a space shooter game project with Cocos2d 2.0 and a UIAccelleration controller. The UIAccelleration as some drawbacks: it requires calibration it depends on actual accelleration and hence it could lead to loose sensitivity as it…
mm24
  • 9,280
  • 12
  • 75
  • 170
0
votes
1 answer

Start Gyroscope after button click

alright, I'm new to android so this maybe stupid. But I'm developing a app to get gyro data during camera shutter open and close (so basically gyro starts with camera capture button and ends in camera ShutterCallBack()). The questions is it seems…
Yi Zhang
  • 43
  • 6
0
votes
1 answer

Gyroscope Android

I am beginner to android , I have problem in the following example to print gyroscope values using android. public class Gyro extends Activity implements OnClickListener,SensorEventListener { Button click; SensorManager sm; Sensor…
Gaganpreet Singh
  • 886
  • 1
  • 9
  • 20
0
votes
1 answer

Can I use Python (with pyfirmata) to read and use data from a gyroscope connected to an Arduino?

I have my Arduino hooked up via serial to my computer and can do basic digital writes and stuff to the Arduino with Python (using the pyfirmata library). So what I'd like to know is whether or not I can make use of gyroscopes and accelerometers with…
Robinson
  • 349
  • 1
  • 5
  • 11
0
votes
0 answers

Arduino I²C master reader from ITG3200 gyroscope

I'm using the Energia library which converts Arduino libraries into MSP430 libraries. I connected the gyro into Launchpad and built the circuit with the required pull-up resistors. Here is the example code that came up with Sparkfun gyro: //The Wire…
Barışcan Kayaoğlu
  • 1,294
  • 3
  • 14
  • 35