Now you can make robots that know which way is up! The Accelerometer / Tilt Sensor measures acceleration in three axes. It also measures tilt along each axis. Using the sensor, you can measure the acceleration of your robot build robots in the range –2g to + 2g. Great for experimenting with acceleration forces in cars, on amusement rides, even on swing sets. This sensor will also tell you if your robot is level so you can build self-leveling robots and much more.
The NXT Acceleration Sensor contains a three axis accelerometer that measures acceleration in three axes, x, y and z. Acceleration is measured in the range of –2g to +2g with scaling of approximately 200 counts per g.
The Acceleration Sensor connects to an NXT sensor port using a standard NXT wire and uses the digital I2C communications protocol. The acceleration measurement for each axis is refreshed approximately 100 times per second.
The three axes of measurement are labeled x, y, and z as shown.
The Acceleration Sensor can also be used to measure tilt in three axes. This is possible because gravity is perceived as acceleration. When the sensor is stationary and in the normal horizontal position, the x and y axis will be near zero, because they are horizontal, while the z axis will be near 200, which represents one g. If you tilt the sensor then gravity will also be detected on the other axis and the value for the z axis will go down. Since gravity is distributed among the three component vectors, the tilt of the sensor can be determined.
To test your new sensor, plug it into port 2 of your NXT and select View > Ultrasonic cm > Port 2. Hold the sensor level in your hand and slowly tilt it forward and back. The value displayed on the NXT will represent the acceleration or tilt value for the x axis and will be in the range of 0 - 254. (0 will display as ?????? while in View mode.) Note that only the x axis can be displayed using the view function.
Programming
Mindstorms NXT-G
The Acceleration Sensor can be programmed using LEGO Mindstorms NXT Software using the Acceleration Sensor Block available as a download.
Acceleration Sensor Block
The Acceleration Block will return the value for the positive or negative acceleration for each axis, x, y and z as shown.
In additon, a trigger point may be set for the x axis. The conditions for the trigger will be met whenever the x axis value exceeds the trigger.
Configuring the Acceleration Sensor Block
1. Choose the port where your Acceleration sensor is plugged in. By default, the block will be set to port 3 for an acceleration sensor. You can change this selection if you need to.
2. If you choose the Compare function, the block will be triggered when the x axis reading is above or below the selected value; select < "less than" to trigger the block when the reading is below the trigger value or > "greater than" to trigger the block when the reading is above the trigger value. Use the slider to set the trigger value or type it directly into the input box.
Sensor Register Layout
Address |
Type |
Contents |
42H |
byte |
X axis upper 8 bits |
43H |
byte |
Y axis upper 8 bits |
44H |
byte |
Z axis upper 8 bits |
45H |
byte |
X axis lower 2 bits |
46H |
byte |
Y axis lower 2 bits |
47H |
byte |
Z axis lower 2 bits |
Notes:
NXT Firmware version 1.05 or later must be loaded in the NXT for the Acceleration Sensor and other digital I2C sensors to operate correctly. You can check the firmware version by displaying the NXT Window in the Mindstorms software.
Downloads:
- HiTechnic Acceleration Sensor Block for Mindstorms NXT Software
- HiTechnic BallShooter V2 for LMS 2.0
- HiTechnic BallShooter V2 for LMS 1.0
- HiTechnic Remote Control programs for Mindstorms NXT-G
- FTC Update For LabVIEW 2009
- Acceleration Sensor VI For LabVIEW2009
- Acceleration Sensor VI
- HiTechnic Ball Shooter Building Instructions
- HiTechnic EV3 I2C Blocks
Lego Mindstorm Acceleration / Tilt Sensor for NXT / EV3
- Brand: HiTechnic
- Product Code:Hitechnic-Acc-Tilt-Sensor
- Reward Points:76
- Availability:In Stock
- रo 7,550.00
-
रo 6,920.00
- Price in reward points:7550
Related Products
Tags: NXT, Acceleration, Tilt, Sensor