1 / 7

Accelerometers and Gyros

Accelerometers and Gyros. Timothy Friez Class # 3 1/29/08. Accelerometer. The Dual-Axis Accelerometer (DAA) measures both vibration and gravity. It should be connected to two of the RC analog inputs. One to measure X-axis acceleration and one to measure Y-axis acceleration.

Mercy
Download Presentation

Accelerometers and Gyros

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Accelerometers and Gyros Timothy Friez Class # 3 1/29/08

  2. Accelerometer The Dual-Axis Accelerometer (DAA) measures both vibration and gravity. It should be connected to two of the RC analog inputs. One to measure X-axis acceleration and one to measure Y-axis acceleration.

  3. Using Accelerometer with ROBOTC • Connect to two analog inputs (analog inputs 2 and 3 on our robot) • Set “Motors and Sensor Setup” to Accelerometer.

  4. Using Accelerometer with ROBOTC • Access values with • SensorValue[x_axis] • SensorValue[y_axis] • Values will range from -200 to 200 • Scale is 100ths of a “G” • So a value of 153 would be 1.53Gs • Sensor will be at rest at or near zero.

  5. Gyro Sensor The Yaw Rate Gyro sensor is used to determine rotation. The output labeled “T” is for “Twist” or rotational velocity. The output labeled “R” is “Relative Temperature”. 80 degrees/sec resolution

  6. How to use gyro with ROBOTC Connect to one analog input – “twist” only (analog input 1 on our robot) Set “Motors and Sensor Setup” to Accelerometer.

  7. Access using the command: SensorValue[gyro] Sensor will give back results in tenths of a degree. A reading of 900 is actually 90.0 degrees The sensor is automatically zeroed at the start of your program. How to use gyro with ROBOTC

More Related