pootle / tripipy

Simple python driver for Trinamic tmc5130 connected to Raspberry Pi
The Unlicense
37 stars 14 forks source link

Add registers from TMC5160 datasheet #6

Closed gautamjain closed 4 years ago

gautamjain commented 4 years ago

Hi,

Thanks for sharing this project! I'm trying to use it with the TMC5160 SilentStepStick.

I found there are several global configuration registers that are different between the TMC5160 and the TMC5130. Some of them (like GLOBALSCALER for setting max drive current) are critical for using the TMC5160.

I've defined all of the TMC5160 registers in a separate file. Changes are mostly to the global configuration registers or the addresses for other registers. All ramp generation registers and most flags have not changed.

Let me know what you think and I can make changes accordingly.

Thanks!

pootle commented 4 years ago

Nice 1, thanks