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.4 Arduino

Arduino control servo board

1. Learning objectives

In this course, we mainly learn to use Arduino and 24 channel steering gear control board to control the servo through serial port.

2. Preparation before class

The 24 channel steering gear control board of this routine adopts serial communication, and connects the RXD and TXD of the module to the TXD and RXD pins of the Arduino UNO board respectively. VCC and GND are connected to 5V and GND of Arduino UNO respectively. The wiring diagram is as follows:

image-2022121600001

3.Code

Servo control function. According to the protocol, 0x24 and 0x23 are the header and trailer of data packets respectively. image-2022121600002 Initialize serial communication image-2022121600003 Set steering gear S1 angle 0° image-2022121600004

4.Compile and download code

4.1 We need the general Arduino IDE software to open the file, click "√" in the menu bar to compile the program, and wait for the word "Compiled successfully" to appear in the lower left corner.

image-2022121600005

4.2 In the menu bar of the Arduino IDE, we need to select [Tool] - [Port] - [Port] -] and select the port number just displayed in the device manager, as shown in the following figure.

image-2022121600006

4.3 After selection, click "→" under the menu bar to upload the code to the UNO board. When the word "upload completed" appears in the lower left corner, it indicates that the program has been successfully uploaded to the UNO board, as shown in the following figure. image-2022121600007

5.Experimental phenomenon

After the program is downloaded successfully, the steering gear will first turn to 0 °, then turn to 180 ° after 2s, and then turn to 0 ° after 2s.

C51
MSPM0G3507

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