linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

More
4 years 10 months ago #228382 by epineh
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.
More
4 years 10 months ago #228383 by jzolee
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
More
4 years 10 months ago #228403 by Cncninja
Is there a pinout and what esp32 are you using ? there are so many out there. Thanks
More
4 years 10 months ago #228419 by jzolee
Hi Cncninja, I have this module built in:

 
More
4 years 10 months ago #228428 by epineh
Hi jzolee, thanks for the quick reply.
With 3 axis what would be the maximum step pulse rate ?
More
4 years 10 months ago #228509 by jzolee
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
Time to create page: 0.679 seconds
Powered by Kunena Forum