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.1 RPi_Jetson

RPi_Jetson control servo board

RPi_Jetson control servo board1.RPi control servo board2.jetson control servo board

1.RPi control servo board

According to the schematic diagram of the servo control board, serial port 3 is specially used for communication with controller. In this lesson, we will explain how to realize the Raspberry Pi to control the servo to rotate through the drive board.

Environment Configuration

  • Because the Raspberry Pi hard serial port is used for Bluetooth, and the mini serial port is unstable, we need to configure the Raspberry Pi serial port so that we can use the hard serial port normally.
  1. Input following command: sudo raspi-config
  2. image-2022120500008
  3. image-2022120500009
  4. image-2022120500010
  5. image-2022120500011
  6. Set the hardware serial port to GPIO serial port, and edit with root permission /boot/config.txt file. Input following command:
sudo nano /boot/config.txt

After opening the file, add two lines at the end dtoverlay=miniuart-bt force_turbo=1 image-2022120500013

Save: Ctrl+O, exit Ctrl+X.

  1. After saving and exiting, restart the Raspberry Pi. You can see that the serial ports are switched.

image-2022120500012

* Start up *

  1. The pin diagram of Raspberry Pi,as shown below. image-2022120500001
  2. The connection between Raspberry Pi and servo board, as is shown in the figure. image-2022120500002
  3. Use winScp software to transfer the source code of raspberry pie (serial_pi_cor. py) of this routine to the raspberry pie system
  4. Run code
x
python3 serial_pi_cor.py
#If the system prompts that some modules do not exist, you can use the following command to install them
sudo pip install serial
sudo pip install pyserial

According to the communication protocol image For example, if you want the fourth channel servo rotate to 100°.

Enter D at the terminal. Then, pressing "Enter" key. Next, input 100°.

You can see that servo to rotate to 100°.

image-2022120500004

Press ctrl+c to ending program.

2.jetson control servo board

According to the schematic diagram of the servo control board, serial port 3 is specially used for communication with controller. In this lesson, we will explain how to realize the Jetson NANO to control the servo to rotate through the drive board.

  1. The pin diagram of Jetson NANO,as shown below. image-2022120500005
  2. The connection between jetson NANO and servo board, as is shown in the figure. image-2022120500006
  3. Use winScp software to transfer the source code of raspberry pie (serial_jetson_cor. py) of this routine to the raspberry pie system
  4. Run code
​x
sudo python3 serial_jetson_cor.py #Then, input password
#If the system prompts that some modules do not exist, you can use the following command to install them
sudo pip install serial
sudo pip install pyserial

According to the communication protocol imageFor example, if you want the fourth channel servo rotate to 100°.

Enter D at the terminal. Then, pressing "Enter" key. Next, input 100°.

You can see that servo to rotate to 100°.

image-2022120500007 Press ctrl+c to ending program.

 

Raspberry Pi 5 control tutorial
STM32

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