Hi,
I've made a PCB with a Teensy 4.1 that I want to use to control 10 stepper motors. The motors need to move fast and synchronized, so I am hoping to be able to use the TeensyStep4 library (even though I know it isn't fully supported for the Teensy 4.1 yet). The Teensy 4.1 also needs to communicate with a PLC over Ethernet (I want to use Modbus TCP). I have written code to test the operation of the TeensyStep4 library with a group of 10 stepper motors and it works fantastically well. However, as soon as I initiate the Ethernet object to create an Ethernet link (line 105 in the code), the movement of the stepper motors is affected. It seems like there are interruptions in the pulse trains and this causes the stepper motors to stutter in their movements. If I just comment out this single line, then the stepper motors work perfectly again, so I am pretty sure that the problem lies somewhere there, but I don't really have an idea where to start looking. If someone could point me in the right direction, I would really appreciate it.
I am using PlatformIO on Windows 10 to develop the code for the Teensy 4.1.
My test code is attached.
Thanks very much.
I've made a PCB with a Teensy 4.1 that I want to use to control 10 stepper motors. The motors need to move fast and synchronized, so I am hoping to be able to use the TeensyStep4 library (even though I know it isn't fully supported for the Teensy 4.1 yet). The Teensy 4.1 also needs to communicate with a PLC over Ethernet (I want to use Modbus TCP). I have written code to test the operation of the TeensyStep4 library with a group of 10 stepper motors and it works fantastically well. However, as soon as I initiate the Ethernet object to create an Ethernet link (line 105 in the code), the movement of the stepper motors is affected. It seems like there are interruptions in the pulse trains and this causes the stepper motors to stutter in their movements. If I just comment out this single line, then the stepper motors work perfectly again, so I am pretty sure that the problem lies somewhere there, but I don't really have an idea where to start looking. If someone could point me in the right direction, I would really appreciate it.
I am using PlatformIO on Windows 10 to develop the code for the Teensy 4.1.
My test code is attached.
Thanks very much.