Dear,
I am currently working on a autonomous robot to avoid obstacles: The robot check continuously while it's going forward the following positions: 60°-90°-120°-60°-90°-120° and if there is a problem (wall for ex), it stops and look for an exist by checking other positions, after finding a clear way,it start moving forward while checking.
The problem is after while of working as described (many cycles, the servo starts shaking around 90° position and goes to the end of program. I knew that it goes to the end of program because in my algorithm, if the robot doensn't find a solution it stops working and put servo position in 0° position, and this is what happens.
Here some bringed solution up to now:
I tryed changing servomotor and the problem is the same
Separate supply
Add capacitors
Thanks for you help.