Hello,
For a minimalist robotics project, I am looking for a PC controller solution for small PWM servomotors.
If I've read correctly, an Arduino Mini has 6 PWM ports, possibly with precise control, and a USB port.
That would be ideal for me.
What I envision: with a protocol to be defined via the USB-Serial connection (e.g., Modbus or a simpler ad-hoc solution), the PC sends commands to the Arduino, which decodes them and applies them to its PWM outputs.
But I'm afraid there are many small practical problems to solve... so if anyone knows of an existing project that already does this, that would be great.
Yes, standard 50 Hz hobby servo are just what I need. A standard simple robotic arm typically requires between 4 and 6 degrees of freedom. If I’ve understood correctly, the Servo library uses the Arduino’s three dual timers – that is, six PWM ports – and allows controlling the pulse width with good precision. So it’s perfect.
As you have been told, the servo library doesn't use PWM and can drive up to 12 servos on a simple Uno R3, Nano v3 etc.
That said, it could be better to offload that computer power to an external servo driver, like the PCA9685 (see second small picture). Then your processor becomes 'set and forget' and can do other things faster.