Hi,I'm new in this forum. I'm a mechanical engineering and I've to control the torque of a DC motor with arduino. The project I have to do is to impose (as input) the rotation of the rotor by an external force (such as firstly an hand), than read by an encoder the position and calculate (with my algorithm) a reference torque, than apply this torque to the motor.What I though to do is to apply a calculate (reading the current) potential difference with the PWM.Is that correct?Thanks
If you have a means of measuring the motor current then you can directly monitor (theoretical) torque since thisis proportional to current (ignoring friction, magnetic saturation etc). Thus by monitoring current and adjustingdrive PWM you can set a given torque.Note that you have to measure average current if using PWM since the current will oscillate about an average.