I have made a self balancing robot using an MPU6050 DMP, Arduino Motor Shield and PID written by Kas. I also have tuned the PID so that the robot can balance itself but when I unplug the usb cable no voltage will be sent to the motors. I power the Arduino from the voltage input of the motor shield. Both the motor shield and arduino recieves the power but the motors dont start turning.
The program is in the attachments
SelfBalancing2014.ino (9.73 KB)