Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
29 Jun 2021 15:41 #213244 by tjtr33
Hello,
Sorry I missed these messages,
I had put the project away until i get another board.

I got the 'skr v1.3' from
http://www.eak-electronic.com/index.php?route=common/home
there's a tiny thai/englisg flag icon to choose language
but its no longer listed, so the info is useless,

These boards are rare-er than parallel ports.

I will re re re re do the spi wiring with ribbin cable
and skip the serial
( thats where i had 5v and gnd from rpi , well,  maybe try with gnd but not 5v)

And will also wait for a new MKS v1.3
( the SKR 1.4 turbo was another lie that eventually got marked out of stock, and refunded )

thanks again I will monitor more closely while waiting

1 Question: do you have a sampe ngc file of a 3d Print?
 I wonder if I need custom M1xx codes.

tomp

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

More
29 Jun 2021 21:32 #213273 by scotta
Hi tomp,

I had to order another board a couple of days ago as I stupidly put a driver in backwards.. The chip shortage may be making these harder to get. I placed the order, but no order confirmation. The CN sellers are normally pretty responsive.

I have a set of custom M-code available for 3d printing. They are on my GitHub repository.

github.com/scottalford75/LinuxCNC-3D-Printing

I can share a simple 3d print ngc file if you like.

BR
Scott
The following user(s) said Thank You: tjtr33

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

More
29 Jun 2021 21:41 #213275 by Aaroncnc
Scotta,

If these boards dont come back much after the shortage what are the options?
Port to a stm32 based board?

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

More
29 Jun 2021 22:44 #213285 by Bari
STM32's are also hard to find right now, but that won't last forever.

I'm looking at porting this to STM32 for the future. Feel free to beat me too it :)
The following user(s) said Thank You: Doogie

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

More
30 Jun 2021 06:32 #213313 by cakeslob
Speaking of that, Im not exactly sure how it all works, but embed is like arduino ide but better? So porting it to supported hardware is easier, and only hardware related things need addressed?

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

More
30 Jun 2021 13:29 #213340 by tjtr33
wow! thanks very much
you have been very very busy!
keep on truckin, I'll be fine
tomp

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

More
01 Jul 2021 07:38 - 03 Jul 2021 04:42 #213417 by tjtr33
Hello,
Is there a difference between the diagram for skrv1.3 spi cable and your cable foto?
The disgram on readthedocs show a wire from what is labeled "p1.31" ( pin 4 of EXP2)
but your foto shows that socket empty., and instead a wire is connected to 3.25. ( pin 6 of EXP2)
Do I correctly see p1.31 is empty in your foto?
I am not geting the expected results and want to try correctly.
I just tried with what i see in the foto and still get bad spi ffffffff hitting F1 estop repreatedly
I then moved the 'reset' wire to the p1.31 and got same
Then I tried external 12V ps for skrv1.3
using screw terminal  '12/14' and GND, moved jumper from 5V to INT.
Result is same ( spi cable is from p1.35 on skr to reset gpio25 on rpi 3B+)
also tried with reset line from p3.25 to rpi gpio25, same ffffffff

it does not work as expected
but i DO need to resolve the diagram vs foto for later


the pin in question really is p1.31 and really is on pin2 of EXP2.
(not on pin 6 ). This is from the SKR V1.3 config.txt.

My skr v1.3 is no longer a candidate for Remora.
I have recieved an MKS v1.3 and will make an SPI cable for that.

thanks,
tomp
 
Attachments:
Last edit: 03 Jul 2021 04:42 by tjtr33. Reason: hardware change

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

More
02 Jul 2021 23:29 #213516 by Doogie
Tomp, you only need the 4 SPI connections and ground for SPI to work. If you have any questions about your wiring, Look at how he labeled the SPI signals on the EXP2 connector and then find any rPi pinout and look for the pins with the same SPI name.

I have even wired this thing wrong once and when I went back I realized it was looking at a connector backwards. When I look at rPi pinouts and signal names and make sure they match what Scotta shows for the EXP2 connector it works. Following wires and colors drives me nuts and signal names are the key IMO.

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

More
03 Jul 2021 05:19 - 03 Jul 2021 15:50 #213536 by tjtr33
Hello,I have a new MKS v1.3 and want to prepare it for use.
I will solder the jumper as described
but the cable information is difficult for me to follow.

The wiring diagram shows the RESET wire  
from RPi GPIO25  
to Px.xI

I think this Px.x is used for RESET becasue that is it's purpose for it in SKR v1.3

@Doogie, you have used the MKS v1.3,
so please tell me where Px.x connects.

thanks TomP

EDITt:
YAY!
the MKS v1.3 came out of EStop on 2nd press of F1, sometimes on 1st press.

I have RPi gpio25 still un-attached, waiting for information.

I can home all 3 axis using HOME ALL button
( There is no machine connected, so no limit switches )

I get following errors on all 3 joints, even at very slow jog rates ( 62mm/min.)
But this is a big step fwd from the SKR v1.3.

I can see the commanded postion, and the f-error rises with each tap of the jog key,
but no reduction of f-error,  tells me no steps are being fed back...or no command sent.
I will re-eable debug prints in remora.c
tomorrow,

What is the expected status led appearance (on MKS v1.3) ?
All 5 on solid?

thanks
TomP 
Attachments:
Last edit: 03 Jul 2021 15:50 by tjtr33. Reason: hardware change.

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

More
03 Jul 2021 15:17 #213566 by Doogie
Good to see you have SPI working and you are moving motors.

As for GPIO25 connection you can decide what you want and set that up as in your config.txt. I currently don't use it so leave it floating on the MKS side. But if you want to connect it, look at the config.txt for the SKR v1.4 and you'll see at the top "reset pin" defined. Please look at your board pinout, and use an available pin number and add that to your config.txt file.

I'm currently only running on a 3D printer and laser cutter so a wired E-Stop to the board has not been necessary.
The following user(s) said Thank You: tjtr33

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

Time to create page: 0.299 seconds
Powered by Kunena Forum