LitexCNC: firmware and driver for 5A-75B and 5A-75E

More
10 May 2024 21:12 #300346 by Ehsan_R

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 have designed a PCB for this.
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.

More
11 May 2024 06:21 #300368 by wzor

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.

 

Everything works perfectly! No problems whatsoever!!!

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

More
11 May 2024 18:58 #300394 by besriworld
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.

More
11 May 2024 20:56 - 11 May 2024 21:01 #300398 by Ehsan_R
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
Last edit: 11 May 2024 21:01 by Ehsan_R.

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

More
12 May 2024 03:09 #300418 by besriworld
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.

 
​​​​
Attachments:
The following user(s) said Thank You: Ehsan_R

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

More
12 May 2024 14:38 - 12 May 2024 14:40 #300439 by Ehsan_R

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.

 

Thank you very much for your reply
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.

More
14 May 2024 05:48 - 14 May 2024 05:54 #300552 by Ehsan_R
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?
Last edit: 14 May 2024 05:54 by Ehsan_R.

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

More
13 Jun 2024 20:19 #302970 by olegnomad
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?

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

More
14 Jun 2024 00:32 #302975 by cornholio
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.

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

More
19 Jun 2024 08:23 #303337 by olegnomad
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.

Moderators: PCWjmelson
Time to create page: 0.125 seconds
Powered by Kunena Forum