Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 3 months ago #213613 by Aaroncnc
Are there any status leds on the board that could be set to blink if it fail to load a good confhg? That way you know without needing serial.
The following user(s) said Thank You: Doogie

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

More
5 years 3 months ago #213641 by tjtr33
Doogie,
thanks,
I read I can assign Px.x to any free pin,
and should create the pin in config.txt.

Under what conditions is Reset active?

thanks tomp

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

More
5 years 3 months ago #213643 by tjtr33
Hi Doogie

Are you new to LinuxCNC?  Asking because I am and following errors were driving me nuts considering there are no encoders so there's no feedback to create following errors.

no, user for longer than i can remember ( BDI and Paul Corner days )

Are you using the remora-xyz LinuxCNC sample configuration files?

yes, remora-xyz config, unedited
and firmware.bin for LPC1768

I would not expect those to be throwing off following errors. If no maybe consider it or maybe you'd like to look at some LinuxCNC hal and ini files I've used to see if sections fit your needs and illuminate possible changes to your setup. github.com/dlarue/Remora/tree/ender3-updates

thanks, I will look.

It is handy to have the rPi rx/tx setup for debugging
but I've also found that you will see Remora output on the console window you started LinuxCNC on when things go wrong.

Yes, I will add back tx rx but omit gnd to avoid any gnd loop
Yes, I always run from a terminal (I run from a RIP, I may try an installed lcnc today, but RIP's are reliable imo )


imo
the command is not received as expected ( like 0 is sent despite 0.nnn commanded )
and/or
the command is not processed as expected ( some unlnown inhibit )
and/or
the reported feedabck is not as expected.

My f-error is 2mm as per the remora-xyz.hal
and I see the following when I jog using 1mm increments.
press right arrow 1x,
the axis display 'cone' move towrds right,
while DRO shows 0
press right arrow 1x
the axis display moves a further distance, equal to 1st
the dro still shows 0 ( tool tip is obviously away from 0,0,0)
press 3rd time, and get F-error

This result is not seen before in lcnc ( motion w/o dro)

I can hook one motor up to X (say) to look further.

Yes, I been around LCNC a long time, long enuf to know its always surprising.
tomp

 

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

More
5 years 3 months ago #213644 by tjtr33
I wonder if SATA cables can be repurposed for SPI?
Great shielding, triple gnds, 4 signals for SPI. cs clk miso mosi
The big benefit would be not having to build it ;-;
tomp

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

More
5 years 3 months ago #213696 by Doogie
I first use discrete wires and got things moving but with periodic errors. Then read up on SPI and transmission lines so I then used a 10 wire ribbon cable where I put a ground between every signal wire and it worked better but keeping the wires in the ribbon all the way to the board pins wasn't easy and every now and then I got a SPI error because my taping job was loosening. I taped the ground wires back into position so the grounding/shielding went almost all the way to the signal pins.

Then I said screw it, I took some perf board and some dual row 10pin sockets and dual row 10 pin headers and wired up an adapter so that the stock DIF ribbon cables which come with the graphical LCD of these 3DP boards could be used. Works great but soldering little jumpers between the pins was a PIA. So I designed an adapter in KiCAD and ordered boards 4 weeks ago and still waiting for the boards. I made adapters for MKS and SKR boards and if they work you can probably find someone to make them cheaper and faster. dirtypcbs.com/rendering/details/18noc/Re...MKS_SKR-adapters.zip

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

More
5 years 3 months ago #213700 by Aaroncnc
I'm not sure your environment but I justed used pre-made jumper wires with dupont ends. About 5in long too

No spi errors yet.

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

Time to create page: 0.281 seconds
Powered by Kunena Forum