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 controls the servos


1. Learning objectives

In this course, we will focus on implementing IIC control of servos using the STM32F103RCT6 and 16-way servo drive modules.

2. Prepare before class

In this example, the 16-way servo driver module adopts IIC communication, and the SAD and SCL of the module are connected to the PB7 and PB6 pins of the STM32F103RCT6 board. VCC and GND are connected to the 3.3V and GND of the STM32F103RCT6, respectively.

3. Programming

Initialize IIC, interrupts, delays, etc.

image.png 

Control the servo S1 with the 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 port control servo
Serial port 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
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文