Is advancedmotordriver (with respect to the trinamic 2660 line) meant to send motion commands over SPI as well?
Is there a way to set it up so that we initialize the IC over SPI but still use the STEP/ DIR pins for motion?
@SirGeekALot this is what you just asked about so you may want to subscribe to this thread.
I am adding that exact functionality to Smoothie2 right now
for the TMC2130 SilentStepStick
@Douglas_Pearless awesomeness! But can we run that on current smoothie1 too?
@raykholo it ONLY does step and dir over the strep and dir lines, it cannot do motion over SPI as SPI CANNOT be used during an interrupt. @Douglas_Pearless not sure what you mean the motorcontroll only sets up the over SPI and motion control can only be done over step/dir lines. it already does that.
@Wolfmanjm can you elaborate on the config for this please, as none of the examples on that documentation page show how to define a step, dir, or enable pin.
step dir and enable are configured exactly the same as any other driver. no difference. the advance motor driver only handles the chip setup via SPI. http://smoothieware.org/advancedmotordriver
The step/dir/enable are the same as for any other onboard chip
@raykholo https://github.com/Smoothieware/Smoothieware/blob/edge/ConfigSamples/Smoothieboard/config#L39
I updated the wiki docs to add a comment about step/dir FYI enable is NOT done via a pin but via the SPI commands.
Fantastic,
I hadn’t been into the Smoothie1 code base for a while and had not noticed this new feature!!!
I will have a look at it and it may be easier to port this code to Smoothie2 that figure out why my code breaks the step generation code.
Cheers
Douglas
@Douglas_Pearless it isn’t a new feature, it has been in smoothie for about a year.
Well that is embarrassing, I never noticed it
@Wolfmanjm Awesome, thanks. I should be able to use the existing EN pin from smoothie as the SPI select pin. Should make things easy. OShpark just shipped my TMC2660 board for testing all this.