yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
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.3 C51

C51 Control servo board

  1. Learning objectives

    In this course, we mainly learn to use the 89C52RC 51 single-chip microcomputer and the 24 channel servo control board to realize serial port control servo.

  2. Preparation before class

    In this example, the 16 channel servo drive module uses serial communication, connecting the TXD and RXD of the module to P3.0 and P3.1 pins of the 51 board respectively. VCC and GND are connected to VCC and GND respectively. The wiring diagram is as shown in the figure.

image-2022121600001

4.Code

Configure the serial port and baud rate. image-2022121600002

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

image-2022121600003

In the main cycle, the relevant steering gear rotation angle will be sent every 1s.

4.Experimental phenomena

Run after downloading the program, and the servo S1 turns to 0° after 1s; Turn the servo S1 to 90° after 1s; Turn the rear steering gear S1 to 180° for 1s.

 

STM32
Arduino

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