Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
14 Jul 2023 14:47 #275418 by cakeslob
yes, remove the solder bridge on 118 then we can use PB14. its not going to work if you deviate from the pinout in the github, you will have to follow the picture.

-SPI2 for connection to RPI4, with pins PB1, PB13, PB14 and PB15, and pin PB2 for reset

The following user(s) said Thank You: virencq

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

More
14 Jul 2023 16:24 #275420 by virencq
Bravo, your default config working.
Thanks a lot.
Now I have to run my existing lathe config

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

More
14 Jul 2023 17:12 #275422 by cakeslob
Excellent 
Its for a lathe? that works out because I only configured it for 2 axis. I also and configuring for a lathe, so you can look here at some sample nucleo configs ive been using.

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

More
14 Jul 2023 18:01 #275425 by virencq
I have weird situation in compiling.
I have downloaded latest modified staticZE repo.
Using mbed os 6.
Even without editing any file, compiled.bin file doesn't comes out of E-stop.
But your compiled .bin from repo, working.
Have yet to check IO's.

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

More
14 Jul 2023 19:31 #275433 by cakeslob
make sure you are using NUCLEO 446ZE as your target, I will download and compile test after work

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

More
15 Jul 2023 08:08 #275495 by virencq
Yes, target is Nucleo 446ZE.
Nothing modified in code

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

More
15 Jul 2023 13:54 #275508 by cakeslob
Ok, I just downloaded and compiled the repo and it works fine. Set the build profile to "Release". It doesnt seem to work with debug or develop,

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

More
15 Jul 2023 14:23 #275511 by virencq
Selecting release also, same result.
E-stop not working

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

More
15 Jul 2023 14:41 - 15 Jul 2023 17:10 #275513 by virencq
Selecting release, deleted build folder. Recomplile did the trick.
axis gui comes out of e-stop, over local compiled .bin file.
Thanks a lot.
Let me try with my board.coñfig.
compiled .bin working.
As I said earlier currently I am running lathe with phase A and z index.
Running satisfactorily with double step implementation (thanks to ttzr).
In this setup only lags encoder feedbak at higher speed. Mine works perfectly upto 500 rpm. 

I have read remora has higher speed encoder.
Will try to implement this.
Before going to actual machine, I attached nema 23 with nucleo 446ZE. 
What I have observed is x axis motor takes time to reach commanded position. May be this is due to ferror settings.
In bare gpio I have ferror 1.
Min-ferror .02.
In remora ferror 8
Min-ferror 4.
Also motor stalls beyond max-velocity 60 in .ini.
Will update after more trials.
Last edit: 15 Jul 2023 17:10 by virencq.

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

More
15 Jul 2023 17:31 - 15 Jul 2023 17:36 #275519 by cakeslob
for highspeed encoder I have it set to PB8 PB9 and PA_12 for index, these cannot be changed
github.com/cakeslob/Remora-docs/blob/nuc...46.rst#hardware-pins

this is the sample config I made for the highspeed encoder
github.com/cakeslob/Remora/tree/nucleo_s...ples/remora-xy_nuc_q


"What I have observed is x axis motor takes time to reach commanded position."
Looks like I need to add to my sample config, add these deadband lines to your hal and ini

github.com/cakeslob/Remora/blob/develop/...-loop/remora.hal#L50
github.com/cakeslob/Remora/blob/develop/...-loop/remora.ini#L96

"Running satisfactorily with double step implementation (thanks to ttzr)."

I dont exactly know what this is


also, I forgot to mention, this version is a little different than main remora, youll need to install this component included in the repo.
github.com/cakeslob/Remora/tree/nucleo_s...NC/Components/Remora
Last edit: 15 Jul 2023 17:36 by cakeslob.

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

Time to create page: 0.327 seconds
Powered by Kunena Forum