linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

  • Trihwangyudi1990
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #251199 by Trihwangyudi1990
Replied by Trihwangyudi1990 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
I mean, stream direct with linuxcnc   so i just stream a job with raspi pc or others...
More
3 years 10 months ago #260372 by virencq
Hello,
Does this project support index encoder signal for lathe machine!
More
3 years 10 months ago - 3 years 10 months ago #260391 by opw
This project could be adapted to do that. You could easily use one of the eight hardware PCNT pulse counters of the ESP32 and implement a pulse counter. And adapt the structs in the main.c and structs and pins in the udp.comp to pass the count to Linuxcnc.
The pulsecounter can count up to several MHz. Only downside is, the counter stores the count in a signed 16 bit counter, so it overflows after 32k counts and this should be handled in an interrupt handler. Also the esp32 inputs are NOT 5v tolerant and need 3V3 signals.

if you are using a quadrature encoder there is a good lib for the esp32 that uses the hardware counters if available and handles the overflow. I believe it’s ESP32Encoder. 
Last edit: 3 years 10 months ago by opw.
The following user(s) said Thank You: virencq
More
3 years 9 months ago #261997 by eng
After many hours of study, I managed to put the "vector" to run with esp just like the remora is done, now we also have two tasks running within their respective periods, but I had problems with trying to run with the 3 axes at 300khz , at the moment the tests are at 120khz 4 axes.
The following user(s) said Thank You: tommylight
More
3 years 9 months ago #262424 by schoch
@eng can you share some code on github, it is ok if it is unfinished.
More
3 years 9 months ago - 3 years 9 months ago #262459 by virencq
Hello "eng"
Me too eagerly and desperately watching your quotes and achievements.
Glad to see you on GitHub!!!
Last edit: 3 years 9 months ago by virencq.
Time to create page: 0.478 seconds
Powered by Kunena Forum