It’s fast and works great. I also like that you are looking forward to do odometry experiments and SLAM implementation. Also probably you need to adjust the differential gain as the bot keeps vibrating. Looking forward to updates!
1. In your writeup you mention that a tall machine with the weight up high is “inert”. Please elaborate. 2. You placed the IMU at the bottom. Wouldn’t the acceleration forces in X be maximum.
With a bigger mass at the top, It takes more time before the bot starts tumbling. So it ‘feels’ more stable, but once the bot is falling, it’s much harder to correct.
I’m not sure. You’re probably right as the inertness is bigger at the top. As part of my approach (work with the vertical angle) it doesn’t matter as long as it’s placed on the motor axis.
The weird COG (lot of weight at the front) and compensation by the derivative gain, caused the violent vibration. FOr the same reason it took a long time before coming to a final rest. I changed the position and attachment of the ultrasonic sensors in the version I’m working with now. Re-tuning with just the twiddle-script gave a much better result (hardly no virbration any more).