1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice
Val Gretchev

Servo Motor Controller

How to implement a servo motor controller using an inexpensive microcontroller board.

  1. Val Gretchev
    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 5 Volt power supply. DSC_3321.JPG RB-Lyn-316.jpg

    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.

    Attached Files: