I'm hoping to build my own wood turning lathe in a couple of months and am thinking about what I need to get the motor turning. Thinking about pulling the motor out of an old treadmill and using that (hopefully its DC). It'll surely have its own speed control but where's the fun in that?
I'm trying to build everything from the ground up and aim to implement PWM motor control using an Arduino and a homemade encoder (shouldn't need more than 1 count per rev given I only care about speed control). The encoder and programming side should be relatively straight forwards but I'm bit unsure about the physical connection from Arduino to motor.
As the motor only needs to spin in one direction, I'm really not interested in buying a motor controller or H-Bridge to do the job. Can I get away with outputting the PWM pulse from the Arduino into a transistor/MOSFET connected to the motor (which diode and anything else that's needed), powered by how ever many volts is required?