Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses

More
2 years 3 months ago #304358 by yathish
Hi Linuxcnc community, 
I have installed OS in raspberry 5 and Instead of using IO expander I want to use individual ESP32+W5500 for every motor and generate step pulses. If this is possible please help me with the steps in achiving it.
Refer the image below and get what I want to achieve
https://drive.google.com/file/d/1JCuLksqd7dcpAcJ44GajRwzOFmay_xuQ/view?usp=sharing 

Attachment not found


Thankyou

Please Log in to join the conversation.

More
2 years 3 months ago #304359 by meister
in principle, yes,
but you would have to build the hal component in such a way that the ethernet packets are sent and received in parallel,
otherwise it takes too long.

EDIT:
but since udp is used, this can lead to collisions.
maybe send with minimal delay and then wait for the responses

Please Log in to join the conversation.

More
2 years 3 months ago #304362 by tommylight
Using ethernet hub or switch will add a lot to network latency, so it might not work at all, even if everything else works.
Never tried with a hub, but i do have a switch that works with Mesa boards for days without issues.
Still, i never use a switch on production machines, the risk is to big.
-
Network hub = old, any packet sent to any pc wired to it will be sent to all connected PC's.
Network switch = new, any packet sent will be sent only to the PC with the IP address contained in that packet.

Please Log in to join the conversation.

More
2 years 3 months ago #304363 by yathish
Can you tell me how to configure HAl and ESP32 if I have to build it for just 1 axis?

Please Log in to join the conversation.

More
2 years 3 months ago #304365 by Cant do this anymore bye all
No don't use a hub.

Linuxcnc-rio is awesome, with a single WT32-ETH0 and a direct cable connection and inexpensive FPGA you can do 4 axis easily and way more.

Please Log in to join the conversation.

More
2 years 3 months ago #304366 by yathish
Hi @tommylight, thankyou for your insight.
Now i want to expand my inputs and outputs in raspberry pi 5, can you suggest me how to expand my i/o and if there is any solution can you also tell me how to configure HAl

Please Log in to join the conversation.

More
2 years 3 months ago #304367 by tommylight
Sorry but i do not use RPI's at all,and that will not change untill their price drops back to under 50$.

Please Log in to join the conversation.

More
2 years 3 months ago #304368 by meister

No don't use a hub.

Linuxcnc-rio is awesome, with a single WT32-ETH0 and a direct cable connection and inexpensive FPGA you can do 4 axis easily and way more.
i think he will use ethernet for wiring like with ethercat.


 

Please Log in to join the conversation.

More
2 years 3 months ago #304370 by meister

Sorry but i do not use RPI's at all,and that will not change untill their price drops back to under 50$.
Sorry, why not ? i like the RPI's, especially via SPI

Please Log in to join the conversation.

More
2 years 3 months ago #304371 by Cant do this anymore bye all

Hi @tommylight, thankyou for your insight.
Now i want to expand my inputs and outputs in raspberry pi 5, can you suggest me how to expand my i/o and if there is any solution can you also tell me how to configure HAl

Refer to this post forum.linuxcnc.org/18-computer/53136-can...g-step-pulses#304365

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum