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:
The picture shows how to connect one motor to the controller board and to a 5 Volt power supply.
April 30, 2015.
I finally found some time to finish this project. I also wrote a test program to exercise the servos (see ServoControl.exe).
May 4, 2015.
I realized that the .dll file was missing and is required in order to make the program work. Here is the complete Delphi 7 project for those who wish to modify it for their own use. Included is the missing .dll file.
Servo Motor Controller
How to implement a servo motor controller using an inexpensive microcontroller board.