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

IIC control servo


1. Learning goals

In this course, we mainly learn to use Raspberry Pi and 16-channels servo debugging board to control the servo through IIC.

2. Preparation

Connect the SDA and SCL of the module to the GP20 and GP21 pins of the Raspberry Pi board. VCC and GND are connected to 3.3V and GND of Raspberry Pi board respectively. As shown below.

!Tip: Raspberry Pi needs to enable I2C service.

image.png 

2.2 After the Raspberry Pi I2C is enabled, input command lmusb in the terminal to check whether the I2C is successfully started.

image.png 

2.3 Download i2c-tools, the software can monitor the usage and faults of hardware devices.

Input command: sudo apt-get install i2c-tools

Input command: i2cdetect -y -a 1 in the terminal.

Check if there is an IIC device: 0x52 or 0x29

3. About code

Please refer to 16CServo-iic.py

image.png 

IIC control servo function

image.png 

Set the servo S1 angle to 0

image.png 

4. Running code

Input following command in the terminal to run the program.

python 16CServo-iic.py

5. Phenomenon

After the program is run successfully. The servo will rotate 0°, after 2s it will rotate 180°.


Serial control servo
Serial control servo

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