- Hardware & Machines
- Computers and Hardware
- Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
04 Jul 2024 08:38 #304358
by yathish
Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses was created 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
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.
04 Jul 2024 08:50 - 04 Jul 2024 09:05 #304359
by meister
Replied by meister on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
04 Jul 2024 09:28 #304362
by tommylight
Replied by tommylight on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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.
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.
04 Jul 2024 09:33 #304363
by yathish
Replied by yathish on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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.
04 Jul 2024 09:38 #304365
by cornholio
Replied by cornholio on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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.
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.
04 Jul 2024 09:39 #304366
by yathish
Replied by yathish on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
04 Jul 2024 09:42 #304367
by tommylight
Replied by tommylight on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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.
04 Jul 2024 09:48 #304368
by meister
Replied by meister on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
i think he will use ethernet for wiring like with ethercat.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.
04 Jul 2024 09:59 #304370
by meister
Replied by meister on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
Sorry, why not ? i like the RPI's, especially via SPISorry 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.
04 Jul 2024 10:05 #304371
by cornholio
Refer to this post forum.linuxcnc.org/18-computer/53136-can...g-step-pulses#304365
Replied by cornholio on topic Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
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.
- Hardware & Machines
- Computers and Hardware
- Can I use Raspberry Pi 5 for Linuxcnc + ESP32 + W5500 for generating step pulses
Time to create page: 0.097 seconds