I need help programming wall follower with PID controller, so far code looks like the one attached. Right now it doesnt seem to be working, what can I do to make it work?
GERASKODAS.ino (4.18 KB)
I need help programming wall follower with PID controller, so far code looks like the one attached. Right now it doesnt seem to be working, what can I do to make it work?
GERASKODAS.ino (4.18 KB)
(deleted)
spycatcher2k:
What should it do? What does it do?The description is like taking your car to a mechanic and saying, it does not work, fix it!
It should follow the wall while keeping 15 cm from it. Right now it either spins in circles or smashes into the wall. Distance variable is right sensor motor a is left, motor b is right.
hyprq:
It should follow the wall while keeping 15 cm from it. Right now it either spins in circles or smashes into the wall. Distance variable is right sensor motor a is left, motor b is right.
Integral windup could be the cause remove all integral influence for now.
you will probably will only need proportional to start with add derivative next avoid integral unless your walls are not straight
My PID tuning video should help as balance is similar to line and wall following: https://youtu.be/uyHdyF0_BFo
Z