-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hello,
I am currently testing TMC429 and TMC4361A.
For the TMC4361A, I am using this library:
https://github.com/tommag/TMC4361_Arduino
In my application, i want to to set a constant speed and target position. This is possible with the "hold_mode" mode on both chips.
On the TMC4361 it is working very nicely with the library above, so I just set maxSpeed and targetPosition and the movement is performed.
I tried the same with the TMC429 library, but got no success. Hold_mode is not implemented, so I just added:
void TMC429::setHoldMode(size_t motor)
{
setMode(motor,HOLD_MODE);
}
The main code is looking somehow like this:
void setup()
{
tmc429.setup(CHIP_SELECT_PIN, CLOCK_FREQUENCY_MHZ);
tmc429.initialize();
tmc429.setHoldMode(MOTOR);
}
void loop()
{
tmc429.setTargetVelocityInHz(MOTOR, 5000);
tmc429.setMaxVelocity(MOTOR, 5000);
tmc429.setTargetPosition(MOTOR, 5000);
}
But this will lead to no movement. With ramp_mode example, everything is working fine, so it is not a general issue with the setup.
Any idea what is misssing to make it run?
Metadata
Metadata
Assignees
Labels
No labels