Welcome to 16-channel Servo Debugging Board repository
IIC control servo
1. Learning goals
In this course, we mainly learn to use Arduino and 16-channel servo debugging board to control the servo through IIC.
2. Preparation
Connect the SDA and SCL of the module to the SDA and SCL pins of the arduino UNO board. VCC and GND are connected to 5V and GND of Arduino UNO respectively. As shown below.

3. About code
3.1 Configure module address
3.2 Initialize IIC communication
3.3 Set the angle of the servo S1 to 0
4. Compiling and downloading code
4.1 We need to open the .ino file by Arduino IDE software. Then click“√”under the menu bar to compile the code, and wait for the word "Done compiling " in the lower left corner, as shown in the figure below.



4.3 After the selection is completed, you need to click “→”under the menu bar to upload the code to the UNO board. When the word “Done uploading” appears in the lower left corner, the code has been successfully uploaded to the UNO board, as shown in the figure below.

5. Phenomenon
After the program is downloaded successfully. The servo will rotate 0°, after 2s it will rotate 180°, after 2s servo will rotate 0°, keep the loop like this status.