Stability study of the Ni Mindstorms controller balancing robot