linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

More
20 Jan 2023 12:47 #262479 by eng
At the moment I'm working on it for business, but we'll study a way to help everyone in the future, that's the goal.

Please Log in or Create an account to join the conversation.

More
24 Jan 2023 06:01 #262800 by virencq
Hi OPW,
It seems pretty easy for you, not for me. I urge you, if possible to add encoder Z in ESP32 code.
That will definitely help in lathe version with spindle control.

Please Log in or Create an account to join the conversation.

More
03 Feb 2023 16:50 #263610 by eng
My settings would not apply to "udp" I work with my own Fw, I just took the base to build mine, they are different.

www.instagram.com/p/CoMz9YiMQdE/

Please Log in or Create an account to join the conversation.

More
20 Apr 2023 12:02 #269481 by disc0018
I am new to linuxcnc. But I am used to microcontrollers like the esp32. I use an old retrofitted CNC with LinuxCNC 2.8 and a simple BOB
at the parport of an old Dell Optiplex with the uspace preempt-rt Kernel (Jitter <20µs) and software stepping.
To improve the System the best practise solution would be a mesa board of course...
but this is my hobby and so there is no pressure and I can test something different. 
First I had also the same idea with the WT32-ETH01 but a was a bit skeptical about
stepping speed, UDP latency etc.

Now I thinking of using a RP2040 with WS5500. 
( docs.wiznet.io/Product/iEthernet/W5500/w5500-evb-pico )
My idea was to use the PIO state machines for fast stepping without CPU blocking.
Here ist an API (vanhunteradams.com/Pico/Steppers/Lorenz.html)

The 8 PIOs alone can control 2-4 high Speed steppers without blocking the CPU.
WS5500 an UDP part should be similar to the esp32 code.
In my opinion it is easier to bring the code to the rp2040 and to use the API above
to get reliable fast stepping.
In fact the stat machine PIO stepping should be very fast (Mhz)
and the controlling by interrupts should be around 50-150Khz.
The latency of the UDP connection should be similar.
 
My idea was:
LinuxCNC on PC ->UDP-> Ethernet-WS5500 -> SPI Bus (50Mhz)  -> RP 2040 -> (Standard BOB) -> Stepperdriver, IOs etc.
LinuxCNC on RASPI -> SPI Bus (50Mhz) -> RP2040 -> (Standard BOB) -> Stepperdriver, IOs etc.

If the IO-Pins of the RP2040 are not sufficient ,for "slower IO" the use of the PCF i2c is a simple solution.
second idea:
Via the SPI Bus it should be possible to use the 1. RP2040 as Master and more RP2040s als slaves.
   
What do you think about using the rp2040 as alternativ to the esp32?



 
 

Please Log in or Create an account to join the conversation.

More
23 Apr 2023 19:06 - 23 Apr 2023 19:09 #269705 by Bari
Also:
LinuxCNC on RASPI -> UDP-> Ethernet-WS5500 -> SPI Bus (50Mhz) -> RP2040 -> (Standard BOB) -> Stepperdriver, IOs etc.

Please start a new thread if you decide to work on this.  Or continue this thread:  forum.linuxcnc.org/27-driver-boards/4677...igure-fpga-like-card
Last edit: 23 Apr 2023 19:09 by Bari.

Please Log in or Create an account to join the conversation.

More
22 Jun 2023 01:00 #274016 by Trihwangyudi1990
I have espduino (wemos D1 R32) , can we remap pins so its fit with cnc shield?

Please Log in or Create an account to join the conversation.

More
06 Jul 2023 01:25 #274872 by eng
After almost two years of studies and dedication, we have the ENG-E2 working with Linux cnc with ethernet communication, we have no latency warnings or connection losses.
Attachments:
The following user(s) said Thank You: Bari, aparecido, besriworld, OpenDev

Please Log in or Create an account to join the conversation.

More
06 Jul 2023 08:52 #274884 by pippin88

After almost two years of studies and dedication, we have the ENG-E2 working with Linux cnc with ethernet communication, we have no latency warnings or connection losses.


That is great!

What step rates can you achieve?

Cost of the board?

Please Log in or Create an account to join the conversation.

More
06 Jul 2023 23:51 #274918 by eng
I have two projects, with the esp32 using the rmt, I got frequencies of 150khz, without the rmt I kept 100khz, more than enough for the vast majority of people who use router machines, with the stm32 I have a project running at 100khz using the same idea as drive, but this one will be for the future, F407/F429, face about value, look, I didn't want to put this up for sale, but I really want it to work, I say this because I wanted to take that money and help people and animals that are on the street, So I apologize to everyone for having to make this decision, but it's for something bigger, and I hope it works.

Please Log in or Create an account to join the conversation.

More
25 Sep 2023 16:14 #281601 by Bari
ESP32 board equipped with Ethernet and MicroSD card slot
www.lilygo.cc/products/t-eth-lite

github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series

W5500 Ethernet module (10BaseT/100BaseTX, w/ WoL over UDP)
www.wiznet.io/product-item/w5500/

Please Log in or Create an account to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum