Open ghost opened 3 years ago
Upon revisiting this hub, I saw you created this issue just days after I created mine: https://github.com/teemuatlut/TMCStepper/issues/208#issue-972292934
I'm thinking the problem with the BigTreeTech 5160 is indeed SPI related. Interesting that you tested the board without VCC_IO
as I never thought to try that.
Unfortunately, there does not seem to be much information on the TMC5160s that helps hobbyists like us to fully understand how to get things working. I am too far into developing my system's first prototype that I am needing to stick with the Arduino boards until this current prototype development cycle of mine is complete. Otherwise, I would be testing an entirely different suite of microcontrollers to pinpoint whether or not the issue is with ATMega.
When i was looking if anyone had the same problem i found your thread, i agree with you have little documentation on how to use the drivers without a dedicated board, i changed some values and my motor moves but i don't know it's too weird it just seems to be working like a normal driver i can't activate stealth chop or stall guard, lately i tried using an esp8266 because once i had problems with the spi of an arduino of mine so i tried to use but same arduino problems if i find any solution I'll tell you :)
Hi everyone, I bought two tmc5160 from bigtreetech more specifically these https://www.biqu.equipment/products/bigtreetech-tmc5160-v1-0-driver-spi-mode-silent-high-precision-stepstick-stepper-motor-driver-with-heatsink-for-skr-v1-3-gen-v1-4-reprap?variant=20225467711586 the problem is I connected the driver to an arduino uno, mega and nano and tried to use the tmc stepper library and tested the examples that come with the library, sometimes the motor rotated but when I tried to change some parameter like microstepping or current it didn't work, so I I think the problem is in the spi communication, in the example code I just changed the corresponding spi pins to my arduino and selected the driver model, in the driver connection part with the arduino I connected the driver spi pins to the pins from the arduino, the driver has two power inputs one called VM and one called VCC-IO, I was researching and basically VM would be the power for the motor and VCC-IO would be the 5v of the driver but some people say they don't need to turn on the VCC-IO because the VM input has a voltage regulator, I don't know if it's true sometimes it worked without 5v on the VCC-IO and sometimes not, I don't know what's happening I've never used this driver and there's little information on how to use it without a 3d printer motherboard.