- Posts: 32
- Thank you received: 0
linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- Trihwangyudi1990
- Offline
- Junior Member
-
Less
More
4 years 1 month ago #251199
by Trihwangyudi1990
Replied by Trihwangyudi1990 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- virencq
- Offline
- Premium Member
-
Less
More
- Posts: 89
- Thank you received: 5
3 years 10 months ago #260372
by virencq
Replied by virencq on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hello,
Does this project support index encoder signal for lathe machine!
Does this project support index encoder signal for lathe machine!
- opw
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 11
3 years 10 months ago - 3 years 10 months ago #260391
by opw
Replied by opw on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
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.
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
- eng
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 8
3 years 9 months ago #261997
by eng
Replied by eng on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
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
- schoch
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 13
3 years 9 months ago #262424
by schoch
Replied by schoch on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
@eng can you share some code on github, it is ok if it is unfinished.
- virencq
- Offline
- Premium Member
-
Less
More
- Posts: 89
- Thank you received: 5
3 years 9 months ago - 3 years 9 months ago #262459
by virencq
Replied by virencq on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hello "eng"
Me too eagerly and desperately watching your quotes and achievements.
Glad to see you on GitHub!!!
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