Position and speed control of a low-cost two-wheeled, self-balancing inverted pendulum vehicle