- Hardware & Machines
- Computers and Hardware
- LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 770
- Thank you received: 485
14 Aug 2026 05:57 #348722
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I’d guess that with the Mesa card, the voltage is slightly higher than that of your level shifter, which produces a more stable pulse.
It must be right on the limit, as some pulses get through and some don’t; even 0.2 volts could make the difference.
All in all, I’d recommend not using the drivers – not with Mesa, anyway – as the threshold is too close to the limit.
Or you’ll need to switch to 12/24V so that the driver is triggered reliably.
If you have a variable power supply, you could try increasing the voltage to 5.5 V and see if that helps; the level shifter should be able to cope with that.
It must be right on the limit, as some pulses get through and some don’t; even 0.2 volts could make the difference.
All in all, I’d recommend not using the drivers – not with Mesa, anyway – as the threshold is too close to the limit.
Or you’ll need to switch to 12/24V so that the driver is triggered reliably.
If you have a variable power supply, you could try increasing the voltage to 5.5 V and see if that helps; the level shifter should be able to cope with that.
Please Log in or Create an account to join the conversation.
- viewsat
- Online
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 4
14 Aug 2026 06:19 - 14 Aug 2026 07:02 #348723
by viewsat
Replied by viewsat on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Using a Mesa7i92 + 74hc245 (5V) + dm542 (unmodified dir input pc817), the zero-point return is correct and without error. This is why I raised the issue of the Riocore + Tang Nano9k + 74hc245 (5V) + dm542 (unmodified dir input pc817) failing to return to zero.
Last edit: 14 Aug 2026 07:02 by viewsat.
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 770
- Thank you received: 485
14 Aug 2026 06:26 #348724
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I believe you; I understand your problem too.
You could try measuring the voltages at the DIR pin (which can be held at a constant level) and comparing them.
Better still, use an oscilloscope to see how steep the edges are.
Otherwise, I’m out of ideas.
You could try measuring the voltages at the DIR pin (which can be held at a constant level) and comparing them.
Better still, use an oscilloscope to see how steep the edges are.
Otherwise, I’m out of ideas.
The following user(s) said Thank You: viewsat
Please Log in or Create an account to join the conversation.
- viewsat
- Online
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 4
14 Aug 2026 06:41 - 14 Aug 2026 06:45 #348725
by viewsat
Replied by viewsat on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Meister, thank you for your enthusiastic response! Your Riocore is a great project and will exist permanently in the open-source CNC community.I believe you; I understand your problem too.
You could try measuring the voltages at the DIR pin (which can be held at a constant level) and comparing them.
Better still, use an oscilloscope to see how steep the edges are.
Otherwise, I’m out of ideas.
Last edit: 14 Aug 2026 06:45 by viewsat.
The following user(s) said Thank You: meister
Please Log in or Create an account to join the conversation.
- viewsat
- Online
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 4
14 Aug 2026 07:20 #348726
by viewsat
2.Although this DM542 is very cheap, I have used about 1,000 units, and its failure rate is very low, less than 1%. Most of the problems can be found as soon as they are powered on for testing.
Replied by viewsat on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
1.This DM542 was taken from my CNC engraving machine, which I'm currently using, for testing.
I'm showing four sets of drivers in the photos, but only this inexpensive DM542 has a problem
A long time ago, 3xTB6560 drivers were popular and I had them too.
There, PC817 supported not only dir inputs, but also step inputs. There were problems with this, but the chips were in sockets and it was easy to replace them with selected ones and it worked somehow.
So there are only two options:
1. Your driver is faulty.
2. This type of driver is poorly designed.
Either way, the cause is not to be found in riocore.
2.Although this DM542 is very cheap, I have used about 1,000 units, and its failure rate is very low, less than 1%. Most of the problems can be found as soon as they are powered on for testing.
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Time to create page: 0.181 seconds