- Posts: 37
- Thank you received: 8
linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- eng
- Offline
- Junior Member
-
Less
More
4 years 10 months ago #228836
by eng
Replied by eng on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
You could leave us your ini file and hal file because I'm having errors because you removed the maxvel, maxacc and put the accel.
- jzolee
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 3
4 years 10 months ago - 4 years 10 months ago #228851
by jzolee
Replied by jzolee on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hi eng, maxvel is not required, it was a remnant of an older code when I tried position tracking mode.
accel = maxacc.
The code is currently running in speed mode, with this acceleration following the speed command. I just renamed it, in fact the code only works with one kind of acceleration.
I'm sorry, but I also renamed the io pins in udp.comp:
udp.in.xx
udp.out.xx
ps.
In the code I took advantage of the following features of esp32:
four hardware timers up to 25 ns / tic -> step generation for 3 (4) axes
two cores: one deals only with step generation, the other with everything else
FPU -> fast floating point calculation
High cpu speed (240Mhz)
I think it's worth implementing the code on another microcontroller if it has these capabilities. You may want to take advantage of other capabilities that aren't in ep32.
accel = maxacc.
The code is currently running in speed mode, with this acceleration following the speed command. I just renamed it, in fact the code only works with one kind of acceleration.
I'm sorry, but I also renamed the io pins in udp.comp:
udp.in.xx
udp.out.xx
ps.
In the code I took advantage of the following features of esp32:
four hardware timers up to 25 ns / tic -> step generation for 3 (4) axes
two cores: one deals only with step generation, the other with everything else
FPU -> fast floating point calculation
High cpu speed (240Mhz)
I think it's worth implementing the code on another microcontroller if it has these capabilities. You may want to take advantage of other capabilities that aren't in ep32.
Last edit: 4 years 10 months ago by jzolee.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 27
4 years 10 months ago #228909
by epineh
Replied by epineh on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
What would be required to increase the pulse rate to 100KHz for 3 axis ?
Is it a hardware limitation of the esp32?
Cheers.
Russell.
Is it a hardware limitation of the esp32?
Cheers.
Russell.
- Cncninja
- Offline
- Premium Member
-
Less
More
- Posts: 109
- Thank you received: 2
4 years 10 months ago #228993
by Cncninja
Replied by Cncninja on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hey jzolee, Thanks for the work my w5500 and esp32 both came in but in not sure how to implement your .comp and UDP files above. does the UDP.comp get loaded on the esp32 and the HAL2UDP on the linux pc? Thanks for the info
- pippin88
- Offline
- Elite Member
-
Less
More
- Posts: 263
- Thank you received: 51
4 years 10 months ago #228996
by pippin88
Replied by pippin88 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Couple multiple ESP32 be used to allow faster step rates?
e.g. 1 per axis?
e.g. 1 per axis?
- taylorcmq
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
4 years 10 months ago #229646
by taylorcmq
Replied by taylorcmq on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
this would be a big problem because I would have to have 1 master to receive the UDP and separate it for the other slaves, so I believe that this would cause a high latency and not bring good results!
Time to create page: 0.404 seconds