When using a dimmer switch to control the speed of a sewing machine motor....does anyone know if you can totally remove the foot pedal and substitute a dimmer switch?...or do you have to leave the foot pedal attached?

Any other suggestions for such a setup would be appreciated too.