Relative Content

Tag Archive for c++raspberry-pidriver

Issue with a simple control of a stepper motor with driver TMC2130

I want to control a stepper motor (SY42STH38- 1684A) with a raspberry pi using the motor driver TMC2130. It has 3 operating mode and i’m chosing the step/dir one. This should be easy, i have soldered the SPI_mode to GND to disable it as per the datasheet and connected the two pins STEP/DIR to the 27 and 22 gpios of the raspberry pi. Here is the code i would like to use, a very simple one but i don’t have the correct output.