TB65603A Single Axis Stepper Motor Driver Board (HCMODU0022)

Stepper and DC type motor drivers
slavric
Posts: 1
Joined: Tue Apr 22, 2014 7:21 am

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by slavric » Tue Apr 22, 2014 7:48 am

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.

p1drobert
Posts: 2
Joined: Thu Jun 12, 2014 4:34 am
Location: Melbourne, Australia

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by p1drobert » Thu Jun 12, 2014 4:39 am

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

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by andrew » Thu Jun 12, 2014 9:54 am

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
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

p1drobert
Posts: 2
Joined: Thu Jun 12, 2014 4:34 am
Location: Melbourne, Australia

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by p1drobert » Fri Jun 13, 2014 12:50 am

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.

jatin13978
Posts: 4
Joined: Tue Apr 28, 2015 4:24 am

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by jatin13978 » Tue Apr 28, 2015 5:00 am

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.

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by andrew » Tue Apr 28, 2015 8:40 am

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.

jatin13978
Posts: 4
Joined: Tue Apr 28, 2015 4:24 am

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by jatin13978 » Tue Apr 28, 2015 9:54 am

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

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by andrew » Tue Apr 28, 2015 4:57 pm

You code isn't bad and pretty close to how I would have suggested doing it. Try this:

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.

jatin13978
Posts: 4
Joined: Tue Apr 28, 2015 4:24 am

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by jatin13978 » Wed Apr 29, 2015 5:53 am

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

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0

Post by andrew » Wed Apr 29, 2015 9:41 am

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.

Post Reply

Return to “Motor drivers”