{"repo":"Chr157i4n/PyTmcStepper","free":true,"listed":false,"github":"https://github.com/Chr157i4n/PyTmcStepper","clone":"git clone https://github.com/Chr157i4n/PyTmcStepper.git","description":"PyTmcStepper is a pure Python library for controlling Trinamic stepper drivers via UART or SPI on platforms like Raspberry Pi and MicroPython devices.","language":"Python","stars":101,"topics":["raspberry-pi","stepper-motor","pin","driver","trinamic","python","tmc2209","spi","tmc2208","uart"],"license":"GPL-3.0","category":"self-hosted-apps","readme_excerpt":"PyTmcStepper \\ \\ This is a Python library to drive a stepper motor with a Trinamic stepper driver and a single board computer like a Raspberry Pi. This code is still experimental, so use it at your own risk. This library is programmed in pure Python. The performance of Python is not good enough to drive the motor with high speed. So if you move the motor with high speed using this library the motor will lose steps. Tested on a Bigtreetech TMC2209 V1.2 and Bigtreetech TMC2209 V1.3. It has a rSense of 110 mOhm and it uses one Pin (PDN UART) for UART RX and TX. So the PDN UART-Pin needs to be connected to the Raspberry Pis RX-Pin directly and to the TX-Pin with an 1kOhm resistor. You can read more about this in the datasheet from Trinamic. Because the TMC2209 uses one shared pin for transmit and receive in the UART communication line, the Raspberry Pi also receives what it sends. Well, the Pi receives 4 bytes from itself and 8 bytes from the driver. So the Pi receives a total of 12 bytes and only the last 8 are the reply, of which only 4 are data bytes. The documentation of the TMC2209 can be found here: TMC2209 - Datasheet The code is also available on PyPI. Installation (on Raspberry Pi) Installation with PIP Installation with GIT - clone this repo to your Raspberry Pi using - (optional) install the lib to get proper syntax highlighting and start the demo scripts from every path - install the required modules - enable the serial port in Board Support The following table shows ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Chr157i4n","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Chr157i4n/PyTmcStepper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}