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
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 697
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
You've split the code up into 3 sections for each motor but in each section your still writing to and reading from the same 'Speed' variable. You need to relabel them to Speed, Speed1, and Speed2 just like you have done with everything else.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Wed Aug 05, 2015 2:29 pm
Profile

Joined: Mon Aug 03, 2015 1:08 pm
Posts: 8
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Thank you all for your help! It worked! Anyone interested post sketches 3 and 2 motors .

Now the next task: it is necessary that the stepping motor followed resistor: resistor turned on x degrees to the right and the motor cranked to X degrees to the right, turned x degrees to the left and the motor turned x degrees to the left. And yet, we must manage from the Arduino electromagnet 3 of 3 buttons. Is it possible to implement all of it in this library? More precisely, I need it to be one management program


You do not have the required permissions to view the files attached to this post.


Fri Aug 07, 2015 2:01 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 697
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Quote:
Now the next task: it is necessary that the stepping motor followed resistor: resistor turned on x degrees to the right and the motor cranked to X degrees to the right, turned x degrees to the left and the motor turned x degrees to the left.


If you take a look at the top of the example sketch the following function is used to set the number of steps the motor should turn:

Code:
HCMotor.Steps(0,CONTINUOUS);


In the sketch it is set to continuously turn the motor. Replacing the CONTINUOUS parameter with a number will cause the motor to step by that number of clock pulses and then stop. This function can be used anywhere in your code.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Sat Aug 08, 2015 7:47 am
Profile

Joined: Mon Aug 03, 2015 1:08 pm
Posts: 8
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Thank you!

Hello again! Wrote the sketch. In the first part of the 2 motors are controlled by potentiometers (your example) it works :!:

In the second part, 3 of the motor are controlled by potentiometers in proportion. There is a serious bug: :shock: if the potentiometer is set =/=0 volts, turning on the motors start to move into the position of the potentiometer. But if the potentiometer is set to =0 volts - no rotation when turning.

For control I use the joysticks, which are returned to the middle position by springs. How to make it clear to the controller when switched on, the motors are already in the middle position, that they did not rotate? Tell me, how can it be solved :?:

Thank you! :D


You do not have the required permissions to view the files attached to this post.


Sun Aug 09, 2015 11:31 am
Profile

Joined: Fri Sep 04, 2015 9:46 pm
Posts: 2
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
I tried this code, always work but now my stepper motor can't reverse why?

HCMotor.Direction(0, REVERSE);

only FORWARD, what can I do?


Tue Sep 15, 2015 11:56 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 697
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
I need to ask a few questions to understand your problem a little better:

Did the reverse ever work with your setup?

I assume that as you are posting in the TB6560 thread that you are using controlling the stepper motor via a TB6560? If so what do you have the CW+ and CW- terminals connected to on your Arduino?

Can you also confirm that you are seeing the problem when using the example sketch in the first post of this forum.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Wed Sep 16, 2015 7:52 am
Profile

Joined: Fri Sep 04, 2015 9:46 pm
Posts: 2
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Yes, everything working fine backward and reverse, using the same schematic connections from example sketch in the first post of this forum, nema23 24v, potentiometer, arduino uno r3. Also the code is ok.

the problem is the stepper get stucked at one direction, FORWARD. REVERSE can't.

CLK+ goes to Pin 9 arduino
CW+ goes to Pin 8 arduino
CLK- and CW- goes to ground on arduino

A+ goes to black cable
A- green cable
B+ red
B- blue

or theres something setting on SW1, SW2, SW3, and the switches S1, S2, S3 RKZC to do??


Wed Sep 16, 2015 4:19 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 697
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Your connections to the Arduino look fine. I cant comment about your motor connections but I doubt it would turn ok in the forward direction if anything was wrong.

SW1, SW2, SW3, and S1 set the running current for your motor. You need to set this to whatever your motor is spec'd to. If this is set too low the driver may not be providing enough current to turn it but don't set it to a current above what your motor can handle otherwise it may burn it out.

S2 sets the stop current so I doubt this will be causing the problem

S3 & S4 sets the excitation mode. This sets in what combination it pulses each coil within the motor. Higher settings should give you more torque so you can try changing these to see if it will help turn the motor in reverse. For higher settings you will need extra pulses on the clock pin to turn the motor by the same amount.

S5 and S6 set the decay mode which handles how the driver removes current from the motor and again I doubt this will be causing your problem.

What are you doing with the enable input? Is this tied to anything or left disconnected?

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Sep 17, 2015 9:23 am
Profile

Joined: Wed Oct 28, 2015 7:58 am
Posts: 3
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
I propose to use this board with a 23mm stepping motor as a small, low speed, high torque, unidirectional winch to wind a long-case grandfather clock. I am unfamiliar with the use of stepping motors and should be grateful for any help and suggestions.

When the motor is unpowered the detent torque is low so the winch should unwind as the clock weight moves down.

I shall use the circuit in Post [1] of this thread, but, rather than an Arduino, will use a simple 4093 CMOS oscillator to drive the step input and hard-wire the direction and enable terminals. My switch settings would seem to have to be 1 0 1 0 0 1 0 0 0.

I should be grateful for inputs on the following points:-

[1] Are the switch settings correct?

[2] Is the motor speed 60f/200 r.p.m. where f is the step input frequency? Do I need unity mark/space ratio on the step input or will any pulse train of the correct frequency do?

[3] What is the input impedance of the step input terminal? What is its maximum input voltage? (i.e. Can I run my 4093 from the +15V supply I shall be using? If not and I use +5V from the 78M05 regulator will it supply sufficient current to the opto isolator?)


Wed Oct 28, 2015 2:47 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 697
Post Re: TB65603A Single Axis Stepper Motor Driver Board (HCMODU0
Quote:
[1] Are the switch settings correct?


From your settings it looks like you have the running current set to 2A. You'll need to check the specification for your motor to see if this is correct. For excitation mode iit looks like you will need two clock pulses for each step of the motor.


Quote:
[2] Is the motor speed 60f/200 r.p.m. where f is the step input frequency?


I'm assuming the 200 in your equation is because your stepper motor has 200 steps per 1 revolution? I'm not sure what the 60 is referring to. From your settings I think your RPM would be (f/2) / 200.

Quote:
Do I need unity mark/space ratio on the step input or will any pulse train of the correct frequency do?


I've had a quick look at the TB6560 datasheet but unfortunately it does't seem to specify the mark to space ratio of the clock input. I does however give a minimum clock pulse width of 30us so maybe it can be inferred from that.

Quote:
What is the input impedance of the step input terminal?


The step/clock input is connected to the TB6560 via an optocoupler with a 330R resistor in series. With a 5V input you should expect to see about a 10mA load.


Quote:
What is its maximum input voltage? (i.e. Can I run my 4093 from the +15V supply I shall be using?


Based on the datasheet and current limiting resistor I would not apply anything more than 6V to the clock input. As it just a connection to optocoupler you can however just add an additional resistor in series. Again based on the datasheet if you wanted to drive it with a 15 volt source then an additional 10K resistor would seem about right to me.

Quote:
If not and I use +5V from the 78M05 regulator will it supply sufficient current to the opto isolator?


I'm not sure what the 5V regulator you are referring to is but this would be a factor of the source/sink capability of the 4093.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Oct 29, 2015 9:44 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 1 guest


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