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

More
04 Jul 2024 08:38 #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 
Thankyou
Attachments:

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

More
04 Jul 2024 08:50 - 04 Jul 2024 09:05 #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
Last edit: 04 Jul 2024 09:05 by meister.

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

More
04 Jul 2024 09:28 #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 or Create an account to join the conversation.

More
04 Jul 2024 09:33 #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 or Create an account to join the conversation.

More
04 Jul 2024 09:38 #304365 by cornholio
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 or Create an account to join the conversation.

More
04 Jul 2024 09:39 #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
The following user(s) said Thank You: tommylight

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

More
04 Jul 2024 09:42 #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 or Create an account to join the conversation.

More
04 Jul 2024 09:48 #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 or Create an account to join the conversation.

More
04 Jul 2024 09:59 #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 or Create an account to join the conversation.

More
04 Jul 2024 10:05 #304371 by cornholio

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 or Create an account to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum