Stepper Motor to work like a DC

More
2 years 6 months ago #297535 by BonoCNC
It makes sense. The idea is to make a cleaner that work with a Geneva wheel principle. So I was thinking to "cut" dir signal (stepper driver) with an output reelay. And the stepper works continuously, only stop and go when that sensor triggers.

I saw that this principle is also used in some ATC mechanisms, but it uses a comp (I don't know what it is), and it is not necessary in this case.

Am I wrong?

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago - 2 years 6 months ago #297537 by tommylight
Is this for an existing machine with LinuxCNC control or just the axis alone?
For the latter, a simple pulse generator will do just fine, even an old transformer can make 50 or 60Hz pulses on it's own that can be used to run a stepper.
Small transformers are cheap and can be found on old radios/casette players/power adapters, etc. Use 2 resistors to bring the AC voltage to under 5V and wire it through the sensor to step pins on the drive.
Might be slow though...
Edit
Add a diode to prevent reverse polarity on input.
Last edit: 2 years 6 months ago by tommylight.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #297540 by BonoCNC
To implement in a small Linux machine I built. I am doing some tests in my free time. I am a rockie, but very interested in learning more!

Thanks. I will try and keep you updated!
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #297541 by tommylight

To implement in a small Linux machine I built. I am doing some tests in my free time. I am a rockie, but very interested in learning more!
In that case, go with LinuxCNC for sure, it is magnificent once you get into it, and you can control stuff as you want, whatever that may be.
Forget what i said above about transformers n stuff! :)

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #297563 by BonoCNC
It's possible to make, via hal, my mesa board generate permanent steps to this motor, right after I turn on the machine?

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #297567 by BonoCNC
# Step Gen setup

setp hm2_7i96.0.stepgen.03.steplen 1000000 # Step length (nanoseconds)
setp hm2_7i96.0.stepgen.03.stepspace 1000000 # Step space (nanoseconds)
setp hm2_7i96.0.stepgen.03.maxaccel 500000 # Maximum acceleration (steps/second^2)
setp hm2_7i96.0.stepgen.03.maxvel 5000 # Maximum velocity (steps/second)
setp hm2_7i96.0.stepgen.03.step_type 0 # Regular step type
setp hm2_7i96.0.stepgen.03.dirsetup 2000000 # Direction setup time (nanoseconds)
setp hm2_7i96.0.stepgen.03.dirhold 2000000 # Direction hold time (nanoseconds)
setp hm2_7i96.0.stepgen.03.control-type 1 # Control type (1 for position control)
setp hm2_7i96.0.stepgen.03.enable True # Enable the step generator initially

# Set initial direction for motor rotation
setp hm2_7i96.0.stepgen.03.direction 0

# Connect Step Gen outputs to motor driver
net motor-step => hm2_7i96.0.stepgen.03.step
net motor-direction => hm2_7i96.0.stepgen.03.dir

Can it be with something like this?

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.211 seconds
Powered by Kunena Forum