- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
07 Aug 2023 11:10 #277222
by virencq
Replied by virencq on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I apologize for not clarifying my points.
My current setup on the lathe has raspberry pi 4B+ 2 GB.
Elovalvo 64 bit image.
All I/O on direct GPIO's.
i.e: Input/outputs, Steppers X&Z. Spindle PWM with Encoders PHASE-A & Index.
I am curious and eager to use Remora. especially with PC over ethernet. Once it is finalized by Dev!
My current setup on the lathe has raspberry pi 4B+ 2 GB.
Elovalvo 64 bit image.
All I/O on direct GPIO's.
i.e: Input/outputs, Steppers X&Z. Spindle PWM with Encoders PHASE-A & Index.
I am curious and eager to use Remora. especially with PC over ethernet. Once it is finalized by Dev!
Please Log in or Create an account to join the conversation.
07 Aug 2023 17:25 #277256
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
It might be a while before ethernet becomes ready, but I am running a similar configuration with RPI + Nucleo board without any issues. I think you would find regular remora to be a good improvement over the direct GPIO of RPI. You can set it up to run with SPI cable for now and it will be an easy conversion to ethernet later.
Please Log in or Create an account to join the conversation.
09 Aug 2023 06:55 #277404
by 3DPandME
Replied by 3DPandME on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Woo big thanks to Cakeslob! He has helped me get things running over the last few evenings.
it's only a minor step forward but we have remora running on the spider king board with the 2209 drivers!
First steps here
www.instagram.com/reel/CvtuImJNCla/?igshid=MzRlODBiNWFlZA==
it's only a minor step forward but we have remora running on the spider king board with the 2209 drivers!
First steps here
www.instagram.com/reel/CvtuImJNCla/?igshid=MzRlODBiNWFlZA==
The following user(s) said Thank You: cakeslob
Please Log in or Create an account to join the conversation.
12 Aug 2023 16:39 #277739
by virencq
Replied by virencq on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hello Cakeslob,
I have used Bluepill STM32F103. Compiled and uploaded .bin file.
Estop working, but machine on remains on for 2-3 sec. then it is automatically off.
I have attached my board.config, pin connections,.... file for your kind perusal.
I can't figure out what I have done wrong.
I have used Bluepill STM32F103. Compiled and uploaded .bin file.
Estop working, but machine on remains on for 2-3 sec. then it is automatically off.
I have attached my board.config, pin connections,.... file for your kind perusal.
I can't figure out what I have done wrong.
Attachments:
Please Log in or Create an account to join the conversation.
12 Aug 2023 18:56 #277746
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hey Viren, thanks for checking out the Bluepill firmware, Im still in testing with the bluepill, but have a look at the updated repo. The issue I think was the basethread PRU was too high for the 103. I added a section to the boardconfig to include the basethread, as well as a few other parts.
github.com/cakeslob/Remora/blob/nucleo_s...L/board_config.h#L46
and add this portion to your hal file. 80000 was too high for the bluepill, i am testing it around 30000 to 40000
github.com/cakeslob/Remora/blob/nucleo_s...uc/remora-xyz.hal#L9
Try to play around with the basethread frequency in the config/hal, you may need to change the remora.c file to go lower than default
github.com/cakeslob/Remora/blob/nucleo_s...Remora/remora.c#L218
but viren, I regret to inform you, but the Bluepill F103 does not support the highspeed encoder. I plan to test next with the Blackpill F401/411 which should support highspeed encoder, but they have not arrived yet.
You can try and configure your spindle with the normal encoder module, but I am not sure.
github.com/cakeslob/Remora/blob/nucleo_s...L/board_config.h#L53
github.com/cakeslob/Remora/blob/nucleo_s...L/board_config.h#L46
and add this portion to your hal file. 80000 was too high for the bluepill, i am testing it around 30000 to 40000
github.com/cakeslob/Remora/blob/nucleo_s...uc/remora-xyz.hal#L9
Try to play around with the basethread frequency in the config/hal, you may need to change the remora.c file to go lower than default
github.com/cakeslob/Remora/blob/nucleo_s...Remora/remora.c#L218
but viren, I regret to inform you, but the Bluepill F103 does not support the highspeed encoder. I plan to test next with the Blackpill F401/411 which should support highspeed encoder, but they have not arrived yet.
You can try and configure your spindle with the normal encoder module, but I am not sure.
github.com/cakeslob/Remora/blob/nucleo_s...L/board_config.h#L53
Please Log in or Create an account to join the conversation.
16 Aug 2023 13:45 #278168
by virencq
Replied by virencq on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I have managed to run my config on RPI 3B+.
My real machine is on RPI-4B. As I am addicted to Gmoccapy. So I shifted the working config to RPI-4(Physical machine).
Now the strange thing happening,
E-stop outs, so our SPI working. But jog on Either X or Z throughs Joint-0/1 error.
The same config works flawlessly on RPI 3B+.
What we have to change in config.
My real machine is on RPI-4B. As I am addicted to Gmoccapy. So I shifted the working config to RPI-4(Physical machine).
Now the strange thing happening,
E-stop outs, so our SPI working. But jog on Either X or Z throughs Joint-0/1 error.
The same config works flawlessly on RPI 3B+.
What we have to change in config.
Attachments:
Please Log in or Create an account to join the conversation.
16 Aug 2023 14:43 #278170
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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,
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.
16 Aug 2023 14:59 #278173
by virencq
Replied by virencq on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hi Cakeslob,
Yes I have used your static config.
Same remora.c from your repository.
Yes I have used your static config.
Same remora.c from your repository.
Please Log in or Create an account to join the conversation.
16 Aug 2023 15:49 #278177
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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,
In your hal file in the loadrt remora try adding this
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
github.com/cakeslob/Remora/tree/nucleo_s...NC/Components/Remora
Hmm on second thought, it could be this,
PRU_base_freq=80000
In your hal file in the loadrt remora try adding this
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.
16 Aug 2023 15:52 #278178
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
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.
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.
- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Time to create page: 0.176 seconds