Closed imBunyip closed 1 year ago
Well... You mention TMC5160 but are posting this in the TMC5130 Lib... Hard to give you any advice without a clear schematic of what you're doing :) TMC5130 has an internal pull up resistor (datasheet p. 10). TMC5160 hasn't.
If you use a bus switch, having a pull up resistor or not on the NAI input doesn't matter actually. This is the adressing sequence :
Hope this helps. As stated in the code, all of this is explained in the TMC5130 datasheet section 5.4.
hey i recently built a remix of your faradet system for nema 11 size steppers, thanks for sharing the schematic it helped loads.
after spending days on the arduino mega avr and nothing working i moved to teensy and i got the library working reading the correct address.
so far i can only get the first chained driver working,and im a little confused by some of the comments inside the uart_chained_drivers.ino.
line 20 you say "This code uses the bus switch strategy with NAI left open."
line 92 you say " Use Serial1 (hardware UART on Feather M0) ; address 1 (NAI input has a pull up resistor)"
does only the first driver in this solution need nai pulled up? and therefore the analog switch and eeprom do the rest of the address switching?
if nai is not pulled up my analog switch does not switch. im guessing this isnt the same for the next drivers in the chain?
setup, tmc5160 from mellow fly with encoder pins and diag0 and diag1 available for use. teensy 3.6 > rs458 module. 9 volt power from PD for motors, 3.3v supply to encoders and swicth and eeprom and driver itself. im using this code but have adapted it for use with your tmc5160 library.