Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
TB65603A Single Axis Stepper Motor Driver Board (HCMODU0022) 
Author Message

Joined: Tue Apr 22, 2014 7:21 am
Posts: 1
Post 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.


Tue Apr 22, 2014 7:48 am
Profile

Joined: Thu Jun 12, 2014 4:34 am
Posts: 2
Location: Melbourne, Australia
Post 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


Thu Jun 12, 2014 4:39 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 617
Post 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


Thu Jun 12, 2014 9:54 am
Profile

Joined: Thu Jun 12, 2014 4:34 am
Posts: 2
Location: Melbourne, Australia
Post 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.


Fri Jun 13, 2014 12:50 am
Profile

Joined: Tue Apr 28, 2015 4:24 am
Posts: 4
Post 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.


Tue Apr 28, 2015 5:00 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 617
Post 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.


Tue Apr 28, 2015 8:40 am
Profile

Joined: Tue Apr 28, 2015 4:24 am
Posts: 4
Post 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


Tue Apr 28, 2015 9:54 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 617
Post 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:

Code:
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.


Tue Apr 28, 2015 4:57 pm
Profile

Joined: Tue Apr 28, 2015 4:24 am
Posts: 4
Post 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


Wed Apr 29, 2015 5:53 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 617
Post 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?


Wed Apr 29, 2015 9:41 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 49 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD