How to use potentiometer and adjust motor speed

See if this helps.

https://community.simplefoc.com/t/gimbal-motor-overheating/1034/6?u=valentine