bdring / 6-Pack_CNC_Controller

MIT License
289 stars 71 forks source link

second motor socket unusually warm. #46

Open sixtwoeight opened 3 years ago

sixtwoeight commented 3 years ago

everything seems to be running fine, but i've noticed that the 2nd motor socket (y-axis) seems run unusually warm. even when just powered on and not used it seems to 5-10 degrees warmer. intuitively that doesn't seem normal, what might cause that. i'm using tmc-5160 drivers on all three (bigtreetech)

bdring commented 3 years ago

I don't know. Are the currently set the same for all drivers?

TMC5160 has given us a lot of problems.

https://github.com/bdring/Grbl_Esp32/wiki/Trinamic-TMC5160-Issues

sixtwoeight commented 3 years ago

all three are bigtreetech tmc-5160 silentstepstick. to see if it's the drivers i switched them around and still the same issue... the second socket runs 5-12 degrees (according to my ir thermometer) hotter. the jumpers all set to spi, and 5160 (over default) and 3.3v (over 5v). i will note that the last time i fiddled with the machine definition file i just noticed that when i compare it to the example on github that i left out

ifdef N_AXIS

    #undef N_AXIS

endif

and the #define MACHINE_NAME did not match the name of the file... both of which i'm correcting now and will reflash.. i'm new at this and maybe been fiddling around to much.. but it doesn't inherently seem like something that would cause this issue...

as a side note i did just realise that my power source 24v 14.6 amps... that would fit the observations suggesting wierd behavior due to psu.... i will continue to reflash with the changes i made to the machine definition and see if the heating issues resolves itself. will also include the definition here in case u notice something that stands out. will report back

pragma once

// clang-format off

/* 6_pack_trinamic_V1.h Part of Grbl_ESP32 Pin assignments for the ESP32 SPI 6-axis board

2021-03-07 B. Dring for Clinton R.
Grbl_ESP32 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Grbl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Grbl_ESP32.  If not, see <http://www.gnu.org/licenses/>.

*/

define MACHINE_NAME "5160_v2.h"

ifdef N_AXIS

    #undef N_AXIS

endif

define N_AXIS 3

// I2S (steppers & other output-only pins)

define USE_I2S_OUT

define USE_I2S_STEPS

//#define DEFAULT_STEPPER ST_I2S_STATIC

define I2S_OUT_BCK GPIO_NUM_22

define I2S_OUT_WS GPIO_NUM_17

define I2S_OUT_DATA GPIO_NUM_21

define TRINAMIC_RUN_MODE Motors::TrinamicMode::CoolStep

define TRINAMIC_HOMING_MODE Motors::TrinamicMode::CoolStep

// Motor Socket #1

define X_TRINAMIC_DRIVER 5160

define X_DISABLE_PIN I2SO(0)

define X_DIRECTION_PIN I2SO(1)

define X_STEP_PIN I2SO(2)

define X_CS_PIN I2SO(3)

define X_RSENSE TMC5160_RSENSE_DEFAULT

// Motor Socket #2

define Y_TRINAMIC_DRIVER 5160

define Y_DIRECTION_PIN I2SO(4)

define Y_STEP_PIN I2SO(5)

define Y_DISABLE_PIN I2SO(7)

define Y_CS_PIN I2SO(6)

define Y_RSENSE TMC5160_RSENSE_DEFAULT

// Motor Socket #3

define Z_TRINAMIC_DRIVER 5160

define Z_DISABLE_PIN I2SO(8)

define Z_DIRECTION_PIN I2SO(9)

define Z_STEP_PIN I2SO(10)

define Z_CS_PIN I2SO(11)

define Z_RSENSE TMC5160_RSENSE_DEFAULT

//4x Input in Socket #1

define X_LIMIT_PIN GPIO_NUM_33 //NC

define Y_LIMIT_PIN GPIO_NUM_32 //NC

define Z_LIMIT_PIN GPIO_NUM_35 //NC

define PROBE_PIN GPIO_NUM_34 //NO

define DEFAULT_INVERT_LIMIT_PINS 1

define DEFAULT_INVERT_PROBE_PIN 0

// 4x Switch Input module in socket #2

//GPIO PIN 2 left unconnected for boot loader

ifdef INVERT_CONTROL_PIN_MASK

undef INVERT_CONTROL_PIN_MASK

endif

define INVERT_CONTROL_PIN_MASK B0000

define CONTROL_FEED_HOLD_PIN GPIO_NUM_25

define CONTROL_CYCLE_START_PIN GPIO_NUM_39

define CONTROL_RESET_PIN GPIO_NUM_36

// === Default settings

define DEFAULT_STEP_PULSE_MICROSECONDS I2S_OUT_USEC_PER_PULSE

sixtwoeight commented 3 years ago

might you have a recommendation for psu's. maybe one that has worked for you? driving three 2.8amp steppers with tmc5160 drivers.... following the guide on wetterott guide for picking a power supply (https://learn.watterott.com/silentstepstick/faq/#how-to-set-the-stepper-motor-current) just curious is u have any recommendations.

bdring commented 3 years ago

I use a 24V 16A power supply. I don't see the problem, but I know there are people with 80A power supplies that do have the problem.

We really don't know why some people have problems and some do not.

Some people have suggested these protectors might work, but I have not heard about and test results.

https://www.amazon.com/Protector-Stepper-Plug-Type-Printer-TMC2130/dp/B08BYLY158

sixtwoeight commented 3 years ago

so i got the motors moving and everything working ... you were right changing the psu did the trick.... (thanks to meanwell)... HOWEVER now that their moving they are ironically LOUDER than they've ever been before, i've tried both CoolStep and StealthChop modes with both waterott and bigtreetech drivers and still the same thing. i feel like there's something very simple in the grbl settings i'm missing... changing the step pulse does effect the sound that it makes, but not the volume of the sound... and i've tried literally every number from 10 -100. any suggestions...

because my steppers are 2.8 amps i'm thinking of trying the bigtreetech external 2160s 9https://usa.banggood.com/BIGTREETECH-TMC2160-High-Power-Ultra-Quite-Stepper-Driver-Compatible-3D-Printer-Parts-TMC5160-Motion-Control-p-1693831.html?utm_source=googleshopping&utm_medium=cpc_organic&gmcCountry=US&utm_content=minha&utm_campaign=minha-usg-pc&currency=USD&cur_warehouse=CN&createTmp=1&utm_source=googleshopping&utm_medium=cpc_bgcs&utm_content=frank&utm_campaign=frank-ssc-usg-all-newcustom-ncv90-0420-19cov&ad_id=432153545270&gclid=CjwKCAjwnPOEBhA0EiwA609Ree1PA3keX1UHNfwEz_ACj8rhTvFDg40MSK1ElpzW7C_CHXhsdLC4UxoC6j4QAvD_BwE) tho that might be overkill rofl

bdring commented 3 years ago

What is the current setting for the 2 motors? The TMC2160s tend to be louder at faster speeds. Are they quiet with slow moves.

I have no experience with TMCxxxx external drivers.

sixtwoeight commented 3 years ago

lol i think i just stumbled onto the problem: current setting? are you referring to 0.75 for (X/Y/Z) RSENSE?


From: bdring @.> Sent: May 14, 2021 5:36 AM To: bdring/6-Pack_CNC_Controller @.> Cc: sixtwoeight @.>; Author @.> Subject: Re: [bdring/6-Pack_CNC_Controller] second motor socket unusually warm. (#46)

What is the current setting for the 2 motors? The TMC2160s tend to be louder at faster speeds. Are they quiet with slow moves.

I have no experience with TMCxxxx external drivers.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bdring/6-Pack_CNC_Controller/issues/46#issuecomment-841216034, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE2TEKSGME3VGWWVLRLFWFLTNUKMNANCNFSM42CQIWPA.

bdring commented 3 years ago

These settings.

https://github.com/bdring/Grbl_Esp32/wiki/Settings#xcurrentrun-or-ccurrentrun-140-thru-145--xyzabc--stepper-run-current-extended-settings

sixtwoeight commented 3 years ago

hmm thank you. i'm not sure how i missed these. i will read up and explore... i'll prolly have some questions but will see what i can solve first.

ok so i have $140/141/142=.250 (seems kinda low for 2.8 amp motors, shouldn't it be 1.4? $150/151/152=.125

160/161/162=16

$170=16 (if i'm not using stallguard at all what should this number be set to?

thank you again for your help.


From: bdring @.> Sent: May 15, 2021 7:00 AM To: bdring/6-Pack_CNC_Controller @.> Cc: sixtwoeight @.>; Author @.> Subject: Re: [bdring/6-Pack_CNC_Controller] second motor socket unusually warm. (#46)

These settings.

https://github.com/bdring/Grbl_Esp32/wiki/Settings#xcurrentrun-or-ccurrentrun-140-thru-145--xyzabc--stepper-run-current-extended-settings

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bdring/6-Pack_CNC_Controller/issues/46#issuecomment-841663284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE2TEKUR6OXDJEV2AQRWN4DTNZ46ZANCNFSM42CQIWPA.

sixtwoeight commented 3 years ago

u were right... it just needed some tuning and uping the micro steps... now she's a silent as a mouse 🙂 thanks again 🙂


From: bdring @.> Sent: May 15, 2021 7:00 AM To: bdring/6-Pack_CNC_Controller @.> Cc: sixtwoeight @.>; Author @.> Subject: Re: [bdring/6-Pack_CNC_Controller] second motor socket unusually warm. (#46)

These settings.

https://github.com/bdring/Grbl_Esp32/wiki/Settings#xcurrentrun-or-ccurrentrun-140-thru-145--xyzabc--stepper-run-current-extended-settings

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bdring/6-Pack_CNC_Controller/issues/46#issuecomment-841663284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE2TEKUR6OXDJEV2AQRWN4DTNZ46ZANCNFSM42CQIWPA.