- Posts: 76
- Thank you received: 27
linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- epineh
- Offline
- Senior Member
-
Less
More
4 years 10 months ago #228382
by epineh
Replied by epineh on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Quick question, would it be possible to have I2C communications from the esp32 for general IO? that way the esp32 could do the fast step/dir pulse generation and the I2C bus could handle the rest.
This could possibly free up the esp 32 resources to provide faster pulse rates (100KHz would be nice) and also more axis.
This could possibly free up the esp 32 resources to provide faster pulse rates (100KHz would be nice) and also more axis.
- jzolee
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 3
4 years 10 months ago #228383
by jzolee
Replied by jzolee on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hi epineh, currently the program handles 3 axis step + dir signals and 3 outputs and 4 inputs (that's all I needed). Either can be easily increase.
If needed, it could handle up to 4 axes, however, the max pulse rate would be reduced to about 30 khz.
This is because even during the shortest pulse, the processor must be able to calculate the length of the next pulse on all axes.
The handling of IOs does not affect this, as it is handled by another core:
CORE0: IO handling + UDP communication
CORE1: only step and dir handling
If needed, it could handle up to 4 axes, however, the max pulse rate would be reduced to about 30 khz.
This is because even during the shortest pulse, the processor must be able to calculate the length of the next pulse on all axes.
The handling of IOs does not affect this, as it is handled by another core:
CORE0: IO handling + UDP communication
CORE1: only step and dir handling
- Cncninja
- Offline
- Premium Member
-
Less
More
- Posts: 109
- Thank you received: 2
4 years 10 months ago #228403
by Cncninja
Replied by Cncninja on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Is there a pinout and what esp32 are you using ? there are so many out there. Thanks
- jzolee
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 3
4 years 10 months ago #228419
by jzolee
Replied by jzolee on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 27
4 years 10 months ago #228428
by epineh
Replied by epineh on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hi jzolee, thanks for the quick reply.
With 3 axis what would be the maximum step pulse rate ?
With 3 axis what would be the maximum step pulse rate ?
- jzolee
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 3
4 years 10 months ago #228509
by jzolee
Replied by jzolee on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hi epineh, I measured the execution time of the code and based on this:
120 kHz / number of axes.
1 axis: 120 kHz
2 axes: 60 kHz
3 axes: 40 kHz
4 axes: 30 kHz
120 kHz / number of axes.
1 axis: 120 kHz
2 axes: 60 kHz
3 axes: 40 kHz
4 axes: 30 kHz
Time to create page: 0.679 seconds