ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
06 Dec 2022 15:13 #258706
by muvideo
Replied by muvideo on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
The option for flashing in the eeprom is -f, I'm using this command:
openFPGALoader --unprotect-flash -c ft232 -f Lcnc.bit
So if I remember correctly, J9-1 and J9-2 are step and direction of stepgen zero for your confiiguration.
Do you have a multimeter to check if the board is geenrating any voltage on these pins?
I would start with the simplest configuration possible:
Use HAL.hal in support files, use halshow to check the pins status and set them manually. Start first with the board enabling sequence, as expained in the readme, then adde all the pins and parameters of the stepgen 0 and if everything is right once you set the velocity command to a value other than zero you should see the position feedback in halshow change and see the pulses on the pins. If there are no pulses but the position is changing then maybe there is some problem in your pin mapping.
openFPGALoader --unprotect-flash -c ft232 -f Lcnc.bit
So if I remember correctly, J9-1 and J9-2 are step and direction of stepgen zero for your confiiguration.
Do you have a multimeter to check if the board is geenrating any voltage on these pins?
I would start with the simplest configuration possible:
Use HAL.hal in support files, use halshow to check the pins status and set them manually. Start first with the board enabling sequence, as expained in the readme, then adde all the pins and parameters of the stepgen 0 and if everything is right once you set the velocity command to a value other than zero you should see the position feedback in halshow change and see the pulses on the pins. If there are no pulses but the position is changing then maybe there is some problem in your pin mapping.
Please Log in or Create an account to join the conversation.
06 Dec 2022 15:42 #258710
by wuyatom
Replied by wuyatom on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
The voltage of J9-1 only fluctuates by 1-2V, and J9-2 will fluctuate by 3-6V. Because the power supply I use is 6.2V, it will only be generated when running the code. I tested it in jog mode, and J9- 1 and J9-2 are the Z axis, J9-3 and J9-5 are the Y axis, 67 is the X axis
Please Log in or Create an account to join the conversation.
07 Dec 2022 07:53 #258792
by wuyatom
Replied by wuyatom on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
It's ready to run. It's my wiring problem
Please Log in or Create an account to join the conversation.
08 Dec 2022 14:11 #258891
by wuyatom
Replied by wuyatom on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I tested it. When running the code, I found that the value of the G54 coordinates will always be offset by 0.01, sometimes it will become larger and sometimes it will be smaller.
Please Log in or Create an account to join the conversation.
08 Dec 2022 17:39 #258903
by romanetz
Replied by romanetz on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Lcnc driver from @muvideo has some position error that has to be compensated by PID regulator. Litexcnc driver and firmware has negligible static position error but some dynamic error, that depends on jitter.
The following user(s) said Thank You: wuyatom
Please Log in or Create an account to join the conversation.
08 Dec 2022 19:13 #258910
by Paragon
Replied by Paragon on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Firstly great work on this project folks.
I had great fun playing with 7i43 and Pluto cards many years back while upgrading my Denford CNC machines.
In advance please note I am rather green when it comes to surface mounted tech.
I have a question regarding package size of the output it's.
In previous threads it mention soic, I ordered some SN74LVC245ADW around the same time I ordered the 5A-75B (v8) for input level shifting but on arrival the SN74LVC245ADW have far to large a footprint than the existing 74HC245T located on the board.
I have around a zillion billion browser tabs open to data sheets while trying to figure out exactly what package is required for a drop in replacement and I have just lost my mind along with the will to live.
If I could add a emoji it would be an exploding head!
I had great fun playing with 7i43 and Pluto cards many years back while upgrading my Denford CNC machines.
In advance please note I am rather green when it comes to surface mounted tech.
I have a question regarding package size of the output it's.
In previous threads it mention soic, I ordered some SN74LVC245ADW around the same time I ordered the 5A-75B (v8) for input level shifting but on arrival the SN74LVC245ADW have far to large a footprint than the existing 74HC245T located on the board.
I have around a zillion billion browser tabs open to data sheets while trying to figure out exactly what package is required for a drop in replacement and I have just lost my mind along with the will to live.
If I could add a emoji it would be an exploding head!
Please Log in or Create an account to join the conversation.
09 Dec 2022 01:36 #258956
by wuyatom
Replied by wuyatom on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
可以把你的驱动和固件发下吗
Please Log in or Create an account to join the conversation.
09 Dec 2022 05:08 #258959
by wuyatom
Replied by wuyatom on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
setp pid.1.deadband 0.00001,The parameter has been modified and the position is correct
Please Log in or Create an account to join the conversation.
09 Dec 2022 09:51 #258982
by muvideo
Replied by muvideo on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Hi, I have used SN74LVC245APWR, the package should be tssop-20
The following user(s) said Thank You: Paragon
Please Log in or Create an account to join the conversation.
09 Dec 2022 14:43 #259004
by TOLP2
Request:
Does any have a decent CAD drawing of the 5A-75B and 5A-75E with accurate position of the HUB-75 headers. Still playing with the idea of creating a hat...
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I still have trouble to have a consistent timing of the board. Don't know which part of the toolchain is causing this trouble. I found that running the toolchain (Yosys, etc) leads to different timing constraints. To start debugging I'm going to reduce the clock speed a bit and modify the stepgen to have the bit-shift determined dynamically based on the clock-speed. For example:I noticed such a strange behavior of board: it accidentally stops to respond to incoming packets. Even for icmp. Unplugging with following plugging of ethernet cable recovers normal operation.
- with 40 Mhz and target maximum step frequency of 400 kHz the applied shift should 6 bits (63), because 40 Mhz / 128 = 629 kHz.
- with 20 Mhz the applied shift should be 5 bits (32) to get to the same speed.
Request:
Does any have a decent CAD drawing of the 5A-75B and 5A-75E with accurate position of the HUB-75 headers. Still playing with the idea of creating a hat...
Please Log in or Create an account to join the conversation.
Time to create page: 0.137 seconds