TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136537 times)
  2. FAT32 Library (69730 times)
  3. Network Ethernet Library (55838 times)
  4. USB Device Library (46170 times)
  5. Network WiFi Library (41798 times)
  6. FT800 Library (40984 times)
  7. GSM click (28921 times)
  8. PID Library (26383 times)
  9. mikroSDK (26276 times)
  10. microSD click (25297 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Using MINI-M4 for STM32 as a Servo Motor Controller

Rating:

0

Author: Val Gretchev

Last Updated: 2016-02-22

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Internal MCU modules

Downloaded: 722 times

Followed by: 2 users

License: MIT license  

In this example I use general-purpose timer 3, channels 1 and channel 2 to drive a pair of servo-motors in a pan and tilt mechanism. The included test program provides a convenient way to send multiple seek commands to position the servos over their complete range of motion.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Using MINI-M4 for STM32 as a Servo Motor Controller" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Using MINI-M4 for STM32 as a Servo Motor Controller" changes.

Do you want to report abuse regarding "Using MINI-M4 for STM32 as a Servo Motor Controller".

  • Information
  • Comments (0)

Example Blog

Pan and Tilt Mechanism

Pan and Tilt Mechanism

This device can support a small video camera.

View full image

Exercising the servo mechanism.

This video shows the interaction between the PC test program and the servo code driving the pan and tilt mechanism.

Watch on YouTube

ALSO FROM THIS AUTHOR

Using a Shaft Encoder with MINI-M4 for STM32

0

This example shows how to connect a shaft encoder to a MPU board and provides a state machine decoder that can be used for many useful applications where a rotating dial inputs positional information. This data can be used for display purposes or for converting into analog signal by passing it to the internal DACs.

[Learn More]

MikroMedia + for STM32 with Shield and GSM2 click board.

0

This code uses the GSM2 click board to send SMS text messages to a cell phone number. It can be modified to execute 2-way communications using the skeleton code provided. The code is modular and can be easily used in many other projects.

[Learn More]

Delphi 7 example for testing the GPS L10 Click Board

0

The simplest way to test a GPS click board is to connect it to a PC by means of the built-in USB port. This program, written for Delphi 7, can be used to monitor the click board output messages. Use Disable Auto Output to stop automatic transmissions; Verbose mode to interpret fields.

[Learn More]