- Posts: 22011
- Thank you received: 7491
Stepgen and 4-phase steppers
- tommylight
- Away
- Moderator
-
Less
More
6 years 2 months ago #178822
by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
Nice.
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 #179270
by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Hi guys, me once again,
I do not know, if this question can be related to this topic.. but here it goes:
Can linuxcnc control BLDC motor with L298N driver? I have seen a youtube video (), where one controls BLDC with L298N and Arduino. I have attached the diagram (which I copied from the video).
If, however, question is not related to this topic, I will delete it.
Also, if you know information related to my question, I would appreciate if you could direct me.
Sincerely,
I do not know, if this question can be related to this topic.. but here it goes:
Can linuxcnc control BLDC motor with L298N driver? I have seen a youtube video (), where one controls BLDC with L298N and Arduino. I have attached the diagram (which I copied from the video).
If, however, question is not related to this topic, I will delete it.
Also, if you know information related to my question, I would appreciate if you could direct me.
Sincerely,
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 #179273
by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
linuxcnc.org/docs/html/man/man9/bldc.9.html
linuxcnc.org/docs/html/man/man9/stepgen.9.html
Both of them will do what you want, BLDC with no feedback or stepgen with step type 3 or 4.
linuxcnc.org/docs/html/man/man9/stepgen.9.html
Both of them will do what you want, BLDC with no feedback or stepgen with step type 3 or 4.
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 #179276
by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Beautiful! Thank you!
For hal file I imagine its very similar to 4-phase case (with corresponding stepgen, and pin changes)..
What about ini file? Shall it be set somewhat specific (in case I just want the motor to spin max rpm)?
In coming days will try to set up linuxcnc config, and report/post the results.
Best!
For hal file I imagine its very similar to 4-phase case (with corresponding stepgen, and pin changes)..
What about ini file? Shall it be set somewhat specific (in case I just want the motor to spin max rpm)?
In coming days will try to set up linuxcnc config, and report/post the results.
Best!
Last edit: 6 years 2 months ago by Skec.
The following user(s) said Thank You: tommylight
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 #179277
by tommylight
Replied by tommylight on topic Stepgen and 4-phase steppers
Nothing specific, just make it spin, then you can tweak and tune as much as you like.Skec wrote: What about ini file? Shall it be set somewhat specific (in case I just want the motor to spin max rpm)?
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 #179335
by Skec
Replied by Skec on topic Stepgen and 4-phase steppers
Hi,
I have tried to run BLDC motor on linuxcnc, using step_type=3.
1. With 5 V, the motor slightly vibrates, when in linuxcnc pressing + or - continuous movement. It seems like trying to keep position (when I spin motor with my hand a bit, it returns to its position (both CW and CWW).
2. With 12V, 3 wires, connecting motor with driver start to smoke.. (motor still does not move, feels like keeping the position).
I have attached the hal and ini file.
In hal file, I think stepgen.capture-position is not needed (?).
Also, I tried to add stepgen.N.maxvel. However, motor did not spin.
What shall be my next moves?
Also, could you please suggest, how shall hal file look using man9 bldc?
Sincerely,
Simonas
I have tried to run BLDC motor on linuxcnc, using step_type=3.
1. With 5 V, the motor slightly vibrates, when in linuxcnc pressing + or - continuous movement. It seems like trying to keep position (when I spin motor with my hand a bit, it returns to its position (both CW and CWW).
2. With 12V, 3 wires, connecting motor with driver start to smoke.. (motor still does not move, feels like keeping the position).
I have attached the hal and ini file.
In hal file, I think stepgen.capture-position is not needed (?).
Also, I tried to add stepgen.N.maxvel. However, motor did not spin.
What shall be my next moves?
Also, could you please suggest, how shall hal file look using man9 bldc?
Sincerely,
Simonas
Please Log in or Create an account to join the conversation.
Time to create page: 0.231 seconds