Open imBunyip opened 1 year ago
Thanks for reporting ! I have tested the lib on an ESP32 with this update so I'm confident that it should work. One of the modifications was to increase the default SPI clock frequency to 4MHz, maybe if your SPI layout is subject to interferences (long wires, etc) this could cause the issue ? Can you try with a lower SPI frequency ? (default was 1MHz).
yea thanks,was going to do some testing tonight, changing to 1mhz fixes the issue thanks (_), the distance of the spi lines is only 1cm or so, if its not long lines on the spi what else could it be.
Strange indeed if you have very short SPI wires. I'll add a comment in the SPI example to instruct people to lower the SPI freq if needed.
hey, seems the new update is causing some problems, using the simple back and forth example. https://github.com/tommag/TMC5160_Arduino/blob/master/examples/TMC5160_SPI/TMC5160_SPI.ino
the motor moves from 0 to 200 sometimes and sometimes doesnt. there is also allot bad data being recieved from get pos and get speed so forth, example output from serial print.
example output from old library working correctly with the exact same setup.
testing on the esp32-s3-devkitc-1 or m5stack atom-s3.