Introduction - If you have any usage issues, please Google them yourself
Freescale microcontroller MC9S12XS128 an inverted pendulum, which are explained in detail, and basically has a comment. Machine, comprising: a DC motor, a potentiometer for detecting the pendulum angle, a two-phase encoder feedback corner. The software uses four times the encoder, the original encoder 1000 lines into 4000 lines, inverted pendulum control cycle positioning 10ms, can be changed, the experiment to achieve the purpose of balance control, but not completed on rejection, need hand the pendulum put straight, and then start the microcontroller, experiment, microcontroller 30 degrees balance control the selected motor imaginary bit control when shaking.