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

More
28 Mar 2023 07:08 #267672 by deroj
I really like this project.
Today the second 5A-75B-V8.0 will arrive. Can´t wait to flash it with LiteX.

And when I get the workflow for the modules finally, things will become even more exciting

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

More
05 Apr 2023 19:20 #268348 by romanetz
@TOLP2 can you explain how to deal with stepgen constraints and how to set them properly? Imagine that one is implementing a machine with servo drives configured to 1000 steps/mm and maximum speed 1m/sec (60m/min) (this yields 1 MHz step clock). Let servo period will be 500 usec, jitter is 10 usec (10/500=2%) and expected joint following error 20 um at a maximum speed (possible position error caused by jitter at a maximum speed: 10us*1m/sec=+-10 um). Are these values achievable? How to set up pick up value properly?

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

More
06 Apr 2023 06:54 - 06 Apr 2023 06:57 #268393 by deroj
Maybe this answer which helped me, will help you....

forum.linuxcnc.org/27-driver-boards/4442...ard?start=490#263931

As mentioned in the documentation, the max step frequency will be 400kHz
Last edit: 06 Apr 2023 06:57 by deroj.

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

More
08 Apr 2023 14:24 #268606 by tuxcnc
There is already 54 pages...
Can anybody give brief info, is ColorCNC works, is ready for use in real machine, and how to install it?
Thanks in advance.

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

More
17 Apr 2023 08:33 - 17 Apr 2023 08:46 #269286 by deroj
Here is my way....

Install Linux from official ISO
DEBIAN 10 - LINUXCNC 2.8.4 - ISO

Install packages:

sudo apt install python3-pip
sudo apt install git

pip3 install pydantic==1.10.5
pip3 install packaging==21.3
pip3 install ninja==1.11.1
pip3 install chardet==5.1.0
pip3 install meson==0.64.1
pip3 install requests==2.28.2
pip3 install yapps==2.2.0
pip3 install importlib-metadata

pip3 install -i test.pypi.org/simple/ litexcnc[cli]==0.9.0a5
litexcnc install_litex --user
litexcnc install_toolchain --user


#edit or check .bashrc and .profile
# set PATH so it includes user's private bin and oss-cad-suite directories if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

# set PATH so it includes oss-cad-suite
if [ -d "/home/oj/oss-cad-suite/bin" ] ; then
PATH="/home/oj/oss-cad-suite/bin:$PATH"
fi

Install driver for LinuxCNC
litexcnc install_driver

this will compile the modules for linuxcnc. when you get the no permission error to copy the files to the linuxcnc folder you
will have to modify the file install_driver.py on line 19. found in ~/.local/lib/python3.7/site-packages/litexcnc/cli/
change 'halcompile.py --install' to 'halcompile.py --compile'

run 'litexcnc install_driver' again and it will compile the driver without copy them.

then copy the modules manually with sudo

open a terminal
cd .local/lib/python3.7/site-packages/litexcnc/driver/
sudo cp litexcnc.so /usr/lib/linuxcnc/modules
sudo cp litexcnc_eth.so /usr/lib/linuxcnc/modules
sudo cp pos2vel.so /usr/lib/linuxcnc/modules


create, or edit a JSON config file for your board. I used one of the examples and changed to my needs
litex-cnc.readthedocs.io/en/latest/examples/index.html

litexcnc build_firmware "<path-to-your-configuration.json>" --build
Last edit: 17 Apr 2023 08:46 by deroj.
The following user(s) said Thank You: svb

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

More
27 Apr 2023 09:06 #270047 by kzali

There is already 54 pages...
Can anybody give brief info, is ColorCNC works, is ready for use in real machine, and how to install it?
Thanks in advance.

Is this project alive?  Any real world schematics/examples.!

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

More
27 Apr 2023 20:20 #270082 by MartijnD
The project is alive, please check this: github.com/q3k/chubby75/issues/107#issuecomment-1517377816
@TOLP2 is working on his prove of concept.

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

More
07 May 2023 18:17 #270879 by tuxcnc
I have a question...

How to write bitstream to flash?

I have installed litex-cnc and all I need, I can compile bitstreams.
I have got Lattice HW-USBN-2A and installed Lattice Diamond Programmer, I can write bitstream to FPGA, but the W25Q32 flash chip is invisible.
This is not problem in development, but CNC driver which losts firmware at every power off is unusable...

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

More
07 May 2023 18:22 - 07 May 2023 18:26 #270880 by MartijnD
I mentioned the same and was checking if I did something wrong. Apparently I'm not the only one ;)
I'm using a "ESP-prog" to program my FPGA

Due I'm quite unexperienced with LinuxCNC I am looking for easy way to create an configuration to get started...
Let's say I am building a XYZ mill with 2 Y motors.
Last edit: 07 May 2023 18:26 by MartijnD. Reason: added my unexperienced story ;)

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

More
08 May 2023 14:33 #270929 by meister
can't wait to play with it :)
 

v8.2
Attachments:

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

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