Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
3 years 2 months ago #278170 by cakeslob
I dont know what would cause it to not work on the RPI4 vs the RPI3,

A couple things you can check though

- Does it work with AXIS on rpi4?

- Did you install the same component version as you did on RPI3?
If you are using the nucleo version, use the comp in that repo. The nucleo version uses a different linuxcnc component than main remora,
The following user(s) said Thank You: virencq

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

More
3 years 2 months ago #278173 by virencq
Hi Cakeslob,
Yes I have used your static config.
Same remora.c from your repository.

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

More
3 years 2 months ago #278177 by cakeslob
Hmm ok, as long as its this comp for nucleo boards, what ever repo you get the firmware, use that component
github.com/cakeslob/Remora/tree/nucleo_s...NC/Components/Remora

Hmm on second thought, it could be this,
Code:
PRU_base_freq=80000

In your hal file in the loadrt remora try adding this
Code:
loadrt remora chip_type=STM SPI_clk_div=32 PRU_base_freq=80000

I have the nucleo 446 running at a higher base thread in the firmware, so the linuxcnc side component needs to match.


I dont have an RPI3, Ive been using RPI4. I can recommend you try this image if it still doesnt work
github.com/Expatria-Technologies/remora-flexi-hal/releases

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

More
3 years 2 months ago #278178 by cakeslob
Viren, I would like to use a trimmed down version of your lathe configuration as one of the provided sample config. I hope this is ok.

Also, can you post a file with threading?
I am working on my tiny remora lathe, but I dont know how to set it up or how to use a cnc lathe. I was hoping I can copy most of your config file and also use it as a sample hal file for the remora project.
I hope this is alright with you.

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

More
3 years 2 months ago #278182 by virencq
I will be more than happy, to share something I know how.
meanwhile, I added your suggestion to .hal file. did not work.
 

File Attachment:

File Name: ID-g76.ngc
File Size:154 B
 

File Attachment:

File Name: OD-g76_2023-08-16.ngc
File Size:729 B
The following user(s) said Thank You: cakeslob

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

More
3 years 2 months ago #278186 by cakeslob
Ok, thanks Viren.


Hmm that is odd for sure. I am only using RPI4. I dont know exactly the difference between RPI3 vs RPI4 in regards to SPI

What board are you using with your setup? I dont think it should matter, but just wondering

Also, how long is your cables?
I had to use shorter cables than I normal (3d printer boards I was using around 100-130mm) with my nucleo setup, I had to use less than 100mm cable length.

ok, just to have our bases covered
- leave the base_freq entry in hal regardless, we need that for the nucleo repo
- test with axis gui, (shouldnt be any different but lets make sure)
- try the flexi-hal RPI4 image, that one should positively work software side.
- copy the comp from your RPI 3 setup. I dont think Ive made any changes since you first installed, but just double check

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

Time to create page: 0.234 seconds
Powered by Kunena Forum