E80 Spring 2016

Accelerometer and Gyroscope Calibration

Objective

By the end of the laboratory the student will:

  1. Use the principles of Propagation of Errors to develop and implement a method to calibrate MEMS accelerometers.
  2. Use the principles of Propagation of Errors to develop and implement a method to calibrate MEMS rate gyroscopes.
  3. Develop a method for analyzing the dynamic data from MEMS accelerometers and rate gyroscopes. Use the developed calibration data and analysis method to compare the results from the accelerometers and rate gyroscopes with a known motion.

Preliminary Notes

Detailed procedures for running these experiments will not be given to you. You are expected to develop the procedures and explain why you chose them. However, it is acceptable (and recommended) to consult with the proctors and professors as you plan your experiments. If you are uncertain, ask. If the proctor or professor is uncertain, call my cell and ask me.

The overall goal of this lab is to calibrate accelerometers and rate gyroscopes so that you you could design, build, and calibrate an IMU as part of your final project, and then analyze the flight data and determine the acceleration, velocity, position, and orientation vectors of your rocket during its flight. Your write-up should include calibration expressions and uncertainties in the calibration constants. It should also have an explanation as to how you would process flight data. If you have developed VIs for use, please include print-outs of the front panel and the block diagram in your write-up.

Equipment Protection and Safety

PLEASE follow these guidelines to protect yourself and the hardware on the Accel & Gyro (Turntable) Lab:

Section 1 – Turntable Calibration

Note: The detailed instructions for use of the turntable may have changed by the time you get to lab. Always check with a proctor or professor for the latest instructions.

Connect the laptop to the data acquisition system (if not already connected). Start the laptop. Start LabVIEW 2011, and load the ControlTurntableLV11.vi, but do not start it. Plug in the turntable. The turntable will not operate unless the lid is down. Always counterbalance any loads on the turntable with an equivalent load on the opposite side of the table. The counterbalancing doesn't have to be perfect, but if the table wobbles at 150 RPM, you need to counterbalance things better.

Set the desired speed and direction in the ControlTurntableLV11.vi. Start the VI by either clicking on the RUN arrow or typing Ctrl-R. Stop the VI by clicking the stop button or by pushing the END key.

Use a stopwatch to verify the table rotation at 60 RPM, 120 RPM, and 180 RPM in both the clockwise and counterclockwise directions.

Section 2 – Accelerometer and Rate Gyroscope Calibration

The wireless DAQ is an NI WLS-9205 (listed as WLS-15819C2 in the Measurement and Automation Explorer). Attaching the wires or leads requires a small screwdriver and is counterintuitive. Ask a proctor or professor for help. There is not a pre-existing VI for reading from it. You are expected to make your own.

There have been four different IMUs produced for E80. IMU1 is no longer used. There is a limited number of IMU2s available. They were used for this lab in 2012 and 2013. They function well, but the rate gyro chips are out of production, which led to IMU3. There is a limited number of IMU3s available. They were used in the lab in 2014. They function well, but the accelerometer chips are out of production, and the rate gyros had too wide of a data span, which led to IMU4. IMU2, IMU3, and IMU4 are all 20-pin DIP boards and are physically very similar. They can be distinguished by the name IMU2, IMU3, or IMU4 on the front of the board. The pin-outs were kept as similar as possible among the three. However, there are significant differences. A list with a pin-out comparison is available here. The power requirements and the power and ground pins have not changed. The table below lists the important characteristics.

IMU2, IMU 3, & IMU 4 Comparison
  IMU2 IMU3 IMU4
Pin-out List

IMU2 List

IMU2-3-4 comparison

IMU3 List

IMU2-3-4 comparison

IMU4 List

Pin-out Diagram IMU2 Diagram IMU3 Diagram IMU4 Diagram
Schematic IMU2 Schematic IMU3 Schematic IMU4 Schematic
1-Axis High-G Accel. AD22280-R2 AD22280-R2 AD22280-R2
3-Axis Low-G Accel MMA7331L MMA7331L BMA145
Rate Gyro 1 ISZ-650 LPY4150AL LPR450AL
Rate Gyro 2 IDG-650 LPR4150AL LPY450ALTR

 

To power the accelerometers and rate gyros you need a stable voltage source. A battery is typically not stable enough. The most frequently used stable voltage source is called a linear voltage regulator. We have the following regulators in stock to provide 5V, 3.3V, 3V, 2.5V, and 1.5V. See the table below. The datasheets have typical application circuits. Check with a proctor or professor if you're unsure how to use a 9V battery and a voltage regulator to power your circuit.

The IMU has a small diagram indicating coordinate axes for the IMU. The pinouts for the chips use the names of the pins on the data sheets. The lectures on rocket dynamics have their own set of coordinate directions. DO NOT ASSUME THAT ANY OF THESE SETS OF COORDINATE AXES ARE THE SAME. You will want to determine how the chips are oriented on the IMU, how the pin labels correspond, how these correspond to the rocket dynamics coordinates, AND verify them experimentally. There is a simple way to verify the coordinate directions for the accelerometers using the gravity vector. It can also be used for a quick and easy calibration of the accelerometers.

If you choose not to use the 7-DOF IMU, there are two different 3-axis accelerometers available for calibration: the MMA7361 from Freescale and the ADXL335 from Analog Devices. They are both on break-out boards to give you easy access to the pins. The data sheet for the ADXL335 breakout board is here. The info for the other board is on the Sparkfun website. You need to supply power of between+2.2V and +3.6 V to the Vcc input for the MMA7361, and between +2.2 V and +3.6V for ADXL335. A 9V battery and a regulator or the +5V output on the DAQ can be useful. Don't forget to connect the ground. All of the sensors have lowpass filters with a bandwidth of about 50 Hz on the output. The MMA7361 can be switched to output either a range of ±1.5 g or ±6 g. The ADXL335has a fixed output range of ±3 g. Make sure you set the sleep switch correctly. If you are getting no output, you have set it incorrectly.

Also if you choose not to use the 7-DOF IMU, there are two different 2-axis rate gyroscopes available for calibration. They are the ST Microelectronics LPR5150AL and the ST Microelectronics LPY5150A . They have a range of ±1500°/s and require a voltage between 2.7V and 3.6V. The breakout board has lowpass filters on it and both 1X and 4X outputs. The 4X outputs have amplifiers with a gain of 4 on them so they can measure up to ±375°/s. The info for the boards are on the Sparkfun website.

It is up to you how you arrange and connect the sensors for testing and calibration. There is a fixture for holding your protoboard in different orientations

The DAQ uses WiFi to connect with your computer. You can connect it to your sensors as you see fit. For anything not dead center on the turntable, place a counterweight on the opposite side of the turntable to balance it. Be certain that everything is anchored securely before starting the turntable. Stop the motor immediately if anything is hitting the lid.

The manner you use the turntable for calibration is up to you, as long as you use it in a safe manner. Don't forget error analysis. Please explain your calibration strategy and protocol to a proctor or a professor before beginning calibration. Have the professor or proctor annotate your lab report to indicate this explanation has been completed. You will receive a zero (0) for Section 2 if the annotation is not in your lab report. Please make careful note of anything that doesn't work.

The Available Voltage Regulators
Part Description Manufacturer Input Voltage Output Voltage
L7805CV (or equiv.) IC REGULATOR POS 5V TO-220 STMicroelectronics (or equiv.) 7V to 35V 5V
MCP1702-3302E/TO IC REG LDO 3.3V 250MA TO-92-3 Microchip Technology 4V to 13.2V 3.3V
MCP1702-3002E/TO IC REG LDO 3V 250MA TO-92-3 Microchip Technology 3.7V to 13.2V 3V
MCP1702-2502E/TO IC REG LDO 2.5V 250MA TO-92-3 Microchip Technology 3.2V to 13.2V 2.5V
MCP1702-1802E/TO IC REG LDO 1.8V 50MA TO-92-3 Microchip Technology 2.5V to 13.2V 1.8V
MCP1702-1502E/TO IC REG LDO 1.5V 250MA TO-92-3 Microchip Technology 2.2V to 13.2V 1.5V

 

Section 3 –Calibration Use

As (possibly) explained in the lecture, the angular orientation of the accelerometer is required to integrate the accelerations to obtain 3-D velocities and positions. The rotation rates from the gyroscope must be integrated to obtain the angular orientation. You can wait until the final project to develop a full 6-DOF transformation and integration routine. However, it is worth doing a preliminary check. Set up your system to one axis of the rate gyro and the necessary axes of the accelerometer. For (at least) one trial, measure the starting angle of the turntable and the position of the accelerometer on it, start the data recording, rotate the turntable for a small number of revolutions (either by hand or with the control software), count the revolutions, and measure the final angle (and position). Then analyze the data and see how close your calculated final angle and position are to your actual final angle and position.

 

| ©2015 Harvey Mudd College