Here is a little project that uses the Mikroelektronika Mini-M4 for STM32 board to implement a PWM controller for a servo motor. I wanted to do a pan and tilt mechanism but got distracted by another project so I haven’t yet finished this one. I was asked to post it as-is for now.
You can find the mechanism here:
http://www.robotshop.com/ca/en/lynxmotion-micro-pan-and-tilt-kit-with-servos-black.html
The picture shows how to connect one motor to the controller board and to a 12...