Reports.LY530AL History

Hide minor edits - Show changes to output

Changed line 15 from:
A gyroscope measures angular rate, or how quickly an object turns. The rotation is typically measured in reference to one of three axes: Yaw, Pitch, and Roll. The LY530AL is, by nature, a yaw axis Gyro, measuring rate of turn on a Z-axis. The axis of measurment, however, depends on the direction or orientation of mounting. The image below demonstrates the three possible axes for measurement.
to:
A gyroscope measures angular rate, or how quickly an object turns. The rotation is typically measured in reference to one of three axes: Yaw, Pitch, and Roll. The LY530AL is, by nature, a yaw axis Gyro, measuring rate of turn on a Z-axis. The axis of measurment, however, depends on the direction or orientation of mounting. The images below demonstrate roll, pitch, and yaw and the three possible axes for measurement.
Added line 18:
Roll
Added line 20:
Pitch
Added line 22:
Yaw
Added lines 16-19:

Attach:roll.gif
Attach:pitch.gif
Attach:yaw.gif
Changed lines 52-60 from:
[[http://www.analog.com/UploadedFiles/Data_Sheets/778386516ADXRS150_B.pdf | Datasheet from Analog Devices]]: The datasheet is pretty straightforward. The pin description provided is for the chip itself, not for the breakout board from Sparkfun, which is detailed above.

* Typical Operating Voltage: +5Vdc (4.75V MIN/5.25V MAX). The range of power for this device is pretty narrow, another reason the precomposed breakout from Sparkfun is a great tool, as they provide the proper set of resistors and capacitors.
* Typical Supply Current: 6mA (8mA MAX).

When the Gyro is at rest, the ouput on the RATE pin is half of the supply voltage, meaning +2.5V. This is a Z-Axis device, and when you turn it clockwise along the Z-Axis, the voltage increases to the tune of 12.5mV per degree. At a full 150 degrees per second, the output voltage is almost a full 5V (clockwise rotation) and almost 0V (counterclockwise rotation).

The voltage increases according to the rate at which you rotate. However, if you rotate faster than 150 degrees in a second, this sensor will not pick up anything past that ceiling. Analog Devices also makes a 300 per second version of this sensor, and Sparkfun sells a breakout board for that model as well.
to:
[[http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00237186.pdf | Datasheet from ST Microelectronics]]: The datasheet is pretty straightforward. The pin description provided is for the chip itself, not for the breakout board from Sparkfun, which is detailed above.

* Typical Operating Voltage: +3.3Vdc (2.7V MIN/3.6V MAX). The range of power for this device is pretty narrow, another reason the precomposed breakout from Sparkfun is a great tool, as they provide the proper set of resistors and capacitors.
* Typical Supply Current: 5mA (5.5mA MAX).

When the Gyro is at rest, the ouput on the output pin is +1.23V. This is a Z-Axis device, and when you turn it anti-clockwise along the Z-Axis, the voltage increases to the tune of 3.33mV per degree on 4x output, 0.83mV on 1x output. At a full 300 degrees per second, the 4x output voltage is 2.23V (anti-clockwise rotation) and 0.23V (clockwise rotation). At a full 1200 degrees per second, the 1x output voltage is 2.23V (anti-clockwise rotation) and 0.23V (clockwise rotation).

The voltage increases according to the rate at which you rotate. However, if you rotate faster than 300 degrees in a second, this sensor will not pick up anything past that ceiling. (!!! need experiment!!!!)
Added line 65:
(!!!!need change!!!!)
Changed lines 37-38 from:
Attach:LY530AL_Gyro_Breakout_Board_Pinout.gif
Attach:file.ext
to:
Attach:LY530AL_Gyro_Breakout_Board_Pinout2.gif
Added line 38:
Attach:file.ext
Changed lines 39-45 from:
* '''Vcc'''- 5V DC
* '''Vss'''- Ground
* '''RATE'''- Outputs an analog voltage equivalent to rate of turning (12.5mV per degree of turning, up to 150 degrees in one second)
*
'''2.5V'''- This pin puts out a contant 2.5V, which is what is output from the RATE pin when the device is at rest. This pin can be used to calibrate and check the device during use by settingt the 2.5V as a comparison in software, and checking against it.
* '''TEMP'''- This pin outputs an analog value from the Gyro
's buiolt in temperature sensor. At 76 degrees Farenheit (25 Celcius) the Gyro ouputs 2.5V. The ouput changes at a rate of 8.4mV per degree Celcius. This is another great feature for self testing.
* '''ST1'''- Self Test 1 is a pin you can run to a digital I/O on your MCU, and you can use it as another calibration and self testing feature. When you send the ST1 pin a logc 1 (anything higher than 3
.3V) you see an immediate drop in output voltage by 660mV typically. This pin is good to send a pulse to if you want to "activate" the device without any movement. If you see the drop you are looking for, then you can determine how well the Gyro is working.
* '''ST2'''- Self Test 2 provides the same functionality as ST1, except a logic 1 sent to the pin creates an increase in resting voltage by 660mV.
to:
* '''Vdd'''- 2.7~3.6V DC, Power supply
*
'''GND'''- Ground
* '''Vref'''- Reference voltage output. It is zero-rate level describes the actual output signal if there is no angular rate present. Connect this pin to arduino's one analog input for reference to get more accurate result.
* '''Z 1xOUT'''- Outputs an analog voltage equivalent to rate of turning (0
.83mV per degree of turning, up to 1200 degrees in one second)
* '''Z 4xOUT'''- Outputs an analog voltage equivalent to rate of turning (3.33mV per degree of turning, up to 300 degrees in one second)
*
'''ST- Self'''-test, refer to datasheet if you are willing to use it. Otherwise, leave it unconnected.
* '''PD- Power'''-down, pull it up to put the chip into sleep mode to save power. Not necessary
for an Arduino application I guess. Leave it unconnected is acceptable.
* '''HP'''- High pass filter reset. Refer to datasheet for more information. Not necessary for Sparkfun breakout board. Leave it unconnected is acceptable
.
Changed line 85 from:
[[Code.Gyro_sample | Sample code for the ST LY530ALH gyroscope]]
to:
[[Code.Gyro_sample2 | Sample code for the ST LY530ALH gyroscope]]
Changed lines 83-84 from:
Arduino Sample Code
to:
'''Arduino Sample Code'''
Added lines 81-86:

------------------------------------------------------
Arduino Sample Code
[[Code.Gyro_sample | Sample code for the ST LY530ALH gyroscope]]
Changed lines 88-89 from:
Attach:gyro_2012_1_27.jpg
>>>>>>>
to:
Changed lines 9-12 from:
Output Type: Analog 3.33 mV/ /s on 4x output. 0.83 mV/ /s on 1x output.

Power consumption: 5mA Active, 1uA Power-down
to:
Output Type: Analog 3.33 mV/ /s on 4x amplified output. 0.83 mV/ /s on 1x output.

Power consumption: 5mA Active mode, 1uA Power-down mode
Changed lines 23-24 from:
[-THE CORIOLIS EFFECT-] Gyroscopes measure angular rate by means of [[http://scienceworld.wolfram.com/physics/CoriolisForce.html | Coriolis Acceleration]]. The best explanation I can figure is this: Imagine you're standing on a platform at the center of a carousel. The middle platform is not spinning, but the floor around you is. You look straight ahead and see a tree you like. As you step off of the stationary platform and on to the spinning carousel floor, you know you want to keep that tree as directly ahead of you as you can. The spinning floor will cause you to revolve with it, hoowever, so you will not see the tree. In order to see the tree, you have to move in the opposite direction in which the platform is spinning. If you were on stable ground, your walking pattern would make you look like a drunk, but on the carousel, it might look like you were walking in a "straight" line. The force you need to keep yourself aimed at the tree is the Coriolis Acceleration. [-(Images used below are from the ADXRS150 [[http://www.analog.com/library/analogDialogue/archives/37-03/gyro.html | information sheet]]-]
to:
[-THE CORIOLIS EFFECT-] Gyroscopes measure angular rate by means of [[http://scienceworld.wolfram.com/physics/CoriolisForce.html | Coriolis Acceleration]].

[-(Images
used below are from the ADXRS150 [[http://www.analog.com/library/analogDialogue/archives/37-03/gyro.html | information sheet]]-]
Changed line 29 from:
[-ADXRS CONSTRUCTION-] The ADXRS series of gyros are constructed using a micromachined mass carved from polysilicon, which is tethered to a frame so that it can move only along one direction.
to:
In the above picture, there is an example of the Coriolis Effect. Imagine you are standing on the edge of a stationary carousel and you see a tree in the distance. You wish to walk towards the tree. As the carousel starts spinning, you still attempt to walk towards the tree. Because of the spinning of the carousel, you are forced to walk not only forward but to your left as well to counteract the spinning of the carousel. The amount of left-ward acceleration required to continue to allow you to walk straight towards the tree is the Coriolis acceleration.
Changed line 35 from:
Attach:file.ext
to:
Attach:LY530AL_Gyro_Breakout_Board_Pinout.gif
Changed line 35 from:
http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-pins.jpg
to:
Attach:file.ext
Changed line 21 from:
Gyros are also very popular for '''robotics''' purposes. They can be used for navigation and equilibrium calibration. Sparkfun sells a [[http://www.sparkfun.com/shop/index.php?shop=1&cart=490216&cat=1&itemid=493& | Six Degrees of Freedom]] arrangement which uses three of these devices in conjunction with an accelerometer to create an internal navgation system for robots, model boats, and model aeronautics projects.
to:
Gyros are also very popular for '''robotics''' purposes. They can be used for navigation and equilibrium calibration. Sparkfun sells a [[http://www.sparkfun.com/products/10121 | Six Degrees of Freedom]] arrangement which uses three of these devices in conjunction with an accelerometer to create an internal navgation system for robots, model boats, and model aeronautics projects.
Changed lines 15-16 from:
A gyroscope measures angular rate, or how quickly an object turns. The rotation is typically measured in reference to one of three axes: Yaw, Pitch, and Roll. The ADXRS 150 is, by nature, a yaw axis Gyro, measuring rate of turn on a Z-axis. The axis of measurment, however, depends on the direction or orientation of mounting. The image below demonstrates the three possible axes for measurement.
to:
A gyroscope measures angular rate, or how quickly an object turns. The rotation is typically measured in reference to one of three axes: Yaw, Pitch, and Roll. The LY530AL is, by nature, a yaw axis Gyro, measuring rate of turn on a Z-axis. The axis of measurment, however, depends on the direction or orientation of mounting. The image below demonstrates the three possible axes for measurement.
Changed line 31 from:
Silicon beams inside the substrate of the unit form two nominally equal capacitors. As the item which the gyro is mounted to turns, the mass in the center, mounted to a set of springs, exerts force in one direction or another. The mass also moves creating differential capacitance. This change is what is measured to create an output voltage. In the case of the ADXRS 150, this output voltage is about 12.5mV/degree/second.
to:
Silicon beams inside the substrate of the unit form two nominally equal capacitors. As the item which the gyro is mounted to turns, the mass in the center, mounted to a set of springs, exerts force in one direction or another. The mass also moves creating differential capacitance. This change is what is measured to create an output voltage. In the case of the LY530AL, this output voltage is about 0.83mV/degree/second.
Changed line 1 from:
ST LY530AL - 300/s Analog Yaw-Rate Sensing Gyro
to:
ST LY530AL - 300/s Analog Yaw-Rate Sensing Gyro (Z-Axis)
Changed line 13 from:
to:
------------------------------------------------------
Added line 12:
Added line 8:
Added line 10:
Changed line 9 from:
to:
Power consumption: 5mA Active, 1uA Power-down
Changed lines 5-6 from:
'''Power supply: 2.7 V to 3.6 V. (Normally 3.3V)
Output Type: Analog 3.33 mV/ /s on 4x output. 0.83 mV/ /s on 1x output.'''
to:

Power supply: 2.7 V to 3.6 V. (Normally 3.3V)
Output Type: Analog 3.33 mV/ /s on 4x output. 0.83 mV/ /s on 1x output.
Changed lines 5-6 from:
Power supply: 2.7 V to 3.6 V. (Normally 3.3V)
Output Type: Analog 3.33 mV/ /s on 4x output. 0.83 mV/ /s on 1x output.
to:
'''Power supply: 2.7 V to 3.6 V. (Normally 3.3V)
Output Type: Analog 3.33 mV/ /s on 4x output. 0.83 mV/ /s on 1x output.'''
Added lines 4-6:

Power supply: 2.7 V to 3.6 V. (Normally 3.3V)
Output Type: Analog 3.33 mV/ /s on 4x output. 0.83 mV/ /s on 1x output.
Deleted line 0:
<<<<<<<
Changed lines 1-72 from:
Attach:gyro_2012_1_27.jpg
to:
<<<<<<<
ST LY530AL - 300/s Analog Yaw-Rate Sensing Gyro

Attach:ly530al_gyro.jpg

A gyroscope measures angular rate, or how quickly an object turns. The rotation is typically measured in reference to one of three axes: Yaw, Pitch, and Roll. The ADXRS 150 is, by nature, a yaw axis Gyro, measuring rate of turn on a Z-axis. The axis of measurment, however, depends on the direction or orientation of mounting. The image below demonstrates the three possible axes for measurement.

http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-3axes.jpg

Gyroscopes are used in a variety of applications, very often by the '''automotive industry'''. Accelerometers are excellent for testing sudden acceleration and deceleration and can be employed in airbag releasing systems and auto locking brakes. Gyroscopes can be used to measure whether a car seems to be spinning out of control. Should the rate of turn increase dramatically in a very brief burst of time, further braking sytems can be implemented to stop the car.

Gyros are also very popular for '''robotics''' purposes. They can be used for navigation and equilibrium calibration. Sparkfun sells a [[http://www.sparkfun.com/shop/index.php?shop=1&cart=490216&cat=1&itemid=493& | Six Degrees of Freedom]] arrangement which uses three of these devices in conjunction with an accelerometer to create an internal navgation system for robots, model boats, and model aeronautics projects.

[-THE CORIOLIS EFFECT-] Gyroscopes measure angular rate by means of [[http://scienceworld.wolfram.com/physics/CoriolisForce.html | Coriolis Acceleration]]. The best explanation I can figure is this: Imagine you're standing on a platform at the center of a carousel. The middle platform is not spinning, but the floor around you is. You look straight ahead and see a tree you like. As you step off of the stationary platform and on to the spinning carousel floor, you know you want to keep that tree as directly ahead of you as you can. The spinning floor will cause you to revolve with it, hoowever, so you will not see the tree. In order to see the tree, you have to move in the opposite direction in which the platform is spinning. If you were on stable ground, your walking pattern would make you look like a drunk, but on the carousel, it might look like you were walking in a "straight" line. The force you need to keep yourself aimed at the tree is the Coriolis Acceleration. [-(Images used below are from the ADXRS150 [[http://www.analog.com/library/analogDialogue/archives/37-03/gyro.html | information sheet]]-]

http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-coriolis01.jpg

[-ADXRS CONSTRUCTION-] The ADXRS series of gyros are constructed using a micromachined mass carved from polysilicon, which is tethered to a frame so that it can move only along one direction.

http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-coriolis02.jpg http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-coriolis03.jpg

Silicon beams inside the substrate of the unit form two nominally equal capacitors. As the item which the gyro is mounted to turns, the mass in the center, mounted to a set of springs, exerts force in one direction or another. The mass also moves creating differential capacitance. This change is what is measured to create an output voltage. In the case of the ADXRS 150, this output voltage is about 12.5mV/degree/second.
-----------------------------
'''Pin Descriptions'''

http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-pins.jpg

* '''Vcc'''- 5V DC
* '''Vss'''- Ground
* '''RATE'''- Outputs an analog voltage equivalent to rate of turning (12.5mV per degree of turning, up to 150 degrees in one second)
* '''2.5V'''- This pin puts out a contant 2.5V, which is what is output from the RATE pin when the device is at rest. This pin can be used to calibrate and check the device during use by settingt the 2.5V as a comparison in software, and checking against it.
* '''TEMP'''- This pin outputs an analog value from the Gyro's buiolt in temperature sensor. At 76 degrees Farenheit (25 Celcius) the Gyro ouputs 2.5V. The ouput changes at a rate of 8.4mV per degree Celcius. This is another great feature for self testing.
* '''ST1'''- Self Test 1 is a pin you can run to a digital I/O on your MCU, and you can use it as another calibration and self testing feature. When you send the ST1 pin a logc 1 (anything higher than 3.3V) you see an immediate drop in output voltage by 660mV typically. This pin is good to send a pulse to if you want to "activate" the device without any movement. If you see the drop you are looking for, then you can determine how well the Gyro is working.
* '''ST2'''- Self Test 2 provides the same functionality as ST1, except a logic 1 sent to the pin creates an increase in resting voltage by 660mV.
-----------------------------
'''Electrical Characteristics'''

[[http://www.analog.com/UploadedFiles/Data_Sheets/778386516ADXRS150_B.pdf | Datasheet from Analog Devices]]: The datasheet is pretty straightforward. The pin description provided is for the chip itself, not for the breakout board from Sparkfun, which is detailed above.

* Typical Operating Voltage: +5Vdc (4.75V MIN/5.25V MAX). The range of power for this device is pretty narrow, another reason the precomposed breakout from Sparkfun is a great tool, as they provide the proper set of resistors and capacitors.
* Typical Supply Current: 6mA (8mA MAX).

When the Gyro is at rest, the ouput on the RATE pin is half of the supply voltage, meaning +2.5V. This is a Z-Axis device, and when you turn it clockwise along the Z-Axis, the voltage increases to the tune of 12.5mV per degree. At a full 150 degrees per second, the output voltage is almost a full 5V (clockwise rotation) and almost 0V (counterclockwise rotation).

The voltage increases according to the rate at which you rotate. However, if you rotate faster than 150 degrees in a second, this sensor will not pick up anything past that ceiling. Analog Devices also makes a 300 per second version of this sensor, and Sparkfun sells a breakout board for that model as well.

One main concept to consider is that these sensors measure how fast an object turns, but once it stops, the sensor resets itself to resting voltage. While an Accelerometer will measure tilt and provide a constant voltage based on angle measurement, a Gyro will not do so. That said, a Gyro is much more accurate for measuring rate of turn.

Below are some testing images which demonstrate the behavior of the devices:

http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-datalog_normal.jpg http://itp.nyu.edu/physcomp/sensors/uploads/Reports/adxrs150-datalog_turns.jpg

The image on the left demonstrates resting voltage. The shot on the right shows a variety of turn types. A steady turn produces a consistent plateau of voltage. Once the turn stops, the voltage resets. The second set of turns show the spikes that are created when the Gyro is rotated sharply. Notice that immediately after the turn stops, the voltage resets to resting.

[-Datalogging done with [[Code.DataloggerMulti | Processing]]-]

-----------------------------
'''Using the ADXRS 150'''

I originally set out to use the Gyro as part of a project involving sensor rigs worn by dancers so they can control environmental media playback during a performance. For that [[http://itp.nyu.edu/%7Erzt204/projects/videobody.htm | project]], I am working with an experienced performer/dancer who has specific ideas as to what sort of physicality will be in the choreography. The Gyro, unfortunately, does not behave in a fashion which allows for a lot of room for improvisation.

Its first weakness is its inability to provide a distinct range of values for a full 360 degree turn. This particular model will not even fully translate half a turn if it happens in less than a second (150 degrees per second). A dancer's movements are often much faster than that.

As discussed above, they also do not provide a sense of angle, only angular rate, though I did start to examine ways to work with this information. An accelerometer would do the job nicely, as that sensor would record the angle of bend, and maintain it as long as it is held. I also tried using a flex sensor to accomplish the same idea. As an example, if I wanted to measure the movement of a dancer's lower arm, I might place a Gyro on the lower arm, near the wrist, which would allow me to get the rate of bend at the elbow. If I then had a flex sensor on the elbow, I can measure the angle of bend.

I did some test for this with a basic [[http://www.imagesco.com/catalog/flex/FlexSensors.html | flex sensing]] variable resistor and a Microchip 18f252[-[[http://ww1.microchip.com/downloads/en/DeviceDoc/39564b.pdf | (Datasheet)]]-], and sent out decimal values from the 10 bit analog to digital converter (meaning values from 0- 1023) to a terminal program. Also, a 4.7k resistor was run to ground from the same pin of the chip on which the flex sensor sat (in my case A.0).
* The average output with the flex sensor flat was 340.
* The ouptut with the sensor bent to 90 degrees was around 210 (more resistance, lower values).
* Using this rough formula, you can guage angle: Angle = (DEC value) x .69 (again a rough formula based on one set of tests
=======
Attach:gyro_2012_1_27.jpg
>>>>>>>
Added line 1:
Attach:gyro_2012_1_27.jpg