Here I provide some basic tutorials for using the three-axis accelerometer in your Lego kit.
Table of Links
Additional Accelerometer Software to be Installed
Since the accelerometer is not a standard component of the Mindstorms Lego kit, the default programming environment is not equipped to use the sensor. You will probably have to download and install a few new blocks. You may download the software by clicking here. Installation instructions are provided in the video below.
Getting the Accelerometer to Work
This first video shows how to get your programming environment ready for using the accelerometer.
Below, you’ll find an initial program for reading the accelerometer.
Reading the accelerometer and correcting measurements with offsets.
Using Accelerometer to Navigate a Slope
You can use the accelerometer to calculate the tilt of the robot, assuming that you are not accelerating.