yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
24-channel Servo Drive Board📖
1.Introduction and tutorials
  • 24-Channel Servo Drive Board
  • PS2 Handle Description
2.Control servo board
  • 2.0 Raspberry Pi 5 control tutorial
  • 2.1 RPi_Jetson
  • 2.2 STM32
  • 2.3 C51
  • 2.4 Arduino
  • 2.5.MSPM0G3507
  • 2.6.MSPM0G3519
3.Download program
  • Download program
Download
  • Code
  • SCH_Other file
  • APP(Android/iOS)
Download ZIP

Welcome to 24-channel Servo Drive Board repository

2.2 STM32

STM32 Control servo board

  1. Learning objectives

    In this course, we mainly learn to use STM32F103C8T6 and 24 channel servo drive module to realize serial port control servo.

  2. Preparation

    In this example, the 24 channel servo drive module uses serial communication, and the TXD and RXD of the module are connected to the PA3 and PA2 pins of the STM32F103C8T6 board respectively. VCC and GND are respectively connected to 3.3V and GND of STM32F103C8T6. As shown in the figure.

2022121600001

3.Code

Initialize serial port, interrupt, delay, etc. 2022121600002

Servo control function. According to the protocol, 0x24 and 0x23 are the header and trailer of data packets respectively. 2022121600003

Use for to cycle control servo-S1, select 5° from 0 to 180 each time, and finally return to 0°.

2022121600004

4.Experimental phenomenon

After the program is downloaded, the servo is turned from 0 ° to 180 °, and then returns to 0 °.

 

RPi_Jetson
C51

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文