TOP Contributors

  1. MIKROE (2654 codes)
  2. Alcides Ramos (352 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 (136744 times)
  2. FAT32 Library (69952 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46267 times)
  5. Network WiFi Library (41887 times)
  6. FT800 Library (41173 times)
  7. GSM click (28985 times)
  8. PID Library (26413 times)
  9. mikroSDK (26362 times)
  10. microSD click (25376 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

UART Driver using Interrupts for MultiMedia PIC32MX7

0

The MikroElektronika libraries for the UARTs work well but they block the CPU from executing code until the function is finished. This can be a long time since the UART is generally a slow peripheral device. It's better to let the interrupt mechanism handle the sending or receiving of individual characters while allowing the CPU to do other tasks.

[Learn More]

Using WiFi to set RTC on Tiva board

0

Another example of setting the real-time-clock with data obtained from an Internet time server using the external CC3000 chip on the Tiva board. The FT232 chip on the shield board is used for diagnostic messages.

[Learn More]

Non-Blocking Drivers for I2C1 and STMPE610 on Mikromedia Plus for STM32 Board.

0

When the Touch Panel is enabled at the same time as USB, MikroE code hangs up frequently. USB is an essential peripheral and being able to use it together with the LCD/Touch panel is absolutely a must in any application involving this board. This code provides a non-blocking driver while maintaining compatibility with Visual_TFT.

[Learn More]