Show Posts
Pages: 1 [2]
16  Using Arduino / Programming Questions / Re: Self balancing unicycle code. need help with data from PID on: May 12, 2012, 12:57:05 am
thanks for looking that over!

that line is supposed to take the current error from the last calculation and make it the previous error for the next calculation.

i fixed some mistakes in the code i posted here, but i still have the currerr=preverr issue.
17  Using Arduino / Programming Questions / Self balancing unicycle code. need help with data from PID on: May 11, 2012, 03:08:37 pm
I have combined a program that reads my imu sensors ( sparkfun 5dof ). with a self balancing robot code by kerry wong.  I am aquiring the data and i think im getting good numbers for mixing the gyro and accelerometer but my previous error and current error in the pid calculations are the same number.

I would actually go as far as saying all the PID data looks incorrect, but on the right track...

i attached my .ino file.

Thanks for looking!

gp
Pages: 1 [2]