ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

More
30 Dec 2022 12:22 #260543 by romanetz
Surely. Moreover, if you don't need even digital inputs you can run 5A-75B without any hardware modifications.
The following user(s) said Thank You: juergenmoser

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

More
30 Dec 2022 17:34 #260556 by tommylight
Yes, with normal step/dir drives.
The following user(s) said Thank You: juergenmoser

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

More
30 Dec 2022 21:54 #260577 by TOLP2
Without changing the buffers, you are limited to output only. For running steppers this is ideal as noted above. However, you are not limited to step/dir, although this is the most used system. When required you can also use up / down, or direct drive (i.e. Using a half-bridge).

Of you can share your setup, I'm more then willing to whip up a configuration and a manual how to proceed.
The following user(s) said Thank You: tommylight, juergenmoser

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

More
31 Dec 2022 06:56 - 31 Dec 2022 07:57 #260618 by vre
Hello.
If solder buffers for input can be used with H-bridge
for driving dc brushed servos with incremental encoder feedback ?
( pwm output / step-dir-quadrature output / encoder input / gpio )

What input buffer chips are needed and how to solder ? what modifications needed ?
example for 5A-75E v8 ?
(here does not have example for that version litex-cnc.readthedocs.io/en/latest/examples/index.html)
Last edit: 31 Dec 2022 07:57 by vre.

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

More
31 Dec 2022 14:24 #260643 by juergenmoser
So do I Have to reconfig the original Lcnc.ini and Lcnc.hal file for this? Im a newbie in this situation. Does anybody have a configuration for step/dir for 3 axes? Or maybe somebody can tell what to do in the hal file?
Attachments:

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

More
31 Dec 2022 15:54 - 31 Dec 2022 15:56 #260649 by muvideo

So do I Have to reconfig the original Lcnc.ini and Lcnc.hal file for this? Im a newbie in this situation. Does anybody have a configuration for step/dir for 3 axes? Or maybe somebody can tell what to do in the hal file?

 
Hi,
the files you are referring to are a configuration that Is already a 3 axes step+dir stepper configuration.
In that configuration the inputs are for reading stepper drivers alarm signal (Lcnc.00.input.03.in-n) and for the 3 endstops (Lcnc.00.input.00.in-n Lcnc.00.input.01.in-n Lcnc.00.input.02.in-n) used for homing the 3 axes.
With a board not modified you will lose the ability to read those inputs.
I'm pretty sure you can ignore them and leave the hal file as is, since if not connected these inputs will read zero as default. 
You will need to modify .ini file for the homing part to tell linuxcnc that you will not use switches, see here: linuxcnc.org/docs/html/config/ini-homing.html 
Cap 6.Configuration
HOME_SEARCH_VEL 0
HOME_LATCH_VEL 0
HOME_USE_INDEX NO
Consider that the pinout of stepper pins on the board depends on the bin file you are using in the FPGA 
Last edit: 31 Dec 2022 15:56 by muvideo.

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

More
31 Dec 2022 17:18 #260664 by juergenmoser
Hi muvideo,

okay thanks - i connected a stepper and i was wondering why it‘s not moving. I tried all axes/joints. (Card enabled and ready)So i will try to modify the home latching etc. all to zero. 
Thanks  all for the help!

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

More
31 Dec 2022 17:34 #260666 by TOLP2

Hello.
If solder buffers for input can be used with H-bridge
for driving dc brushed servos with incremental encoder feedback ?
( pwm output / step-dir-quadrature output / encoder input / gpio )

What input buffer chips are needed and how to solder ? what modifications needed ?
example for 5A-75E v8 ?
(here does not have example for that version litex-cnc.readthedocs.io/en/latest/examples/index.html)

For changing the buffers you would need to get som 74LVC245 buffers. The letters LVC are important here, because these buffers are 5V tolerant, whilst Vcc can be 3.3 Volts. 

For removing the old buffers I use a small pliers and cut all the legs. After that it is easy to remove the remainder of the leg from the solder pads one by one with some flux. This method prevents ripping pads of from the board. 

​​​​​Now you have to cut the traces to pin 1 and 20. Pin1 is for direction and normally connected to 5 V. Pin 20 is Vcc and is also connected to the 5 V rail. Check and double check whether the pads are disconnected with a multimeter. 

Now you can solder the new buffer in place. Connect pin 1 to GND, for example make a jumper to pin 10 of the adjacent buffer. Pin 20 has to be connected to 3.3 volt supply, for example from the JTAG header. Now the conversion is done. 

Now for the first part of the question: the H-bridge. I mentioned this as a way to drive stepper motors. For a DC motor you can try it, but maybe the loop from encoder - > fpga - > linuxcnc - > fpga - > motor is too slow. The loop take 1 ms, which is 1 kHz. Please try, although you have to whip this together in the Hal. 
​​​

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

More
31 Dec 2022 18:49 #260671 by muvideo

Hi muvideo,

okay thanks - i connected a stepper and i was wondering why it‘s not moving. I tried all axes/joints. (Card enabled and ready)So i will try to modify the home latching etc. all to zero. 
Thanks  all for the help!

The homing configuration should not block the motor from moving, maybe there Is something else not working in your case. You say that the board Is enabled, have you double checked the board pinout?
Verify that you are connecting the stepper driver to the right pins. Do you have means to check if a pin Is driven? (Dvm or scope)

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

More
31 Dec 2022 19:34 #260673 by juergenmoser
Yes i’ve watched the output now with an scope. So there is something going on. Maybe my stepper stepper driver is not working… i‘ve connected to J1 Pin 1 and 2 to the stepper driver and ground(pin 4) board 7a75b v8.1

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

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