- Hardware & Machines
- Computers and Hardware
- linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
26 Aug 2022 08:57 - 26 Aug 2022 08:57 #250495
by xek
Replied by xek on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
A quick update. I have used a using slightly modified jzolee's code to coomodate for 4th axis for around a month, it works okay, but reboots/hangs several times a day because of my plasma cutter's radio interference.
Overall it is a working solution.
Overall it is a working solution.
Last edit: 26 Aug 2022 08:57 by xek.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
26 Aug 2022 09:33 #250501
by tommylight
Replied by tommylight on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Yeah, plasma makes a lot of electric noise.
Use the shortest cable possible, use a ground cable wound around signal cables, put the electronics inside a metal box that is properly grounded, move signal cables as far from the plasma source as possible, ground the PC, table and plasma source, etc.
If everything fails, put 330-470Ohm resistors on all inputs, even the ones not in use.
Use the shortest cable possible, use a ground cable wound around signal cables, put the electronics inside a metal box that is properly grounded, move signal cables as far from the plasma source as possible, ground the PC, table and plasma source, etc.
If everything fails, put 330-470Ohm resistors on all inputs, even the ones not in use.
Please Log in or Create an account to join the conversation.
- Trihwangyudi1990
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
29 Aug 2022 05:56 #250671
by Trihwangyudi1990
Replied by Trihwangyudi1990 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Please Log in or Create an account to join the conversation.
29 Aug 2022 06:33 #250672
by rodw
Replied by rodw on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Its tricky to set up from a Windows machine but you should be able to crete a SAMBA share and write direct.
Then you can open the file on the LinuxPC and start the job
If you use QTplasmac, you can program a Load Latest file button which wokrs amazingly well. eg save the postprocessor output (eg sheetcam) to the lcnc nc_files folder, press load latest and then press cycle start
Then you can open the file on the LinuxPC and start the job
If you use QTplasmac, you can program a Load Latest file button which wokrs amazingly well. eg save the postprocessor output (eg sheetcam) to the lcnc nc_files folder, press load latest and then press cycle start
Please Log in or Create an account to join the conversation.
- Trihwangyudi1990
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
05 Sep 2022 01:16 #251199
by Trihwangyudi1990
Replied by Trihwangyudi1990 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Please Log in or Create an account to join the conversation.
27 Dec 2022 03:33 #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!
Please Log in or Create an account to join the conversation.
27 Dec 2022 12:32 - 27 Dec 2022 12:49 #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: 27 Dec 2022 12:49 by opw.
The following user(s) said Thank You: virencq
Please Log in or Create an account to join the conversation.
15 Jan 2023 00:01 #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. www.instagram.com/p/Cm19F1Bt_M-/?hl=pt-br
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
19 Jan 2023 16:13 #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.
Please Log in or Create an account to join the conversation.
20 Jan 2023 06:08 - 20 Jan 2023 07:42 #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: 20 Jan 2023 07:42 by virencq.
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Time to create page: 0.101 seconds