Litter robot not rotating correctly

I had a similar problem. Initially it was “separating” the pin inside the slot that you put the power plug into, that restored the unit to functioning. I used a thin steak knife.
That worked for a month.
Ultimately I replaced the motor. Price is reasonable and easy to install (I’m a gramma).