- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
- Zuo99
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
My workbench can work normally before, but recently it will end unexpectedly and cannot exit Estop. The information is as follows:
bad spi payload = 646174
task:main loop took 0.113318 seconds
At first, I thought it was a problem with the connection cable, but after I rewired it, this situation still occurred, and this situation did not always exist, but occasionally, such as suddenly stopping during work.
I want to know if you have encountered such a situation, or hope for your suggestions. (I even think that some PINs in the EXP2 area of my SKR board are damaged, I will check it later)
Thank you for your help.
Zuo
Please Log in or Create an account to join the conversation.
- Aaroncnc
- Offline
- Elite Member
-
- Posts: 204
- Thank you received: 45
I ran my spi wires in rg174 coax to keep the noise down.
But that is overkill.
The better way is to keep the run as short as you can and have several grounds around each signal wire between the skr and rpi.
Please Log in or Create an account to join the conversation.
- Zuo99
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
I think what you said makes some sense, because my situation appears after half a minute of running, and occasionally earlier, but I’m sorry I don’t quite understand (have several grounds around each signal wire between the skr and rpi.), I should How to accomplish it.I would be grateful if you could share your wiring diagramcould be noise getting into the spi wires.
I ran my spi wires in rg174 coax to keep the noise down.
But that is overkill.
The better way is to keep the run as short as you can and have several grounds around each signal wire between the skr and rpi.
Please Log in or Create an account to join the conversation.
- Bari
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 647
- Thank you received: 235
Please Log in or Create an account to join the conversation.
- Zuo99
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
Below is my picture.巴里帖子=217360 用户ID=1324请张贴您的接线和您控制的机器的图片。
Figure 1 is my wiring diagram, according to the REMORA document, DuPont line.
Figure 2 is my drive. I used a switched external drive DM542, like the following:
www.cncrouter.gr/3d-printers-cnc/cnc-3d/...230-converter-cable/
Figure 3 is my workbench, driven by a 57 stepper motor. In fact, this is the reason why I use DM542.
I think the problem may not be the latter two, because there will be errors when the drive is not connected (just simply connect the Raspberry Pi and SKR).
Please Log in or Create an account to join the conversation.
- Bari
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 647
- Thank you received: 235
You want the wires as short as possible and run in parallel with really good grounds. take a look at this previous post of a working cable www.forum.linuxcnc.org/media/kunena/atta...54/remoraadapter.PNG
Please Log in or Create an account to join the conversation.
- Zuo99
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
This is also a possible reason, thank you for your reply, I will try to change the way of wiring. thank you very much for your help.巴里帖子=217365 用户ID=1324https://www.forum.linuxcnc.org/media/kunena/attachments/29932/01.jpg SPI 信号的时钟频率对于这种类型的接线来说太高了。
您希望电线尽可能短,并与非常好的接地平行。看看这个工作电缆的前一篇文章 www.forum.linuxcnc.org/media/kunena/atta...54/remoraadapter.PNG
Please Log in or Create an account to join the conversation.
- gtt38
- Offline
- Senior Member
-
- Posts: 79
- Thank you received: 4
Please Log in or Create an account to join the conversation.
- Cncninja
- Offline
- Premium Member
-
- Posts: 107
- Thank you received: 2
Thank you
Please Log in or Create an account to join the conversation.
- Aaroncnc
- Offline
- Elite Member
-
- Posts: 204
- Thank you received: 45
Your Hal file is lacking any linking of the io
Take a look at the remora docs I added some Hal examples for the io.
Let me know if anything is unclear and I will help and try to add more to the docs
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI