How do I detect when someone shakes an iPhone?
I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this? ...
I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this? ...
I have an application that uses the accelerometer. Sometimes, the application will launch without the accelerometer data updating. Relaunching the app, sometimes the problem persist, sometimes it doesn't. And even weirder, sometimes I can try 10 times and everything works as expected. Is this a bug, or maybe something I am missing. Debug...
Using the accelerometer output, how do I determine if the user (iphone mounted on waist) is walking? Looking for a good algorithm to determine if the user is walking to determine activity transitions- standing-to-walking or walking-to-standing. please help. Thank you for your time. ...
I can't seem to find any documentation online about this, and what I am googling is giving me a lot of conflicting information... ...
Hi to all I am developing one game where I want to move UIImageView based on accelerometer. When I rotate iphone device left to right or right to left the UIImageView have to rotate in particular angle. It's moving also but the problem occurs when I play background sound because of that sound, it sends some acceleration point even if m...
I have created an accelerometer variable: UIAccelerometer *objAccelerometer; that I am associating to the sharedAccelerometer instance: objAccelerometer = [UIAccelerometer sharedAccelerometer]; objAccelerometer.delegate = self; When I release this view (to load a different view), the accelerometer instance causes the program to d...
I want to do this: If the device moves (accelerometer values change), then I want to adjust some values in my view according to that movement. Would I invoke a method every time an accelerometer value changes? I believe that would be a bad idea, since they might refresh too often. ...
I think that there are some issues with the earth Gravity, so I wonder if there are any examples where the accelerometers work by subtracting these. ...
I have an view controller class. I want to do some things in my view when the accelerometer detects movement and calls the accelerometer:didAccelerate: method in the delegate object. That delegate object is the problem here in my brain. Currently, my brain is freezed and I don't get it what would be better. Let me know what you think! ...
I'm asking them at 50Hz / 50 times per second for data. When I suddenly flip the device on the x-axis by 90 degrees while the device was flat on a table with display facing up bevore, the values move pretty slowly to the "target" value for that position. Now the weird thing is: If I increase the measurement-rate, the value will move fas...
Hi gurus, Is it possible to simulate movement (ie the accelerometers), microphone and camera in the XCode simulator? If so, how do you do it? If not, are there any XCode addins or third party apps that do it? (apart from downloading to an actual iPhone of course). Thanks in advance! ...
I have some animations happening upon fine acceleration detections. But when the user sits in a car or is walking it may get annoying. Basically, all that stuff has to be disabled automatically as soon as there is too much vibration or shaking. Conceptually, I think that it's very hard to filter those vibrations out , since the "vibrati...
I'm wanting to detect the orientation of the iPhone at 45 degree increments. Ideally I'd like to be able to get the angle of orientation along any axis. The detection I need to do is similar to how Trism for the iPhone flashes an arrow towards the current bottom position of the screen when orientation changes. I have something coded up...
Ola Folks, This might not be the right place for this. Let me know where I should post if I should post it elsewhere. I want to get the orientation of the device. I am thinking I can use something like this: float fAngleX = atan2(acceleration.y, acceleration.z); float fAngleY = atan2(acceleration.x, acceleration.z); float fAngleZ = ...
I have an navigation-based app that I want to use the accelerometer to detect a shake and cause a scroll view to scroll to the next page. I have added accelerometer code to the view controller of my scrollView, and it works great; a shake calls my page change method. But when I unload the scrollViewController from the navigation stack th...
I am using the accelerometer to scroll multiple subViews in a UIScrollVIew. I want the view (portrait orientation) to scroll to the right when the user flicks the iPhone to the right, and scroll to the left when the device is flicked to the left. I thought I could do that just by noting positive or negative x acceleration values, but I...
I have a page UIScrollView that will scroll 1 page left or right depending on the tilt of the phone. I would also like to implement "Shake for a random page", but cannot figure out how to do the logic for differentiating a shake motion and a x-axis tilt. Can these two motions be used in conjunction with one another? I don't need anyth...
During the free fall the iphone is supposed to send acceleration values as 0 on all the three axis. So how to detect the distance covered by the iphone? ...
Hi, I have a new Toshiba Satellite Pro S300 laptop (running Windows XP) which sports a 3D accelerometer for HDD protection. I'd like to tap into the data sent by this sensor. Older Toshiba laptop/Tablets had a DLL that could be accessed to extract the acceleration data. Unfortunately, the S300 does not seem to have this DLL (The DLL hac...
I'm sorry if my question title seems fundamentally uninformed. Let me explain what I am trying to do. I have defined the following UIViewController subclass, which fires up LocationManager, and has a Start Recording button to save a GPS track. Now I would like to also fire up the accelerometer and allow the user to record that as well....