Replies: 8 comments 29 replies
|
Peter van Tol answered : Your English is much better then my French. And also, English is my second language because I'm located in The Netherlands. Let our languages not stand in the way of retrofitting your machine. I think it is possible to do it with the current modules in LitexCNC. The +/- 10 V signal, does that control speed or position? In case it controls speed, you need an encoder to determine the position, feed it as feedback to the PID. The PID then calculates the required speed (input is the commanded position), which is fed to the PWM module. In case it controls the position, you might be able to omit the PID completely for a first test. The PWM module supports up/down mode. In that case the PWM has two pins on the FPGA: one for direction and one for the PWM output. For conversion you can either buy a board or create PCB yourself. The hardware is not yet available. At this moment I'm designing a new line of PCBs to connect to the supported FPGAs. Each board has a connector with 4 GPIO, enable signal and power. Each board has a dimension of 71 mm long and 16 mm (or multiple of it) wide. The input and output is located on the short side. These dimensions have been chosen so multiple boards can be placed in a standard DIN housing (UM72). Currently I've developed the following boards:
Upcoming boards that are on my list at this moment are encoders (4 differential inputs) I think your development fits really nice in this line! |
|
Ok, good news ! The +/-10V signal controls speed. When you say "feed it as feedback to the PID", do you refer to the internal PID control of linuxCNC or to a PID control that I should implement into the electronics that will take place between the 5a-75E and the drive ? The only boards I found online are able to convert PWM to 0-10V but not PWM(+dir) to +/-10V. Do you know what board I can buy to convert PWM(+dir) to +/-10V ? The new PCBs you are designing look very interesting ! |
|
Peter van Tol answered : I'm referring to the PID controller in LinuxCNC. The only extra hardware you need are a couple of GPIO in or encoders and a PWM board for the output. The encoder output from the drivers: is rhat single ended (GPIO is good enough) or differential (board needs a design)? Then I know where to focus on with my development. Tonight I'll create a basic setup for a single axis for you. Can you supply me with the LED card type you have? For tuning the PID I have also an idea, but will elaborate on that as soon as I am on a PC. |
|
Ok ! I'm pretty sure the encoders from the drivers are differential ones since I have PAO/PAO*, PBO/PBO*, PCO/PCO* signals. |
|
Peter van Tol answered : Attached to this e-mail you find a configuration for your machine, it has:
In the encoder section you can also find 3 encoders for tuning the PID. You can use the output of these encoders as input for your PID. Some cheap encoders from AliExpress will do to give you some control over tuning the PID in real-time. When moved to the discussions, I will start creating a HAL-file. It's much easier to type in the code-editor over there, but also we can collaborate in creating the config for your machine. |
|
Thank you for the .json configuration file ! I'm currently trying to design the board that will convert pwm (+dir) to +/-10V. |
|
Could anyone check my design ? |
|
Hi,
All gerber and schematic include this:
https://github.com/horcsab/Colorlight-CNC-step-dir-to--10V-
Regards,
Csaba
2025. 11. 07. 16:04 keltezéssel, EhsanRasouli1371 írta:
…
Hi, I am attaching the schematic diagram., this is working!
+-10V_pwm_colorlight.pdf
<https://github.com/user-attachments/files/21104622/%2B-10V_pwm_colorlight.pdf>
Can you please share the Gerber file for this electronic circuit with us?
—
Reply to this email directly, view it on GitHub
<#133 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM7TNDDAMKF6BJBCOK65SFD33SYG5AVCNFSM6AAAAABZEBHZK2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIOJQGM2TONQ>.
You are receiving this because you commented.Message ID:
***@***.***>
|






Uh oh!
There was an error while loading. Please reload this page.
I found some very interesting discussions on GitHub about the use of a ColorLight with LinuxCNC.
I own a ColorLight 5A75E and I would like to retrofit an old 3axis CNC machine with AC Servo and drivers that I have to command with +/-10V (no possibility of step/dir command).
I would like to know if there is a solution not too complicated that uses LitexCNC, a ColorLight 5A75E and a breakout board (I can design and produce a PCB) in order to get a +/-10V output signal for each axis.
And then I will close the loop with the input board to connect the encoders to the 5A75E and allow LinuxCNC to do the PID calculations.
I saw on the LitexCNC webpage that they only offer step/dir or PWM signal but that's not what I'm looking for...
I hope I'm clear enough, and sorry for my bad English.
Thank you in advance
All reactions