yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
16-channel Servo Debugging Board📖
1.Introduction
  • Introduction
2.Arduino code
  • IIC control servo
  • Serial control servo
3.pico code
  • IIC control servo
  • Serial control servo
4.Raspberry Pi code
  • IIC control servo
  • Serial control servo
  • Raspberry Pi 5 serial port control
5.Microbit code
  • IIC control servo
  • Serial control servo
  • Potentiometer control servo
6.Jetson NANO code
  • IIC control servo
  • Serial control servo
7.STM32 code
  • Serial port control servo
  • IIC controls the servos
8.MSPM0 code
MSPM0G3507
  • Serial port control servo
  • IIC control servo
MSPM0G3519
  • Serial port control servonew
  • IIC control servonew
Download
  • Code
  • APP(Android/iOS)
Download ZIP

Welcome to 16-channel Servo Debugging Board repository

Serial port control servo


1. Learning objectives

In this course, we mainly learn to use STM32F103RCT6 and 16-way servo drive modules to implement serial port control servos.

2. Prepare before class

In this example, the 16-way servo drive module adopts serial port communication, and the TXD and RXD of the module are connected to the PA3 and PA2 pins of the STM32F103RCT6 board, respectively. VCC and GND are connected to the 3.3V and GND of the STM32F103RCT6, respectively.

3. Programming

Initialize serial ports, interrupts, delays, etc.

image.png 

The servo control function, according to the protocol, 0x24 and 0x23 are the header and tail of the packet, respectively. image.png

Control the servo S1 with a for cycle, select 5 degrees each time from 0 to 180, and finally return to 0 degrees.

image.png 

4. Experimental phenomenon

After the program is downloaded, it runs, and the servo goes from 0 degrees to 180 degrees, and then back to 0 degrees.


Serial control servo
IIC controls the servos

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/中文