I want to calculate the current passing in the wall socket using iphone.I am using CMMotionmanagerFramework and i got X,Y,Z values with that values i can calculate the magnetic field across the surroundings by using those values i want to calculate the voltage level of the wall socket. Please provide me the answer.
How to calculate the voltage value for current from the wall socket using iphone magnetometer values?
669 Views Asked by Romance At
1
There are 1 best solutions below
Related Questions in IPHONE
- UIWebView Screen Fitting Issue
- ios responsive design not working (too wide in portrait orientation)
- Setting View orientation to portrait is ignored
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- What is the limit for number of subscribers to a stream(publisher's) in opentok/tokbox iOS SDK?
- How to generate request format for WCF web service method for Mac and iPhone
- Difference between gethostname() and [NSProcessInfo hostName]?
- How to force close ipad/iphone keypad when input element is not focused using JS?
- iOS app rejected because of in-app purchase
- iOS coordinates for iPad and iPhone game using spritekit
- What is the best practice when making a storyboard for iPhone and iPad?
- Labels properties changing in Xcode
- Terminating app due to uncaught exception
- Exchange plist data between 2 iPad using iCloud
Related Questions in MAGNETOMETER
- CMDeviceMotion returns 0 values for magnetic field
- iOS orientation estimation and heading error
- Compass Heading from Magnetometer on other axis
- How do I get the angle of the phone relative to the Earth's magnetic field?
- Magnet script for UNITY 3D
- Using accelerometer and magnetic sensor to detect the directions
- CMMotionManager not delivering any values
- Trying to find distance using a 9dof imu
- Is Apple's iPhone magnetometer calibration working properly?
- Detect tilting and shaking of Android device via accelerometer and magnetic field sensors
- iOS - Interpreting the CLHeading's x,y,z values
- Android magnetic sensor
- Angle between North and East from magnetometer values
- Sensor fusion with compass and gyroscope: between 0 and 360 degrees
- What is the maximum frequency for magnetometerUpdateInterval?
Related Questions in CMMOTIONMANAGER
- moving several balls around a board sprite kit Xcode
- Find the direction of motion?
- Measuring tilt with left, right, forward and backward in ios
- CMMotionManager not delivering any values
- CoreMotion - way to determine if motion is disabled in iOS Settings?
- What is the difference between gyroscope rotation data and device motion rotation data?
- iOS - Interpreting the CLHeading's x,y,z values
- jerky motion using CMMotionManager iPhone
- Operations in background
- Motion activity to work in suspended state in ios
- Undefined symbols for CMMotionManager
- Rotating an UIView using UIDynamics and gravity from CMMotionManager
- CMDeviceMotion yaw values unstable when iPhone is vertical
- Accelerations to Velocity in iOS - wrong sign
- Can I rely on this "default" update interval (accelerometer) with this code?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The magnetic field strength gives you the electric field strength in volts per meter, related to the velocity of the electrons. The velocity of the electrons is known as the drift velocity, and is related to the current. The electric field strength depends on the charge density in the wire, which should be a constant you can find for the wire you're using, and the distance from the detector to the wire.
So your magnetic field strength depends on a bunch of constants related to the physical arrangement of your problem and the current in the wire. You can derive that using your iPhone's magnetometer, knowledge of its accuracy and some maths. The voltage drop (potential difference) across the outlet is related to the current by the reactance, because you're probably looking at an Alternating Current system so inductances and capacitances play a role, in addition to the resistance.
However you probably don't need to calculate the potential difference, because the electrical utility company will tell you what it is.