- Posts: 20
- Thank you received: 0
Remora - Rpi Software Stepping Using External Microcontroller via SPI
5 years 2 months ago #217356
by Zuo99
Replied by Zuo99 on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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
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 to join the conversation.
5 years 2 months ago #217357
by Aaroncnc
Replied by Aaroncnc on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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 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 to join the conversation.
5 years 2 months ago #217358
by Zuo99
Replied by Zuo99 on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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 to join the conversation.
5 years 2 months ago #217360
by Bari
Replied by Bari on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Please post a picture of your wiring and the machine you are controlling.
Please Log in to join the conversation.
5 years 2 months ago #217363
by Zuo99
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).
Replied by Zuo99 on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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 to join the conversation.
5 years 2 months ago #217365
by Bari
Replied by Bari on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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
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 to join the conversation.
5 years 2 months ago #217366
by Zuo99
Replied by Zuo99 on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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 to join the conversation.
5 years 2 months ago #217479
by gtt38
Replied by gtt38 on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Did someone try SPI1 on the RPI ? (second SPI port)
Please Log in to join the conversation.
5 years 2 months ago #217616
by Cncninja
Replied by Cncninja on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hey Scotta, could you look at the 4 axis mill files I posted I'm not having luck with it working I used the config app for the i/o and added the 4th to the existing but something seems to be missing.
Thank you
Thank you
Please Log in to join the conversation.
5 years 2 months ago #217653
by Aaroncnc
Replied by Aaroncnc on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I am on mobile and looked at the zip.
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
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 to join the conversation.
Time to create page: 0.605 seconds
