Stepgen and 4-phase steppers

More
6 years 2 months ago #178403 by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Thanks. How about this case: I wire 4 wires from stepper to L298N. From L298N I get another 4 wires (in1...in4), which I put into parallel port pins 2, 3, 4, 5. Now I have to enable pins in the sequence 2, 4, 3, 5 to move stepper motor one step.

I use this L298N driver: sigmatechbd.com/product/l298-stepper-motor-drive/
And a dvd rom stepper motor.

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

More
6 years 2 months ago #178409 by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
Yeah, those require 4 pins and each has to be stepped by the PC, and those are exactly the ones i was talking about regarding powering them.
Have a look here:
forum.linuxcnc.org/10-advanced-configura...posing-a-pic?start=0
there is also a config attached that works for exactly that type of drives, it has everything set up for X and Y axis, the Z axis is used as PWM. Pins 6 to 9 are for X and pins 17,1,16,14 are fo Y axis.

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

More
6 years 2 months ago #178422 by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Thank you!

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

More
6 years 2 months ago #178724 by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Hi,

I have tried to configure (by hand, mostly copying configurations from uploaded examples) for one phase stepper motor control using Linuxcnc. Attached are *.hal and *.ini files. May I ask, if configuration files are right, assuming I connected L298N driver leads into parport 2, 3, 4, and 5 pins (motor A A* B B* leads I connected to L298N driver as suggested in spec.sheet)?

The stepper I am using is a motor from DVD ROM.
Driver - L298N.

My other question would be, if the parameters (e.g. cycle time, linear velocity, etc.) are set correct (I guess I left the default values)... Its hard to find those values for DVD ROM motor and L298N driver..

Thank you!
Attachments:

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

More
6 years 2 months ago #178737 by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
In your pinout.hal file there is
net XPA => parport.0.pin-03-out
net XPB => parport.0.pin-04-out
net XPC => parport.0.pin-05-out
net XPD => parport.0.pin-06-out

Not 2,3,4,5 as you say in the post, so correct that.
When testing set LinuxCNC to very low speed, like 100mm/minute and check if the motor turns.
Also set the step_type to 6 until the motor is turning correctly as it will make it easier to check, later you can try mode 7 or 8 or 9 and see what gets you more torque or more speed.

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

More
6 years 2 months ago #178742 by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Yes, sorry, I made mistake in post here. The pins are 3, 4, 5, and 6. Thanks for correction.

I tried to load this configuration file, however, I got error: function 'parport.0.read' not found in core_stepper.hal. For this reason LinuxCNC terminated.

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

Time to create page: 0.557 seconds
Powered by Kunena Forum