Category: General LinuxCNC Questions
Here is an update. I have plugged the positive from my EDM power supply into pin 13 TB2 and the negative into pin 14 TB2 on the Mesa. I then evaluated pin hm2_7i96s.0.periodm.00.duty_cycle using hal meter. The number is jumping around like crazy. It got a little better when I remembered to change the jumpers to TTL. Now it fluctuates only on the low end.
I have tried shielded cable. I have tried a RC filter with a .1 uF capacitor and a 3.3 kOhm resistor. I tried switching the red and black cables around. I tried tying the black to ground. The signal becomes 0 if either the red or black wire is removed from the mesa pin 13,14. But I cannot get a signal that makes sense. The signal jumps around even when the EDM supply is turned off and remains unchanged even when the EDM is cutting.
I currently think that maybe the problem lies in the sampling rate. Or perhaps it has something to do with the pin. I think the issue is in the Linux side but I could be wrong. I will try using the oscilloscope more tomorrow.
If anyone has ideas please let me know.
Best,
-Dylan