- Posts: 22011
- Thank you received: 7491
Stepgen and 4-phase steppers
- tommylight
- Away
- Moderator
-
Less
More
6 years 2 months ago #179350
by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
setp parport.0.reset-time 500
IN THE HAL FILE NEEDS TO BE
setp parport.0.reset-time 5000
also when testing set the jog speed to very low or 20 to 50 mm/m.
12V will burn the L298 to a crisp as it does not have current limiting at all. Depending on the motor resistance/inductance 5 to 7V should be ok.
One more thing, when testing if you notice the motor vibrating but not spinning, you have to change two of the inputs of the L298 and test again, till you get the phases correct.
IN THE HAL FILE NEEDS TO BE
setp parport.0.reset-time 5000
also when testing set the jog speed to very low or 20 to 50 mm/m.
12V will burn the L298 to a crisp as it does not have current limiting at all. Depending on the motor resistance/inductance 5 to 7V should be ok.
One more thing, when testing if you notice the motor vibrating but not spinning, you have to change two of the inputs of the L298 and test again, till you get the phases correct.
Please Log in or Create an account to join the conversation.
- Skec
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 4
6 years 2 months ago - 6 years 2 months ago #179409
by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Yep, I have changed reset-time to 5000, as well as jog speed to 20 mm/s.
When trying with 12V, I put very very very think wires from L298N to stepper, which got hot.. L298N itself seem to be fine (it still works with 4 phase stepper).
I have tested all possible combinations for phases: ABC ACB BAC BCA CAB CBA. None of them spin the motor.
I changed phases in hal file:
e.g.
net XPA <= stepgen.0.phase-A
net XPB <= stepgen.0.phase-B
net XPC <= stepgen.0.phase-C
changed to
net XPA <= stepgen.0.phase-A
net XPB <= stepgen.0.phase-C
net XPC <= stepgen.0.phase-B
etc.
Does it count as changing the inputs of L298N?
When trying with 12V, I put very very very think wires from L298N to stepper, which got hot.. L298N itself seem to be fine (it still works with 4 phase stepper).
I have tested all possible combinations for phases: ABC ACB BAC BCA CAB CBA. None of them spin the motor.
I changed phases in hal file:
e.g.
net XPA <= stepgen.0.phase-A
net XPB <= stepgen.0.phase-B
net XPC <= stepgen.0.phase-C
changed to
net XPA <= stepgen.0.phase-A
net XPB <= stepgen.0.phase-C
net XPC <= stepgen.0.phase-B
etc.
Does it count as changing the inputs of L298N?
Last edit: 6 years 2 months ago by Skec.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
6 years 2 months ago #179410
by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
Yes it is the same as changing the inputs on the L298, but they have to be A, B, C, not A for all of them.
That leaves only one possibility, and that is that you are using one of the inputs on the L298 that is not connected to a motor winding.
That leaves only one possibility, and that is that you are using one of the inputs on the L298 that is not connected to a motor winding.
Please Log in or Create an account to join the conversation.
- Skec
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 4
6 years 2 months ago #179412
by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Sorry, it was my copy paste mistake. Not all As were in the hal configuration (XPA XPB XPC).
I have 3 wires from motor (A1 A2 A3) going to L298N out1 out2 and out3. L298N in1 in2 and in3 are connected to pin3, pin4, and pin5 in parport.
In the forum ( electronics.stackexchange.com/questions/...uino-and-l298-driver ) I found that COM from motor is connected to +5V... I am curious to try this..
I have 3 wires from motor (A1 A2 A3) going to L298N out1 out2 and out3. L298N in1 in2 and in3 are connected to pin3, pin4, and pin5 in parport.
In the forum ( electronics.stackexchange.com/questions/...uino-and-l298-driver ) I found that COM from motor is connected to +5V... I am curious to try this..
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
6 years 2 months ago #179416
by tommylight
That is needed only for open collector drives or transistors or mosfets.
Replied by tommylight on topic Stepgen and 4-phase steppers
DO NOT wire it to 5V, that will blow the L298.Skec wrote: In the forum ( electronics.stackexchange.com/questions/...uino-and-l298-driver ) I found that COM from motor is connected to +5V... I am curious to try this..
That is needed only for open collector drives or transistors or mosfets.
Please Log in or Create an account to join the conversation.
- Skec
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 4
6 years 2 months ago - 6 years 2 months ago #179418
by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
You just stopped me from blowing L298N!.. Thanks
Last edit: 6 years 2 months ago by Skec.
Please Log in or Create an account to join the conversation.
Time to create page: 0.751 seconds