teemuatlut / TMC2130Stepper

Arduino library for Trinamic TMC2130 Stepper driver
MIT License
159 stars 50 forks source link

Temperature monitor? #61

Open robustini opened 6 years ago

robustini commented 6 years ago

I can't find any references to the possibility of reading the operating temperature of the TMC2130, is it possible to do it or does the library not tolerate this? With Marlin i can read this with "M922":

16:01:48.012 : echo: X Y Z E0 E1 16:01:48.012 : echo:Enabled true true true true true 16:01:48.012 : echo:Set current 800 800 800 600 800 16:01:48.012 : echo:RMS current 795 795 795 581 795 16:01:48.012 : echo:MAX current 1121 1121 1121 819 1121 16:01:48.012 : echo:Run current 25/31 25/31 25/31 18/31 25/31 16:01:48.012 : echo:Hold current 12/31 12/31 12/31 9/31 12/31 16:01:48.012 : echo:CS actual 25/31 25/31 25/31 18/31 12/31 16:01:48.012 : echo:PWM scale 0 0 0 0 0 16:01:48.012 : echo:vsense 1=.18 1=.18 1=.18 1=.18 1=.18 16:01:48.012 : echo:stealthChop false false false false false 16:01:48.012 : echo:msteps 64 64 64 32 0 16:01:48.013 : echo:tstep 66 1646 70 1048575 1048575 16:01:48.013 : echo:pwm threshold 0 0 0 0 0 16:01:48.013 : echo:[mm/s] - - - - - 16:01:48.013 : echo:OT prewarn false false false false false 16:01:48.013 : echo:OT prewarn has 16:01:48.013 : echo:been triggered false false false false false 16:01:48.013 : echo:off time 3 3 3 3 3 16:01:48.013 : echo:blank time 24 24 24 24 24 16:01:48.013 : echo:hysteresis 16:01:48.013 : echo:-end 2 2 2 2 2 16:01:48.013 : echo:-start 3 3 3 3 3 16:01:48.013 : echo:Stallguard thrs 0 0 0 0 0 16:01:48.013 : echo:DRVSTATUS X Y Z E0 E1 16:01:48.013 : echo:stallguard X X 16:01:48.013 : echo:sg_result 95 0 106 175 194 16:01:48.013 : echo:fsactive 16:01:48.013 : echo:stst X X 16:01:48.013 : echo:olb X 16:01:48.013 : echo:ola X 16:01:48.013 : echo:s2gb 16:01:48.013 : echo:s2ga 16:01:48.013 : echo:otpw 16:01:48.013 : echo:ot 16:01:48.013 : echo:Driver registers: X 0x00:19:00:57 16:01:48.013 : Y 0x01:19:00:00 16:01:48.013 : Z 0x00:19:00:7D 16:01:48.013 : E0 0x81:12:00:9D 16:01:48.013 : E1 0xE0:0C:00:D1

teemuatlut commented 6 years ago

You can only get binary true/false information about the temperature of the IC. One temperature level is for over temperature prewarn and the other one is for over temperature.