Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 2 months ago #217356 by Zuo99
I have been using REMORA for a while, thank you very much for your work, but I have encountered some problems recently.
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.

More
5 years 2 months ago #217357 by Aaroncnc
could 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.
The following user(s) said Thank You: Zuo99

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

More
5 years 2 months ago #217358 by Zuo99

could 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.
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 diagram

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

More
5 years 2 months ago #217360 by Bari
Please post a picture of your wiring and the machine you are controlling.

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

More
5 years 2 months ago - 5 years 2 months ago #217363 by Zuo99

巴里帖子=217360 用户ID=1324请张贴您的接线和您控制的机器的图片。

Below is my picture.
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).
Last edit: 5 years 2 months ago by Zuo99. Reason: something wrong

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

More
5 years 2 months ago #217365 by Bari
www.forum.linuxcnc.org/media/kunena/attachments/29932/01.jpg the SPI signals are too high a clock rate for wiring of this type.

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.

Time to create page: 0.322 seconds
Powered by Kunena Forum