Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
3 years 2 months ago #277222 by virencq
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!

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

More
3 years 2 months ago #277256 by cakeslob
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.

More
3 years 2 months ago #277404 by 3DPandME
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 
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 #277739 by virencq
   

File Attachment:

File Name: BluepillCo...ions.txt
File Size:775 B
 

File Attachment:

File Name: board_config.h
File Size:2.09 KB
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 Attachment:

File Name: postgui_ca...8-12.hal
File Size:2.5 KB
 

File Attachment:

File Name: RPTM.hal
File Size:3.92 KB
 

File Attachment:

File Name: RPTM.ini
File Size:3.13 KB
 

File Attachment:

File Name: spindle_20...8-12.hal
File Size:1.89 KB
file for your kind perusal.
I can't figure out what I have done wrong.

File Attachment:

File Name: board_config.h
File Size:2.09 KB

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

More
3 years 2 months ago #277746 by cakeslob
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

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

More
3 years 2 months ago #278168 by virencq
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.
​​​​​​​
 

File Attachment:

File Name: RPTM_2023-08-16.hal
File Size:3.48 KB
 

File Attachment:

File Name: RPTM_2023-08-16.ini
File Size:3.15 KB
 

File Attachment:

File Name: spindle_20...16-2.hal
File Size:2.53 KB

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

Time to create page: 0.546 seconds
Powered by Kunena Forum