LitexCNC: firmware and driver for 5A-75B and 5A-75E
10 May 2024 21:12 #300346
by Ehsan_R
I posted the schematic of the board in some previous posts
By the way, I used differential signal transmitter ICs to send pulse and direction
But the problem is that the board generates steps even though the value of the <board-name>.stepgen.<index/name>.enable pin is zero.
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I have designed a PCB for this.This board is not good for high speed step/dir .
For reliability you need differential signals.
It is also important to have a nice layout for the input signals.
I posted the schematic of the board in some previous posts
By the way, I used differential signal transmitter ICs to send pulse and direction
But the problem is that the board generates steps even though the value of the <board-name>.stepgen.<index/name>.enable pin is zero.
Please Log in or Create an account to join the conversation.
11 May 2024 06:21 #300368
by wzor
Replied by wzor on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Everything works perfectly! No problems whatsoever!!!This board is not good for high speed step/dir .
For reliability you need differential signals.
It is also important to have a nice layout for the input signals.
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
11 May 2024 18:58 #300394
by besriworld
Replied by besriworld on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
You may have a problem with input isolated signals - not good for a "noisy" environment. The 5-axis Chinese controller uses the same simplified scheme. What drivers are you using? Do you have movement at first power on the control board? Why are you ignoring the enabling signal?
Please Log in or Create an account to join the conversation.
11 May 2024 20:56 - 11 May 2024 21:01 #300398
by Ehsan_R
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I use a servo motor
What do you mean by enabling signal?
How do I connect it?
Even if I disable the motors, the position of the axes changes
I don't want the position of the axis to change every time I close the software or press the power button or e stop
Please see this post to understand what I mean
github.com/Peter-van-Tol/LiteX-CNC/discu...ssioncomment-9351198
What do you mean by enabling signal?
How do I connect it?
Even if I disable the motors, the position of the axes changes
I don't want the position of the axis to change every time I close the software or press the power button or e stop
Please see this post to understand what I mean
github.com/Peter-van-Tol/LiteX-CNC/discu...ssioncomment-9351198
Last edit: 11 May 2024 21:01 by Ehsan_R.
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Elite Member
Less
More
- Posts: 250
- Thank you received: 70
12 May 2024 03:09 #300418
by besriworld
Replied by besriworld on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
It is normal for the position to change when you close the program. That's why we have homing or motors with an absolute multi-turn encoder so that linuxcnc can know the new position. It may be only a few microns, but the position is changing. this is the enabling signal on my drivers.
If the signal is missing the motor will not move.
If the signal is missing the motor will not move.
Attachments:
The following user(s) said Thank You: Ehsan_R
Please Log in or Create an account to join the conversation.
12 May 2024 14:38 - 12 May 2024 14:40 #300439
by Ehsan_R
Yes, your answer is logical.
But according to what is in the litexcnc docs
I noticed that this problem does not exist in speed mode
So putting the board in speed mode when I press the estop button solved the problem
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Thank you very much for your replyIt is normal for the position to change when you close the program. That's why we have homing or motors with an absolute multi-turn encoder so that linuxcnc can know the new position. It may be only a few microns, but the position is changing. this is the enabling signal on my drivers.
If the signal is missing the motor will not move.
Yes, your answer is logical.
But according to what is in the litexcnc docs
I noticed that this problem does not exist in speed mode
So putting the board in speed mode when I press the estop button solved the problem
Attachments:
Last edit: 12 May 2024 14:40 by Ehsan_R.
Please Log in or Create an account to join the conversation.
14 May 2024 05:48 - 14 May 2024 05:54 #300552
by Ehsan_R
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Hello
Has anyone been able to do homing in Litex using encoder index pulse?
According to what I observed, when the homing switch signal is received in linuxcnc, the axis value is reset, but the encoder position value is reset when the encoder index pulse is received.
This difference causes an error in homing when the axis and encoder counter are reset.
In litex there is a pin called <board-name>.encoder.<n>.reset (HAL_BIT) which resets the encoder value.
Can anyone tell me how to configure it in Hal so that when the axis is reset the encoder value is also reset?
Has anyone been able to do homing in Litex using encoder index pulse?
According to what I observed, when the homing switch signal is received in linuxcnc, the axis value is reset, but the encoder position value is reset when the encoder index pulse is received.
This difference causes an error in homing when the axis and encoder counter are reset.
In litex there is a pin called <board-name>.encoder.<n>.reset (HAL_BIT) which resets the encoder value.
Can anyone tell me how to configure it in Hal so that when the axis is reset the encoder value is also reset?
Last edit: 14 May 2024 05:54 by Ehsan_R.
Please Log in or Create an account to join the conversation.
13 Jun 2024 20:19 #302970
by olegnomad
Replied by olegnomad on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Hello
i write bitstream in flash with h:\CNC\LiteX-CNC-main\docs\src\examples\json\zipped\5a-75e_v6.0_i48o56_FULL\build\5a-75e_v6.0_i48o56\gateware\colorlight_5a_75e.bit firmware for 5a-75e_v8.2.
What pinout for step/dir and other?
i write bitstream in flash with h:\CNC\LiteX-CNC-main\docs\src\examples\json\zipped\5a-75e_v6.0_i48o56_FULL\build\5a-75e_v6.0_i48o56\gateware\colorlight_5a_75e.bit firmware for 5a-75e_v8.2.
What pinout for step/dir and other?
Please Log in or Create an account to join the conversation.
14 Jun 2024 00:32 #302975
by cornholio
Replied by cornholio on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
No step & direction in config.
github.com/Peter-van-Tol/LiteX-CNC/blob/...75e_v6.0_i48o56.json
You might be best off having a look through the github repo to see how things work.
github.com/Peter-van-Tol/LiteX-CNC/blob/...75e_v6.0_i48o56.json
You might be best off having a look through the github repo to see how things work.
Please Log in or Create an account to join the conversation.
19 Jun 2024 08:23 #303337
by olegnomad
Replied by olegnomad on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I'm just starting to learn Linuxcnc, litexcnc. Can someone upload json files for 5a-75e v6.0 and ini,hal files for linuxcnc? Or a ready-made firmware file.
Please Log in or Create an account to join the conversation.
Time to create page: 0.125 seconds