Wiring Between STEPPERONLINE A6, DSY, T6 Series Servo Motors and Arduino
This guide is designed to help you understand how to connect STEPPERONLINE A6, DSY, T6 Series servo motors and Arduino.
Materials required:
● Arduino board (such as Arduino Uno)
● Split servo motor
● Power supply
● Several connecting wires
Precautions:
Before you begin, make sure you have read and understood the data sheet for the servo motor you are using
To prevent short circuits or other electrical failures, handle all electronic components with care
Please follow the steps below to connect the servo driver to the Arduino:
Connect the DIR+ and PUL+ of the drive to the digital ports of the Arduino. For example, PIN8 and PIN9
Connect the PUL- and DIR- to the GND of the Arduino
Write a program on the computer by directing PIN8 and PIN9 to DIR and PUL
Connect the DIR+ and PUL+ of the drive to the digital ports of the Arduino. For example, PIN8 and PIN9
The following schematic diagram shows the basic connections between the Arduino, servo drive, power supply, and servo motor.
Wiring diagram:
A6 series servo motor-Arduino

DSY series servo motor-Arduino

T6 series servo motor-Arduino

We provide you with the following simple demo code for reference.
int x;
void setup() {
pinMode(9,OUTPUT); // set Pin9 as PUL
pinMode(8,OUTPUT); // set Pin8 as DIR
}void loop() {
digitalWrite(8,HIGH); // set high level direction
for(x = 0; x < 400; x++) // repeat 400 times a revolution when setting 400 on driver
{
digitalWrite(9,HIGH); // Output high
delayMicroseconds(500); // set rotate speed
digitalWrite(9,LOW); // Output low
delayMicroseconds(500); // set rotate speed
}
delay(1000); //pause 1 second
digitalWrite(8,LOW); // set high level direction
for(x = 0; x < 400; x++)
{
digitalWrite(9,HIGH);
delayMicroseconds(500);
digitalWrite(9,LOW);
delayMicroseconds(500);
}
delay(1000);
}
Materials required:
● Arduino board (such as Arduino Uno)
● Split servo motor
● Power supply
● Several connecting wires
Precautions:
Before you begin, make sure you have read and understood the data sheet for the servo motor you are using
To prevent short circuits or other electrical failures, handle all electronic components with care
Please follow the steps below to connect the servo driver to the Arduino:
Connect the DIR+ and PUL+ of the drive to the digital ports of the Arduino. For example, PIN8 and PIN9
Connect the PUL- and DIR- to the GND of the Arduino
Write a program on the computer by directing PIN8 and PIN9 to DIR and PUL
Connect the DIR+ and PUL+ of the drive to the digital ports of the Arduino. For example, PIN8 and PIN9
The following schematic diagram shows the basic connections between the Arduino, servo drive, power supply, and servo motor.
Wiring diagram:
A6 series servo motor-Arduino

DSY series servo motor-Arduino

T6 series servo motor-Arduino

We provide you with the following simple demo code for reference.
int x;
void setup() {
pinMode(9,OUTPUT); // set Pin9 as PUL
pinMode(8,OUTPUT); // set Pin8 as DIR
}void loop() {
digitalWrite(8,HIGH); // set high level direction
for(x = 0; x < 400; x++) // repeat 400 times a revolution when setting 400 on driver
{
digitalWrite(9,HIGH); // Output high
delayMicroseconds(500); // set rotate speed
digitalWrite(9,LOW); // Output low
delayMicroseconds(500); // set rotate speed
}
delay(1000); //pause 1 second
digitalWrite(8,LOW); // set high level direction
for(x = 0; x < 400; x++)
{
digitalWrite(9,HIGH);
delayMicroseconds(500);
digitalWrite(9,LOW);
delayMicroseconds(500);
}
delay(1000);
}
Updated on: 13/02/2025
Thank you!