Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about Remora's up to eight axes #40

Open
YongHe999 opened this issue Feb 22, 2023 · 2 comments
Open

Questions about Remora's up to eight axes #40

YongHe999 opened this issue Feb 22, 2023 · 2 comments

Comments

@YongHe999
Copy link

I am considering some extreme cases, adding degrees of freedom and multi-material solutions at the head of the printer.
I would like to know how many stepper motors the current Remora supports in theory. My solution requires nine stepper motors.

I read remora.h just now, it says Max 8 joints,

Is it because the communication message is 32 bits, like int32_t jointFreqCmd[JOINTS];

Where should I start if I want to modify the 9-axis version? LinuxCNC HAL compenent, FirmwareBin, anything else?

@YongHe999
Copy link
Author

uint8_t jointEnable;

for (i = 0; i < JOINTS; i++)
{
if (*(data->stepperEnable[i]) == 1)
{
txData.jointEnable |= (1 << i);
}
else
{
txData.jointEnable &= ~(1 << i);
}
}

@YongHe999
Copy link
Author

//change
//uint8_t jointEnable;
uint16_t jointEnable;

//change
//#define JOINTS 8 // Number of joints - set this the same as LinuxCNC HAL compenent. Max 8 joints
#define JOINTS 9
//change
//#define VARIABLES 6 // Number of command values - set this the same as the LinuxCNC HAL compenent
#define VARIABLES 5

//change
//volatile uint8_t *ptrJointEnable;
volatile uint16_t *ptrJointEnable;

After modifying these items, the nine-axis movement can basically be realized.

It is worth mentioning that in order to ensure
#define SPIBUFSIZE 64 //(4+4JOINTS+4COMMANDS+1) //(MAX_MSG*4) //20 SPI buffer size ......FIFO buffer size is 64 bytes?

I modified the VARIABLES from 6 to 5, will this have any effect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant