The author does a great job showing different tools you can make or use with treadmill motors. The one downside is he seems to re use the PWM controllers from the treadmill as well. I typically ditch those and just buy a $15 one off the net.
https://www.instructables.com/id/Use-a-Treadmill-DC-Drive-Motor-and-PWM-Speed-Contr/