Pendulum Balance Robot

HazardsMind:
Nothing happens at all? What about the serial monitor, does that at least give you "Basic Encoder Test:" ?
Do you ever get a print out for Serial.println(newPosition) ?
When does "m" ever change?

by 'nothing happens' I mean there is no movement from the motor, and serial.println Gives a page of 0's, I'm unsure how to measure m, however. (as I'm still a beginner to arduino. :smiley: