Self balancing robot issue

johnwasser:
Perhaps your tuning knobs don't cover the stable region. Try changing the range on your various tuning knobs (one at a time) to allow for finer tuning as you approach usable settings.

For kp i tried ranges from 0 to max output, for ki i tried ranges from 0 to 4 times max output and for ki very small values... everything as advertised on other projects but no luck.