238Views7Replies

Author Options:

Controlling degree of multiple Stepper motors using one push button as a counter Answered

Hello everyone,

I am having 3x 28BYJ48 stepper motors and ULN2003 driver equally.

I want to control the stepper motors to a pre-defined degree based on the number of pushbutton has been pressed.

For an example,

i have motor x, y and z.

1) When the button is pressed zero time, all the motors need to be in zero degree.

2) when the button is pressed for the first time, motor x need to move to 90 degree, motor y to 120 degree and motor z to 180 degree.

3) when the button is pressed for the second time, motor x need to move to 110 degree, motor y to 150 degree and motor z move to 210 degree.

4) when the button is pressed for the third and last time, all the motors need to move back to zero degrees.

Can anyone guide me on this control?

Advance thanks to all

Discussions

0
None
iceng

1 year ago

Do you know how to debounce a push switch ?

Sadw or Hadw...

0
None
iceng

Best Answer 1 year ago

Very simple

(1) wire the four logic inputs to all three motors in parallel..

(2) add a zero cam micro switch to each motor and a diode from switch to UNL2003 ..

This lets you power all motors through their NC micro switch and pulse the logic of the UNL2003 simultaneously and when the cam cuts the power the motor will be stopped at zero..

(3) Now add three transistors that apply individual motor power through a diode.

(4) add a Fourth transistor to power all three micro switches.

(5) add a momentary push button and resistor to an input pin from Vcc to ground.

Software ;

A) power ON or FIRST press, Turn ON Fourth transistor and pulse the logic to rotate the steppers 1.2 % rotation this will zero all three motors and Fourth transistor off.

B) SECOND press XYZ transistors ON, pulse logic to rotate 90' and turn-off X transistor and keep pulsing to 120' and turn-off Y transistor and keep pulsing to 180' stop pulsing..

C) THIRD press XYZ transistors ON, pulse logic to rotate 20' and turn-off X transistor and keep pulsing to 10' and turn-off Y and Z transistor and stop pulsing..

D) Next press go to (A)..

0
None
icengiceng

Answer 1 year ago

And the circuit drawn just for you :-)

3Steppers.bmp
0
None
JaiJ11iceng

Answer 1 year ago

Hi Mr. Iceng,

This is really good, just want to clarify. the microswitches will be connected directly to the motor?

0
None
icengJaiJ11

Answer 1 year ago

You need to make a plastic cam.. Once the micro switch is mounted in place it will trip at the same point as the rotation is always in the same direction..

SWlimit_Step.PNGSWlimit_.PNG
0
None
icengiceng

Answer 1 year ago

Change to LH1505

0
None
iceng

1 year ago

1) Do you need a circuit schematic ?

2) Do you have Arduino programming skill set ?