Measuring Tilt Angle with Gyro and Accelerometer
Background knowledge Basic understanding on how the Segway works is; when the IMU is tilting to a certain angle, the accelerometer give command to the stepper motor to tilt to the respective angle. The gyro sensor reacts by giving command to the motor to tilt the angle to the reference position. The main and most complicated issues of self-balancing Scooter are the sensors. The sensors are very important as they give us the inclination of the bar regarding the base and the speed of its angle change. For this kind of scooter, we need an accelerometer and a gyroscope. The combination of these two devices provides us of very precise results because the error of one is cancelled by the other and vice-versa. In short, we could say that the gyroscope tells the short-time reading and the accelerometer the long-time reading. This is the latest circuit which has Stepper motor, Arduino Uno, motor driver L293N and IMU sensor in t...