TB65603A Single Axis Stepper Motor Driver Board (HCMODU0022)
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Hello.
This is very useful info, however I would like to add some things.
High efficiency stepper motors are current controlled. This means, that you can connect 3V or 5V motor to 24V controller board. The board will control the current and the voltage on the motor will be appropriate. When the motor will operate, the voltage will rise with frequency of CLK pulses and keep the torque to the maximum. In low end stepper motor applications, the motors may be voltage controlled, but with voltage control, the torque starts falling with frequency very rapidly.
Excitation mode doesn't meen, that the motor will make a step after eg. 16 pulses. It means, that the resolution of the motor will be increased 16 folds, if this is selected. So if the motor has 200 steps per revolution, it will then have 3200 steps per revolution (0.1125°per pulse). This is also called microstepping or quazi sine wave drive. In this mode motor runs very smoothly and resonance problems are minimized.
There is a document with title "STEPPER MOTOR DRIVING" from the company SGS Thomson or ST in short. It is a MUST READ for all who want to work with stepper motors and understand their operation. It can be found here: http://users.ece.utexas.edu/~valvano/Da ... per_ST.pdf
I also found an updated version here: http://www.st.com/st-web-ui/static/acti ... 003774.pdf
Hope this helps. Have fun with your motors,
Srecko (Lucky)
P.S. BTW, theese boards are very cheap, but anyway excellent to use, very versatile, reliable and long life.
This is very useful info, however I would like to add some things.
High efficiency stepper motors are current controlled. This means, that you can connect 3V or 5V motor to 24V controller board. The board will control the current and the voltage on the motor will be appropriate. When the motor will operate, the voltage will rise with frequency of CLK pulses and keep the torque to the maximum. In low end stepper motor applications, the motors may be voltage controlled, but with voltage control, the torque starts falling with frequency very rapidly.
Excitation mode doesn't meen, that the motor will make a step after eg. 16 pulses. It means, that the resolution of the motor will be increased 16 folds, if this is selected. So if the motor has 200 steps per revolution, it will then have 3200 steps per revolution (0.1125°per pulse). This is also called microstepping or quazi sine wave drive. In this mode motor runs very smoothly and resonance problems are minimized.
There is a document with title "STEPPER MOTOR DRIVING" from the company SGS Thomson or ST in short. It is a MUST READ for all who want to work with stepper motors and understand their operation. It can be found here: http://users.ece.utexas.edu/~valvano/Da ... per_ST.pdf
I also found an updated version here: http://www.st.com/st-web-ui/static/acti ... 003774.pdf
Hope this helps. Have fun with your motors,
Srecko (Lucky)
P.S. BTW, theese boards are very cheap, but anyway excellent to use, very versatile, reliable and long life.
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Hi,
The switches indicate off and ON positions; however the description tables on the PCB are in 0's and 1's. Is ON = 1, or is ON = 0. Does anyone know?
Regards
Robert
The switches indicate off and ON positions; however the description tables on the PCB are in 0's and 1's. Is ON = 1, or is ON = 0. Does anyone know?
Regards
Robert
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
For this driver, On = 1 and off = 0. Generally in the world of microconrollers and digital electronics the following is the case:
On = 1 = True = High = Yes = Voltage
Off = 0 = False = Low = No = No voltage
On = 1 = True = High = Yes = Voltage
Off = 0 = False = Low = No = No voltage
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Thanks Andrew,
Although generally switches can also be connected to ground with a pullup resistor. Leaving them open generates a level high. That's the way I design my products but it depends on the designer I guess.
Thanks for the info. I was reluctant to connect my motor up till I was sure.
Regards
Robert.
Although generally switches can also be connected to ground with a pullup resistor. Leaving them open generates a level high. That's the way I design my products but it depends on the designer I guess.
Thanks for the info. I was reluctant to connect my motor up till I was sure.
Regards
Robert.
-
- Posts: 4
- Joined: Tue Apr 28, 2015 4:24 am
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Hi
I have a problem in directing stepper motor with the help of switch. Can you please send the code for it. My purpose is rotating stepper motor in clockwise and anticlockwise direction with switch and control speed with potentiometer.
I have a problem in directing stepper motor with the help of switch. Can you please send the code for it. My purpose is rotating stepper motor in clockwise and anticlockwise direction with switch and control speed with potentiometer.
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
I'm assuming you are asking for an Arduino sketch to do this? I'm afraid we don't have any example code to do that. However we do have a blog post scheduled for the first half of next month on how to control a stepper motor with a potentiometer if you can wait. Alternatively if you have any code that you are struggling with just post it here.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
-
- Posts: 4
- Joined: Tue Apr 28, 2015 4:24 am
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
int sensorPin = A3;
int sensorValue = 0;
void setup() {
pinMode(8, OUTPUT); //direction pin
pinMode(9, OUTPUT); //step pin
digitalWrite(8, LOW);
digitalWrite(9, LOW);
}
void loop() {
sensorValue = analogRead(sensorPin);
sensorValue = map(sensorValue,0,1023,3600,1);
digitalWrite(9, HIGH);
delayMicroseconds(sensorValue);
digitalWrite(9, LOW);
delayMicroseconds(sensorValue);
}
in this i want to add motor direction with the help of switch
int sensorValue = 0;
void setup() {
pinMode(8, OUTPUT); //direction pin
pinMode(9, OUTPUT); //step pin
digitalWrite(8, LOW);
digitalWrite(9, LOW);
}
void loop() {
sensorValue = analogRead(sensorPin);
sensorValue = map(sensorValue,0,1023,3600,1);
digitalWrite(9, HIGH);
delayMicroseconds(sensorValue);
digitalWrite(9, LOW);
delayMicroseconds(sensorValue);
}
in this i want to add motor direction with the help of switch
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
You code isn't bad and pretty close to how I would have suggested doing it. Try this:
It could be refined slightly but with such a small sketch it doesn't matter.
Code: Select all
int sensorPin = A3;
int sensorValue = 0;
int DirectionSwitch = 7; //Connect switch to this pin and GND
int DirectionOutput = 8; //Connect this pin to the direction pin on your stepper controller.
boolean SwitchState;
void setup() {
pinMode(DirectionOutput, OUTPUT); //direction pin
pinMode(DirectionSwitch, INPUT_PULLUP);
pinMode(9, OUTPUT); //step pin
//digitalWrite(8, LOW);
digitalWrite(9, LOW);
}
void loop() {
sensorValue = analogRead(sensorPin);
sensorValue = map(sensorValue,0,1023,3600,1);
SwitchState = digitalRead(DirectionSwitch);
digitalWrite(DirectionOutput, SwitchState);
digitalWrite(9, HIGH);
delayMicroseconds(sensorValue);
digitalWrite(9, LOW);
delayMicroseconds(sensorValue);
}
It could be refined slightly but with such a small sketch it doesn't matter.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
-
- Posts: 4
- Joined: Tue Apr 28, 2015 4:24 am
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
thank you for the code but its still not working as i have use a toggle switch for direction change but its not working
pls help me in this
pls help me in this
Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Can you tell me what Arduino board you are using, which pin on the Arduino you have the switch connected to, and that you have other side of the switch connected to GND?
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.