Gallery, Projects and General > How do I??
Power supply for Nema 23 Stepper ?
mc:
Back to basics. Think of each control input to the driver as a little light bulb (they are actually an LED, just a fully enclosed one), that need both a positive and negative to light up.
The ENA, is your Enable. You need to apply power to this so the driver starts outputting power to the motor. The basic test for this, is with the main power connected to the driver, and the ENA powered, the motor should lock and remain stationary.
The DIR, is Direction. As the name says, it controls what direction your motor turns. Unpowered, the motor goes one direction, powered the motor should go the opposite direction.
The PUL, is Pulse, or more commonly referred to as Step. Each time this input gets switched on, the driver moves the motor one micro step (this depends on how the jumpers on the driver are set. On the driver you have, this could be 1 full motor step (1.8deg) down to 1/32 step (theoretically 0.5625deg or 3.375seconds).
To have your motor continually locked, you need to power the Enable. How you achieve this will depend on how you can get a continuous 5V. If you power up the control board you have without switching it on, is there 5V available at any of the terminals?
Looking at the photo, it's using a bog standard 5V regulator, so you should be able to use the input ground wire as the 0V, then probe the rest of the unknown terminals to see if any have continuous 5V. If there is no 5V, check again with the board switched on. It won't help you, but it'll at least establish what the unmarked terminals do.
I would hazard a guess, the two terminals marked in chinese are a 0V and a 5V connection.
If the board only outputs 5V when switched on, then I'll suggest other options.
And for those mentioning switching positives/negatives (other than the obvious diagram error of the main supply wires from the PSU to the driver being wrong - if you had done this, the driver would be a paperweight as soon as you powered it up) , and it making a difference, for the purpose of what you're trying to achieve here, it'll make no difference. Pulse timing and switching polarity does make a difference in CNC, however here you simply want to get the motor to lock/spin, so step/dir timing/polarity can be ignored.
Buell:
Ok so just to clarify the diagram above for the controller is THE WRONG ONE ! it was just something I started with.
The unit im using is the One in this picture...
It has the following connections None of which I have any idea what they do or how they work !
EN>>>>DIR>>>>>CLK>>>>Chinese writing>>>>>>>>Chinese Writing.
I have wired as Follows and it works perfectly !!! Only issue is that I would like IT to LOCK WHEN NOT BEING USED.
EN>ENA-
DIR>DIR-
CLK>PUL-
Last Chinese writing>DIR+5V Which has a link to pul+5V and a link to ENA+5v
excuse my lack of knowledge in this Im surprised it hasn't gone up in smoke yet ! I know nothing about this wiring i just wanted the motor to turn and lock in two directions with a decent amount of torque. As i say if you see the video it works just doesn't lock up when not used or off. Which will be helpful as i intend to use on a mill. Many thanks the item is of aliexpress and ebay.
This is what the mnf says.... thanks for all the help maybe this isn't possible ?
5613
Stepper Motor Driver Controller PWM Pulse Signal Generator Speed Control 12V-24V
Description :
1 this module is a pulse generation module, supply the control signal to stepper driver.
To control the stepper motor, it must be equipped with a drive.
2 this simple controller + stepper motor + stepper motor + DC power supply can be composed of a simple set of control platform.
3 the controller has high 5.4k-160khz, middle 540-16.6khz, low 80-2.4khz total of 3 kinds of low frequency signal can be used to select the jumper.
4 can produce pulse signal, can also produce PWM signal, can choose the jumper.
5 the frequency of measurement: PUL and common cathode end.
Different stepper driver may mark different name
EN=ENA=FREE Enable
PUL=PULS=CLK Pulse
DIR=CW=CWW Direction
Common anode Connection method (B)
EN+ PUL+ DIR+ connect together to com+。
EN- connect EN
PUL- connect CLK
DIR- connect DIR
Common cathode Connection method (B)
EN- PUL- DIR- connect together to com-。
EN+ connect EN
PUL+ connect CLK
DIR+ connect DIR
Buell:
--- Quote from: mc on November 30, 2018, 03:41:04 PM ---Back to basics. Think of each control input to the driver as a little light bulb (they are actually an LED, just a fully enclosed one), that need both a positive and negative to light up.
The ENA, is your Enable. You need to apply power to this so the driver starts outputting power to the motor. The basic test for this, is with the main power connected to the driver, and the ENA powered, the motor should lock and remain stationary.
The DIR, is Direction. As the name says, it controls what direction your motor turns. Unpowered, the motor goes one direction, powered the motor should go the opposite direction.
The PUL, is Pulse, or more commonly referred to as Step. Each time this input gets switched on, the driver moves the motor one micro step (this depends on how the jumpers on the driver are set. On the driver you have, this could be 1 full motor step (1.8deg) down to 1/32 step (theoretically 0.5625deg or 3.375seconds).
To have your motor continually locked, you need to power the Enable. How you achieve this will depend on how you can get a continuous 5V. If you power up the control board you have without switching it on, is there 5V available at any of the terminals?
Looking at the photo, it's using a bog standard 5V regulator, so you should be able to use the input ground wire as the 0V, then probe the rest of the unknown terminals to see if any have continuous 5V. If there is no 5V, check again with the board switched on. It won't help you, but it'll at least establish what the unmarked terminals do.
I would hazard a guess, the two terminals marked in chinese are a 0V and a 5V connection.
If the board only outputs 5V when switched on, then I'll suggest other options.
And for those mentioning switching positives/negatives (other than the obvious diagram error of the main supply wires from the PSU to the driver being wrong - if you had done this, the driver would be a paperweight as soon as you powered it up) , and it making a difference, for the purpose of what you're trying to achieve here, it'll make no difference. Pulse timing and switching polarity does make a difference in CNC, however here you simply want to get the motor to lock/spin, so step/dir timing/polarity can be ignored.
--- End quote ---
This is a good start thank you ..Ok so with the controller off...but power and it lite up the last output has a permanent 5v its the one im using that goes to ..DIR+5v that links to ENA + 5V and also goes to Pul+..
Now what ?
mc:
--- Quote from: Buell on November 30, 2018, 04:47:59 PM ---
This is a good start thank you ..Ok so with the controller off...but power and it lite up the last output has a permanent 5v its the one im using that goes to ..DIR+5v that links to ENA + 5V and also goes to Pul+..
Now what ?
--- End quote ---
I've just realised the controller has a ENA output, which you are using, but don't want to be as it'll be getting controlled by the on/off switch.
In which case, moving the wire you have connected to the ENA output over to a 0V terminal (I'd guess the other mystery Chinese terminal will be 0V, but best check first), should mean the driver is enabled and the motor locked with everything powered up, but the controller switched off.
Switching on the controller should then allow you to control the motor, then switching off lock the motor again.
Buell:
Checked 0 volts on the terminal next to it so just shift the wire to that terminal and leave the other end at the driver thats has connections on ENA+ DIR+ AND PUL +?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version