LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
14 Aug 2026 05:57 #348722 by meister
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.

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

  • viewsat
  • Away
  • Junior Member
  • Junior Member
More
14 Aug 2026 06:19 - 14 Aug 2026 07:02 #348723 by viewsat
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.

More
14 Aug 2026 06:26 #348724 by meister
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.
The following user(s) said Thank You: viewsat

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

  • viewsat
  • Away
  • Junior Member
  • Junior Member
More
14 Aug 2026 06:41 - 14 Aug 2026 06:45 #348725 by viewsat

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.

 

Meister, thank you for your enthusiastic response! Your Riocore is a great project and will exist permanently in the open-source CNC community.  
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
  • Away
  • Junior Member
  • Junior Member
More
14 Aug 2026 07:20 #348726 by viewsat

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.

1.This DM542 was taken from my CNC engraving machine, which I'm currently using, for testing.
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.

Time to create page: 0.192 seconds
Powered by Kunena Forum