This document contains FAQs about the eCompass API. It addresses questions about converting sensor readings to magnetic units, defining the sensor coordinate system to match the phone, differences between single and dynamic calibration APIs, correct calibration procedures, accuracy reporting definitions, and when to use the magnetic bias setting function.
Comparators are measurement tools used for several purposes: (i) inspecting components at high rates during mass production; (ii) setting standards for working gauges; (iii) inspecting newly purchased gauges. There are several types of comparators including mechanical, optical, electrical, pneumatic, and fluid displacement comparators used for different applications. Common mechanical comparators use lever, rack and pinion, or cam and gear mechanisms to amplify measurements.
This document discusses different types of comparators used to measure dimensions. It describes mechanical, mechanical-optical, electrical, pneumatic, fluid displacement, projection, multi-check comparators, and automatic gauging machines. Comparators indicate differences between a workpiece and standard, rather than providing an actual measurement. They must provide accurate, fast readings and withstand temperature changes. Projection comparators enlarge shadows for complex part inspection. Multi-check comparators simultaneously measure multiple dimensions for efficiency. Automatic gauging machines continuously transport and inspect parts to identify defects.
The document discusses a detection system project using an EV3 robot and Ruby. The system uses a SonarSensor to measure distance and controls an LED based on the readings. It follows a UML design with main tasks like measurement and detection that trigger LED status changes. The code is open source on GitHub for a Ruby application that runs on the EV3 and utilizes its sensors and actuators.
This document summarizes several projects completed by Chun Ho Wong between 2014-2015 including calibrating sensors, developing a walking robot called "The Spider", building models of cruise control and adaptive cruise control systems using Arduinos, and creating an autonomous "Rocket Turtle" that could track and retrieve colored objects using a myRIO microprocessor and LabVIEW software. CAD drawings and prototypes were created for each project.
This document discusses how to use API plug gages to measure API tubing, casing, and line pipe couplings. It explains that there are two common designs for API plug gages - one with removable keys and one with a shoulder. Both designs provide minimum, maximum, and basic scribe lines for visual verification of standoff measurements. The document then provides the required standoff measurements between the plug gage and coupling according to API specifications. It concludes by noting that the provided standoff information is nominal and the actual gage certification should be used for precise measurements according to API 5B.
The document discusses different types of comparators. It describes comparators as devices that indicate the differences in size between a standard part and a workpiece being measured through magnification. The document outlines 10 characteristics of good comparators and discusses the need for comparators in mass production applications requiring precise, fast measurements. It then describes seven common types of comparators, including mechanical, optical, electrical, pneumatic, and others. Several specific comparator models are explained in detail, focusing on their working principles and typical applications.
This document contains FAQs about the eCompass API. It addresses questions about converting sensor readings to magnetic units, defining the sensor coordinate system to match the phone, differences between single and dynamic calibration APIs, correct calibration procedures, accuracy reporting definitions, and when to use the magnetic bias setting function.
Comparators are measurement tools used for several purposes: (i) inspecting components at high rates during mass production; (ii) setting standards for working gauges; (iii) inspecting newly purchased gauges. There are several types of comparators including mechanical, optical, electrical, pneumatic, and fluid displacement comparators used for different applications. Common mechanical comparators use lever, rack and pinion, or cam and gear mechanisms to amplify measurements.
This document discusses different types of comparators used to measure dimensions. It describes mechanical, mechanical-optical, electrical, pneumatic, fluid displacement, projection, multi-check comparators, and automatic gauging machines. Comparators indicate differences between a workpiece and standard, rather than providing an actual measurement. They must provide accurate, fast readings and withstand temperature changes. Projection comparators enlarge shadows for complex part inspection. Multi-check comparators simultaneously measure multiple dimensions for efficiency. Automatic gauging machines continuously transport and inspect parts to identify defects.
The document discusses a detection system project using an EV3 robot and Ruby. The system uses a SonarSensor to measure distance and controls an LED based on the readings. It follows a UML design with main tasks like measurement and detection that trigger LED status changes. The code is open source on GitHub for a Ruby application that runs on the EV3 and utilizes its sensors and actuators.
This document summarizes several projects completed by Chun Ho Wong between 2014-2015 including calibrating sensors, developing a walking robot called "The Spider", building models of cruise control and adaptive cruise control systems using Arduinos, and creating an autonomous "Rocket Turtle" that could track and retrieve colored objects using a myRIO microprocessor and LabVIEW software. CAD drawings and prototypes were created for each project.
This document discusses how to use API plug gages to measure API tubing, casing, and line pipe couplings. It explains that there are two common designs for API plug gages - one with removable keys and one with a shoulder. Both designs provide minimum, maximum, and basic scribe lines for visual verification of standoff measurements. The document then provides the required standoff measurements between the plug gage and coupling according to API specifications. It concludes by noting that the provided standoff information is nominal and the actual gage certification should be used for precise measurements according to API 5B.
The document discusses different types of comparators. It describes comparators as devices that indicate the differences in size between a standard part and a workpiece being measured through magnification. The document outlines 10 characteristics of good comparators and discusses the need for comparators in mass production applications requiring precise, fast measurements. It then describes seven common types of comparators, including mechanical, optical, electrical, pneumatic, and others. Several specific comparator models are explained in detail, focusing on their working principles and typical applications.
El documento habla sobre las Tecnologías de la Información y Comunicación (TIC), la Internet y el estado del arte. Explica que las TIC permiten procesar, almacenar, resumir e intercambiar información de forma digital. También describe algunos usos de la Internet como la educación a distancia y el comercio electrónico. Finalmente, señala que el estado del arte se refiere a lo más avanzado tecnológicamente y que el dominio y el comercio electrónico están relacionados porque el dominio brinda identidad y recon
Kassim Osman completed an internship and volunteering experience at a school serving immigrant students to fulfill requirements for his Family Social Science degree. Through these experiences, he was able to apply theories like symbolic interactionism to better understand the students, families, and community. While the school lacked diversity, it provided an environment where the students could maintain their cultural identities while receiving an education. Osman reflected that these experiences improved his communication, assessment, and problem-solving skills to work with diverse families and help address their needs.
Este documento presenta ejercicios de puntuación y corrección de textos. Incluye instrucciones para colocar comas, puntos y comas, y cambiar el orden de oraciones en varios párrafos dados. El objetivo es enseñar a los estudiantes a identificar errores de puntuación y corregirlos para mejorar la claridad y comprensión de los textos.
The document discusses the importance of effective communication in the workplace. It notes that communication is key to building understanding between coworkers and achieving goals. Regular communication helps ensure employees have the information they need to do their jobs well and feel part of the team.
Los orígenes de Internet se remontan a la década de 1960 cuando Estados Unidos creó una red exclusivamente militar para garantizar el acceso a la información militar desde cualquier parte del país en caso de un ataque soviético; esta infraestructura se expandió por el mundo para crear la red mundial de computadoras que conocemos hoy, proporcionando un acceso global sin precedentes a la información y comunicación pero también desigualdades en el acceso; Internet también transformó la economía global.
Spectra staff at various venues across the US and Canada participated in charitable holiday events to help those in need. Events included toy drives for Toys for Tots and underprivileged children, an ice skating and light show festival that raised money for a children's advocacy group, preparing meals for a homeless shelter, and decorating an auction tree whose proceeds benefited Meals on Wheels. The document highlights Spectra's efforts to support their local communities during the holidays through charitable events at their venues.
A tether-less legged piezoelectric miniature robot for bidirectional motionhassan hariri
The design exploits the use of mechanical standing waves generated on the metal beam and transmitted to its legs to propel the LPMR forward and backward where the vibrations of legs are similar to the bounding gait locomotion of animals. In our proposed design, a forward and backward motion in one dimensional axis is determined by the mechanical design and placement of the legs of the LPMR, and two operating frequencies for both directions are selected by the designer as well. By simple change in the driving frequency, both forward and backward motion can be achieved.
El documento describe las actividades que se llevarán a cabo en una clase sobre dramatica. Los estudiantes recibirán instrucciones sobre las tareas, verán un video sobre dramatica, subrayarán verbos en un texto, identificarán los verbos en presente, pasado y pasado participio, y compartirán lo que aprendieron con el maestro y sus compañeros. La clase promoverá aprendizajes flexibles, por retos y por competencias.
This document provides an overview of ES6 (ECMAScript 2015) features including: let, const and var; template strings; arrow functions; destructuring; default parameters; rest and spread syntax; iterators; classes; modules; maps, sets, weakmaps and weaksets; promises; and more. It explains each feature and provides code examples to demonstrate usage and differences from ES5. Browser compatibility notes are also included to advise on safe usage of new features across environments.
International Ataturk Alatoo University, International Relations 4-A, Turkey ...Sheralieva_A
Turkey has had a long history of pursuing closer ties with Europe. It first applied for associate membership in the European Economic Community in 1959. This led to the signing of an Association Agreement in 1963, marking the beginning of Turkey's process of economic integration into Europe. However, full membership has faced difficulties due to concerns from some European countries about differences in Turkish and European culture and governance. The future of Turkey's EU membership will depend on continued Turkish economic reforms and progress toward meeting EU standards.
Account Based Marketing Software Product Demo: Winter Release, October 18th 2016Maria Pushkina
Ready to accelerate your sales with Account Based Marketing? Discover our latest ABM software platform. In this presentation you will find out:
✓ Why the time is right to adopt Account Based Marketing.
✓ How to identify, nurture and sell more to target accounts.
✓ The latest Azalead technology innovations for ABM automation.
Azalead is the #1 international Account Based Marketing company. We help our clients cut wastage on the wrong accounts and grow sales with target accounts.
Elizabeth verar how to use thrive themes to build landing pagesepverar
Thrive Themes is a company that builds themes and plugins for Wordpress. Their themes and plugins are designed to convert website visitors into subscribers, and later on become paying customers.
The document describes a smart mount system that uses two servo motors controlled by an MSP430 microprocessor to adjust the vertical and horizontal tilt of the mount based on input from a potentiometer and accelerometer. The system includes code modules for initializing and controlling the servos and reading acceleration data to calculate the vertical angle of the mount. Safety considerations include not overloading the servos and ensuring a stable structure.
This document describes the process of PID control for line following robots. It explains that PID control uses a feedback loop to compare the desired position to the actual position measured by sensors to calculate an error value. This error value is used to determine how much the motors need to steer to minimize the error. It provides the mathematical form and block diagram of PID control. It then gives the specific steps to implement PID control for a line following robot, including using sensors to find the line, calculating the set point, performing the PID calculation, calculating motor speeds based on the error value, and driving the motors.
El documento habla sobre las Tecnologías de la Información y Comunicación (TIC), la Internet y el estado del arte. Explica que las TIC permiten procesar, almacenar, resumir e intercambiar información de forma digital. También describe algunos usos de la Internet como la educación a distancia y el comercio electrónico. Finalmente, señala que el estado del arte se refiere a lo más avanzado tecnológicamente y que el dominio y el comercio electrónico están relacionados porque el dominio brinda identidad y recon
Kassim Osman completed an internship and volunteering experience at a school serving immigrant students to fulfill requirements for his Family Social Science degree. Through these experiences, he was able to apply theories like symbolic interactionism to better understand the students, families, and community. While the school lacked diversity, it provided an environment where the students could maintain their cultural identities while receiving an education. Osman reflected that these experiences improved his communication, assessment, and problem-solving skills to work with diverse families and help address their needs.
Este documento presenta ejercicios de puntuación y corrección de textos. Incluye instrucciones para colocar comas, puntos y comas, y cambiar el orden de oraciones en varios párrafos dados. El objetivo es enseñar a los estudiantes a identificar errores de puntuación y corregirlos para mejorar la claridad y comprensión de los textos.
The document discusses the importance of effective communication in the workplace. It notes that communication is key to building understanding between coworkers and achieving goals. Regular communication helps ensure employees have the information they need to do their jobs well and feel part of the team.
Los orígenes de Internet se remontan a la década de 1960 cuando Estados Unidos creó una red exclusivamente militar para garantizar el acceso a la información militar desde cualquier parte del país en caso de un ataque soviético; esta infraestructura se expandió por el mundo para crear la red mundial de computadoras que conocemos hoy, proporcionando un acceso global sin precedentes a la información y comunicación pero también desigualdades en el acceso; Internet también transformó la economía global.
Spectra staff at various venues across the US and Canada participated in charitable holiday events to help those in need. Events included toy drives for Toys for Tots and underprivileged children, an ice skating and light show festival that raised money for a children's advocacy group, preparing meals for a homeless shelter, and decorating an auction tree whose proceeds benefited Meals on Wheels. The document highlights Spectra's efforts to support their local communities during the holidays through charitable events at their venues.
A tether-less legged piezoelectric miniature robot for bidirectional motionhassan hariri
The design exploits the use of mechanical standing waves generated on the metal beam and transmitted to its legs to propel the LPMR forward and backward where the vibrations of legs are similar to the bounding gait locomotion of animals. In our proposed design, a forward and backward motion in one dimensional axis is determined by the mechanical design and placement of the legs of the LPMR, and two operating frequencies for both directions are selected by the designer as well. By simple change in the driving frequency, both forward and backward motion can be achieved.
El documento describe las actividades que se llevarán a cabo en una clase sobre dramatica. Los estudiantes recibirán instrucciones sobre las tareas, verán un video sobre dramatica, subrayarán verbos en un texto, identificarán los verbos en presente, pasado y pasado participio, y compartirán lo que aprendieron con el maestro y sus compañeros. La clase promoverá aprendizajes flexibles, por retos y por competencias.
This document provides an overview of ES6 (ECMAScript 2015) features including: let, const and var; template strings; arrow functions; destructuring; default parameters; rest and spread syntax; iterators; classes; modules; maps, sets, weakmaps and weaksets; promises; and more. It explains each feature and provides code examples to demonstrate usage and differences from ES5. Browser compatibility notes are also included to advise on safe usage of new features across environments.
International Ataturk Alatoo University, International Relations 4-A, Turkey ...Sheralieva_A
Turkey has had a long history of pursuing closer ties with Europe. It first applied for associate membership in the European Economic Community in 1959. This led to the signing of an Association Agreement in 1963, marking the beginning of Turkey's process of economic integration into Europe. However, full membership has faced difficulties due to concerns from some European countries about differences in Turkish and European culture and governance. The future of Turkey's EU membership will depend on continued Turkish economic reforms and progress toward meeting EU standards.
Account Based Marketing Software Product Demo: Winter Release, October 18th 2016Maria Pushkina
Ready to accelerate your sales with Account Based Marketing? Discover our latest ABM software platform. In this presentation you will find out:
✓ Why the time is right to adopt Account Based Marketing.
✓ How to identify, nurture and sell more to target accounts.
✓ The latest Azalead technology innovations for ABM automation.
Azalead is the #1 international Account Based Marketing company. We help our clients cut wastage on the wrong accounts and grow sales with target accounts.
Elizabeth verar how to use thrive themes to build landing pagesepverar
Thrive Themes is a company that builds themes and plugins for Wordpress. Their themes and plugins are designed to convert website visitors into subscribers, and later on become paying customers.
The document describes a smart mount system that uses two servo motors controlled by an MSP430 microprocessor to adjust the vertical and horizontal tilt of the mount based on input from a potentiometer and accelerometer. The system includes code modules for initializing and controlling the servos and reading acceleration data to calculate the vertical angle of the mount. Safety considerations include not overloading the servos and ensuring a stable structure.
This document describes the process of PID control for line following robots. It explains that PID control uses a feedback loop to compare the desired position to the actual position measured by sensors to calculate an error value. This error value is used to determine how much the motors need to steer to minimize the error. It provides the mathematical form and block diagram of PID control. It then gives the specific steps to implement PID control for a line following robot, including using sensors to find the line, calculating the set point, performing the PID calculation, calculating motor speeds based on the error value, and driving the motors.
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Filip Krikava
This document discusses integrating adaptation mechanisms in self-adaptive software systems using control theory models. It presents a case study of using feedback control loops and control theory models to optimize a web server's performance by self-adjusting tuning parameters. The challenges of engineering such self-adaptive systems include control challenges for control engineers and integration challenges for software engineers. The study models the web server as a multi-input multi-output system and designs a linear quadratic regulator controller to optimize performance based on CPU utilization and memory usage.
This is the basic tutorial for understanding robotic arm with open source project JavaRobot controlling robotic arm. JavaRobot is an open source Matlab API for controlling YASKAWA MH12.
Simulink is a GUI block diagram environment for modeling and simulating dynamic systems. It contains a library of continuous, discrete, and other elements that can be dragged onto a model window and connected to build simulations. Models can be run with different parameters and component values using the sim command. Simulation output data is accessible in the MATLAB workspace and can be plotted to analyze system behavior.
Simulink is a GUI block diagram environment for modeling and simulating dynamic systems. It contains a library of continuous, discrete, and other elements that can be dragged onto a model window and connected to build simulations. Models can be run with different parameters and component values to analyze system behavior. Sumulink uses numerical integration methods to solve the system equations during simulation runs.
COSC 426 Lecture 5 on Mathematical Principles Behind AR Registration. Given by Adrian Clark from the HIT Lab NZ at the University of Canterbury, August 8, 2012
IC-CAP WaferPro is a new software from Agilent Technologies for automated on-wafer DC, CV, and RF measurements for device modeling. It controls probers, switching matrices, temperature chucks, and instruments like parametric testers. Built-in measurement routines reduce measurement time. It efficiently handles large datasets with options to save data to files or a new IC-CAP database.
The document describes the design of an electronic system to measure environmental parameters like humidity and CO2 levels in a polyhouse. The system uses a PSoC microcontroller to interface with sensors for humidity and CO2. It calibrates the sensor data and displays the readings on an LCD. The system provides precise and reliable measurements of humidity. Measurement of CO2 concentration requires calibration which is left for future work due to the unavailability of a CO2 gas chamber. The system works successfully to monitor the key environmental parameters inside the polyhouse.
Approaches to formal verification of ams designAmbuj Mishra
Masters thesis on Approaches to formal verification of analog and mixed signal designs presented in June 2016 at International Institute of Information Technology, Bangalore (IIITB).
Java Jit. Compilation and optimization by Andrey KovalenkoValeriia Maliarenko
This document discusses Java Just-In-Time (JIT) compilation. It describes JIT as compiling Java bytecode to native machine code during program execution rather than prior to execution. It outlines the main types of JIT compilers in HotSpot (client, server, tiered) and the key optimizations they perform like inlining, escape analysis, on-stack replacement, and tiered compilation. The document provides details on JIT tuning flags and how to get more profiling information from the JIT compiler logs. It emphasizes that letting the JIT do its work through warmup and avoiding microbenchmarks is important to achieving full performance.
Ge aviation spark application experience porting analytics into py spark ml p...Databricks
GE is a world leader in the manufacture of commercial jet engines, offering products for many of the best-selling commercial airframes. With more than 33,000 engines in service, GE Aviation has a history of developing analytics for monitoring its commercial engines fleets. In recent years, GE Aviation Digital has developed advanced analytic solutions for engine monitoring, with the target of improving detection and reducing false alerts, when compared to conventional analytic approaches. The advanced analytics are implemented in a real-time monitoring system which notifies GE’s Fleet Support team on a per flight basis. These analytics are developed and validated using large, historical datasets.
Analytic tools such as SQL Server and MATLAB were used until recently, when GE’s data was moved to an Apache Spark environment. Consequently, our advanced analytics are now being migrated to Spark, where there should also be performance gains with bigger data sets. In this talk we will share experiences of converting our advanced algorithms to custom Spark ML pipelines, as well as outlining various case studies.
With Honor Powrie and Peter Knight
Overcoming challenges of_verifying complex mixed signal designsPankaj Singh
Efficient and Innovative Digital Mixed-Signal (DMS) verification methodology is required to enable effective verification of RX path of SERDES. This presentation describes the usage of Real value models and Capture -Verify approach to verify complex high speed mixed signal design.
Real value models are the backbone of DMS methodology. Real value models are created for all critical modules in Receive path like Equalizer and Sampler and its associated peripheral modules. It is critical to make sure created models are functionally equivalent to respective designs. This is achieved by verifying each created model with respective designs for all functional modes. While the Real Value models are effective in meeting overcoming the simulation performance bottleneck by achieving 10x faster simulation time; the Nonlinearity factors of the front-end design are not represented accurately in discrete domain real value models for next generation of SerDes Design at very high data rate.
To overcome this problem, a novel approach called ‘capture and verify’ is used for verifying the jitter tolerance and eye parameters. In this approach, waveforms from spice level verification of Equalizer for different functional modes are captured and stored. These stored waveforms are used to generate run time table-based models to accurately represent the analog modules. These run time models are used in top-level simulations along with real value models thereby achieving required goal of simulation performance without compromising on accuracy of results.
The complete Design Verification (DV) environment is developed using UVM-e Methodology. Verification environment contains model for transmitter with all de-emphasis settings along with protocol compliant channels with multiple attenuations. DV infrastructure has hooks to plug-in required channel models to verify SERDES. This verification environment is also capable of verifying the clock data recovery (CDR) path of the design using protocol compliant jitter and Spread-Spectrum Clocking (SSC) stimulus.
The real value modelling bridges the gap between the performance requirements of the simulation and accuracy limitations of design. A significant speed-up in simulation performance is achieved (almost 10X in this case) by replacing with functionally equivalent real value models for mixed signal designs. Usage of Capture and Verify methodology with spice simulation waveforms for critical blocks ensures non-linearity of the next generation high speed SerDes design is well captured in simulations provide complete comprehensive solution for high speed mixed signal designs.
This document describes a lab experiment where students modeled a motor/flywheel system using LabVIEW. They collected data for sinusoidal and square voltage waveforms and compared the experimental model to a theoretical model based on motor specifications. Key aspects of the comparison included transfer functions, step responses, and Bode plots. Students determined parameter values, created VIs to collect experimental data, and analyzed results to compare experimental and theoretical models.
References1. HCS 2010 online manuals.2. Data Data provi.docxdebishakespeare
This document provides instructions for a lab exercise using HCS 2010 software to analyze and optimize signal timing plans for a case study intersection. Students are asked to develop and compare pretimed and actuated signal timing plans, analyzing output metrics like control delay and level of service. The document outlines 30 steps for entering intersection data, developing phasing plans, optimizing signal timing, and comparing the performance of base, optimized pretimed, and optimized actuated control strategies.
This document provides information on simulating and analyzing farfield data from antennas in CST Studio Suite. It discusses defining broadband and single frequency farfield monitors and probes, optimizing farfield results, extracting co-polarization and cross-polarization data, calculating the phase center, exporting data to GRASP, simulating circularly polarized antennas, and combining simulation results. Checklists are provided for ensuring accurate farfield simulation results.
Hardware Implementation of Low Cost Inertial Navigation System Using Mems Ine...IOSR Journals
This document describes the hardware implementation of a low-cost inertial navigation system using MEMS sensors. It discusses:
1) Calibrating the tri-axial accelerometer using a multi-position test to determine nine calibration parameters (scale factors, biases, misalignments) with equations, reducing the number of positions needed from twelve to six.
2) Similarly calibrating the tri-axial gyroscope using rate tests at different rotation speeds.
3) Developing error models for the accelerometer and gyroscope based on the calibrated parameters to remove sensor errors and noise.
4) Implementing the calibration algorithms and navigation equations in a microcontroller to track objects in real-time using the sensor data.
This document summarizes a proposed system risk analysis method using bearing sensor data. It includes:
1. An introduction describing condition-based maintenance using bearing sensor data to detect anomalies.
2. A proposed method using a convolutional autoencoder (CAE) for feature extraction from bearing signals followed by a T2 control chart and EWMA for fault detection. Only normal bearing data is used to train these models.
3. An experiment applying the method to data from a bearing test rig, comparing normal and outer race fault bearings. The CAE and statistical techniques are evaluated on their ability to detect faults in test data.
Similar to [Isentek] eCompass API Quick Start (20)
2. Outline
• eCompass API library
• PCB Sensor direction and coordinate system
• Sample code
• API Manual (chm)
• FAQ
3. eCompass API library & manual
• Check 5 files for eCompass API library
1) Sample code folder
2) Config.h
3) IST_LIB.h
4) IST_LIB.c
5) eCompass API.chm
4. eCompass API library
• Include 2 header file (.h) and 1 source file (.c) in
your project - Config.h / IST_LIB.h / IST_LIB.c
• Copy essential part from sample code - Main.c
5. PCB Sensor direction and coordinate system
• Change mag and acc sensor axis direction (x, y,
z) to fit coordinate system (N, E, U)
PCB Sensor direction
6. PCB Sensor direction and coordinate system
• Change sensor axis direction (x, y, z) to fit
coordinate system (N, E, U)
X
Y Z
X’
Y’Z’
X’ = -Y
Y’ = -X
Z’ = Z
X’
Y’Z’
X
Y Z
E
N
U
E
N
U
E
N
U
E
N
U
7. PCB Sensor direction and coordinate system
• Change mag sensor data (x, y, z) from LSB to
uT and axis direction • X’ = -Y * Mag_LSBtoUT
• Y’ = -X * Mag_LSBtoUT
• Z’ = Z * Mag_LSBtoUT
• Mag_LSBtoUT = 0.3
8. Sample code
• Steps
1) Copy sample code and enable the essential function
in your project
• Set_HeadingAngleEnable
• Set_MagAccuracyEnable
• Set_SingleCalibration / Set_DynamicCalibration
2) Input data need mag and acc data, if you don’t have
acc data, please input [0,0,9.8]
3) Check the input data axis direction to fit NEU
system
12. Sample code
• Part B : isentek compass initialization stage
• ist8310_Init(); // init driver
• Set_HeadingAngleEnable(IST_TRUE);// if return Heading angle, it need acc
and mag sensor
• Set_MagAccuracyEnable(IST_TRUE);// if enable eCompass accuracy report -
return 0:unreliable 3:High 2:medum 1: low
• Set_SingleCalibration(IST_TRUE);// if enable single calibration right now
• Set_DynamicCalibration(IST_TRUE) ;// if enable continuous calibration
• Set_MagBias(Mag_IST8310_Bias);
// if you have last calibrated value and don't calibrate again, you can set by this
"Set_MagBias" function
// note : this setting dependent on your application, please check if you
applciation is suitable
15. Sample code
• Run process in while loop (C1 & C2 part.)
// C1. Get mag and acc data from driver and change the sensor value from LSB
to uT
ist8310_GetXYZ(MagXYZ);
for (int i = 0; i < 3; ++i) {
Mag_RawData[i] = (float)MagXYZ[i] * Mag_LSBtoUT;
}
// C2. Dependent on PCB layout, change the mag and acc direction to NEU (x =
east, y = west, z = up)
Mag_RawData[0] = Mag_RawData[0];
Mag_RawData[1] = -Mag_RawData[1];
Mag_RawData[2] = Mag_RawData[2];
AccData[0] = AccData[1];
AccData[1] = AccData[0];
AccData[2] = AccData[2]; PCB Sensor direction
16. Sample code
• Run process in while loop (C3-C4 part.)
// C3. Run Compass Process to get Calibrated Data
// Here, we use constant acc data input [0,0,9.8], also, acc data [0,0,1] is ok.
Process_RunCompass(Mag_RawData, AccData, Mag_CalibratedData);
// C4. Check Calibration Status
// Mag_CalibrationStatus : In calibration = 1, no = 0
// Get_MagBias : BiasX, BiasY, BiasZ, Radius
// Mag_GetIST8310_Bias element will have valid value after calibration,
// you can check the bias value to know process finish calibration.
Mag_CalibrationStatus = Get_CalibrationStatus();
Get_MagBias(Mag_GetIST8310_Bias);
17. Sample code
• Run process in while loop (C5-C6 part.)
// C5. Get Heading Angle
// Get_HeadingAngle return int type angle. 0 - 360 degree
// Get_HeadingAngle100 return int type angle . 0 - 36000 degree
// Therefore, we need to change angle type
Mag_HeadingAngle = (float)Get_HeadingAngle();
Mag_HeadingAngle_Int100 = 0.01f * ((float)Get_HeadingAngle100());
// C6. Get Mag Accuracy Status
// 0:unreliable 3:High 2:medum 1: low
Mag_Accurancy = Get_MagAccuracyStatus();
21. FAQ
• IST_A001 – What’s the LSB to uT?
• IST_A002 – Why do we change the axis of acc and mag sensor to
NEU system?
• IST_A003 – What’s the difference and priority between
Set_SingleCalibration and Set_DynamicCalibration API?
• IST_A004 – How to calibrate eCompass correctly?
• IST_A005 – What’s the definition for 0, 1, 2, 3 in accuracy report ?
• IST_A006 – What time do I use “Set_MagBias” function?