I would first like to clear up something. If you don’t want to read this part and would like to jump into the “hows and whys”, skip down past the %%%%% line below.
An angular rate sensor is NOT a gyro, nor does it act like one. I know it is common slang to refer to an angular rate sensor as an “electronic gyro”, but they are fairly different. One can be made to act like the other, which is what I try to explain below.
Angular rate sensors measure (you guessed it) angular rate, i.e. how fast (degrees per second or radians per second) something is rotating. (it actually outputs a voltage that needs to be converted into physical units, but that is beside the point).
A gyroscope is typically used to measure angular position (not rate), using the principal of “rigidity in space” of the gyroscope. This is how the attitude indicator (artificial horizon) of an aircraft works. You can use a real gyro to measure the inclination of your Segway clone. You will actually need to hook up a potentiometer to one of the gymbals to actually measure the angular position.
A gyroscope can be made to measure angular rate (using the principal of “precession”), but that requires a finely calibrated spring. This is how the turn-rate portion of a Turn Coordinator works on an aircraft.
An angular rate sensor can be made to measure angular position. To do this, you must integrate the signal (yeah! a use for calculus) over time.
So, an angular rate sensor can be made to act like a gyro, and a gryo can be made to act like an angular rate sensor, but they don’t act the same by themselves. They actually measure different things, but using calculus, they can be made to measure the same thing.
(by the way, the “GryoChip” that comes in the kit is an angular rate sensor - not a gyro)
Lastly, an accelerometer is NOTHING like a gyro, and cannot be made to act like one. An accelerometer measures linear acceleration. Using calculus, this can be integrated into linear velocity and position.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
On to the question at hand:
An accelerometer can probably be used to measure inclination (tilt), but it would require a LOT of study, research, and some trial and error to do it well. If you just place the accelerometer on a platform and rotate the platform, it is easy - just use the measured acceleration and some trig and you can calculate the inclination.
However, that all breaks down when you start accelerating the platform in a horizontal direction. Then, part of the horizontal acceleration will now be read by the accelerometer (since the accelerometer is now tilted) and it will become difficult to determine how much acceleration is due to gravity and how much is due to the platform accelerating horizontally - especially when they change simultaneously.
I would suggest buying an ANGULAR RATE SENSOR (see above). You can use calculus to integrate the angular rate into angular position. The angular position is the inclination (tilt) of the Segway-clone. Horizontal acceleration will not affect this measurement.
%%%%%%%%%%%%%%%%%%%%%%%%%%%
Whew - sorry for the length of this post.
-Chris