- Posts: 62
- Thank you received: 30
ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
- muvideo
- Offline
- Senior Member
-
Less
More
4 years 6 months ago #239588
by muvideo
Replied by muvideo on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I think I was able to reproduce the lockout problem on the default target file of litex, on my PC running plain Ubuntu 20.04.
Submitted a sort of bugreport to litex people. I Hope they can reproduce and fix the problem.
Submitted a sort of bugreport to litex people. I Hope they can reproduce and fix the problem.
The following user(s) said Thank You: Inga
Please Log in or Create an account to join the conversation.
- TOLP2
- Offline
- Elite Member
-
Less
More
- Posts: 225
- Thank you received: 178
4 years 6 months ago - 4 years 6 months ago #239628
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I managed to implement the read function as well, using separate functions for read and write. Took some iterations, but with the version I have now, no more hangups of the board, even using a WiFi router to control it.
Now working on a watchdog. This one consist of two sections:
- on the card, which have to be petted (during write) before time out happens (5 ms default, param exported to change this). Will put all outputs to zero, because the board does not support three-state controlled by the FPGA. When the watchdog is happy, one or more (configurable up to your liking) will be HIGH, when the watchdog bites, this pin will be Low. This gives a way to disable drives physically.
- the driver also watches for dropped packets during read. Dropped packets adds to a counter, when the counter is to high (5 subsequent missed packets), the axe falls and communication is stopped. This means that the watchdog on the card will trigger 5 ms later as petting has stopped. The counter of missed packets is decreased every time a packet has successfully been sent.
Will keep you updated when this has been pushed to the repo (at this moment only driver side has been done).
Edit: Watchdog is done and reading data implemented (although packet collisions can occur).
Now working on a watchdog. This one consist of two sections:
- on the card, which have to be petted (during write) before time out happens (5 ms default, param exported to change this). Will put all outputs to zero, because the board does not support three-state controlled by the FPGA. When the watchdog is happy, one or more (configurable up to your liking) will be HIGH, when the watchdog bites, this pin will be Low. This gives a way to disable drives physically.
- the driver also watches for dropped packets during read. Dropped packets adds to a counter, when the counter is to high (5 subsequent missed packets), the axe falls and communication is stopped. This means that the watchdog on the card will trigger 5 ms later as petting has stopped. The counter of missed packets is decreased every time a packet has successfully been sent.
Will keep you updated when this has been pushed to the repo (at this moment only driver side has been done).
Edit: Watchdog is done and reading data implemented (although packet collisions can occur).
Last edit: 4 years 6 months ago by TOLP2.
The following user(s) said Thank You: besriworld, vit74vit
Please Log in or Create an account to join the conversation.
- Inga
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 10
4 years 6 months ago #239753
by Inga
Replied by Inga on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Well, that was not the last version of the colorcnc driver 
The original driver did some strange calculations on the step count that resultet in wrong stepper movements. I have fixed that.
I have also included code to set the static ARP entry for the card from the driver. That unfortunately implies that the driver needs to know on which interface the card is connected, e.g. "eth0". This is defined in colorcnc.c.
I really hope that is now the last update. I will now move to the mechanics of my mill.
Cheers,
Inga
The original driver did some strange calculations on the step count that resultet in wrong stepper movements. I have fixed that.
I have also included code to set the static ARP entry for the card from the driver. That unfortunately implies that the driver needs to know on which interface the card is connected, e.g. "eth0". This is defined in colorcnc.c.
I really hope that is now the last update. I will now move to the mechanics of my mill.
Cheers,
Inga
The following user(s) said Thank You: besriworld, tuzki, TOLP2, svb
Please Log in or Create an account to join the conversation.
- TOLP2
- Offline
- Elite Member
-
Less
More
- Posts: 225
- Thank you received: 178
4 years 6 months ago - 4 years 6 months ago #239845
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Thanks Inga for your improvements on the stability on the connection. Saw the issue as well at the LiteX-repository. Hope you won't mind I'll incorporate your changes in my version of
LiteX-CNC
.
Small update: included PDM with a resolution of 16-bit. Can be enabled by setting the PWM frequency to 0.
Also, I bought a second card to test the firmware out: a RV901T , which is also dirt cheap with 16 Euro + 7 Eur shipping. This card brings:
Small update: included PDM with a resolution of 16-bit. Can be enabled by setting the PWM frequency to 0.
Also, I bought a second card to test the firmware out: a RV901T , which is also dirt cheap with 16 Euro + 7 Eur shipping. This card brings:
- dual Ethernet;
- 64 inputs / outputs. Direction can presumably be set by the FPGA in groups of 8;
- 32 outputs only (the buffer is hard-wired;
- The pins are nicely located in two headers and is designed to have a hat on top. Let's make a dedicated CNC hat for this card as soon as it is working.
Last edit: 4 years 6 months ago by TOLP2.
The following user(s) said Thank You: besriworld, cncwhacko
Please Log in or Create an account to join the conversation.
- benitoss
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 2
4 years 6 months ago - 4 years 6 months ago #240540
by benitoss
Replied by benitoss on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
The Colorlight 5A-75B/E boards are supported by IceStudio IDE for (Linux, Windows or Mac systems)
You only need a FT2232H, FT232H or USB Blaster JTAG programmer
More information in : icestudio.io/
And in my Github that explains how to connect and configure the JTAG boards in Windows --> github.com/benitoss/ColorLight_FPGA_boards
You only need a FT2232H, FT232H or USB Blaster JTAG programmer
More information in : icestudio.io/
And in my Github that explains how to connect and configure the JTAG boards in Windows --> github.com/benitoss/ColorLight_FPGA_boards
Last edit: 4 years 6 months ago by benitoss.
The following user(s) said Thank You: tommylight, tuzki
Please Log in or Create an account to join the conversation.
- tuzki
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 1
4 years 6 months ago #240713
by tuzki
Replied by tuzki on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Can this IDE open the firmware of ColorCNC posted in the forum.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.170 seconds