Unable to control Spindle with Duet 2 WiFi
-
@markz said in Unable to control Spindle with Duet 2 WiFi:
u can get a PWM->Analog converter cheap
as in section connecting a spindle, https://docs.duet3d.com/User_manual/Machine_configuration/Configuration_CNCnotes it is better to buy the green PCB version, not the blue one, because the green one is opto-coupled, the blue one not.
-
@wschuller
On a Duet2 you can enable a pullup resistor to any PWM output by adding "^" in front of the pin name.M950 R0 C"e1heat+^e0heat" Q1000 L1:12000 ; pullup enabled for e0heat
I don't know, if that's necessary for the on/off switch.
Maybe you have to invert the signal as well with "!" ?M950 R0 C"e1heat+!^e0heat" Q1000 L1:12000 ; pullup enabled and inverted
-
@JoergS5 said in Unable to control Spindle with Duet 2 WiFi:
@markz said in Unable to control Spindle with Duet 2 WiFi:
u can get a PWM->Analog converter cheap
as in section connecting a spindle, https://docs.duet3d.com/User_manual/Machine_configuration/Configuration_CNCnotes it is better to buy the green PCB version, not the blue one, because the green one is opto-coupled, the blue one not.
This is the one I got for mine.
-
@Nightowl said in Unable to control Spindle with Duet 2 WiFi:
this link
Thanks Nightowl, I have one of those Chinese 500w spindle motors, however, I have upgraded to a safer PSU and wired as per the Youtube link in my original post. The only difference is he uses a generic GRBL board and I am trying to connect the Duet 2 WiFi.
-
@markz Thanks for your reply, yes I have one of the GREEN PWM converters as specified in the Duet documentation mentioned. Sorry, I may have confused everyone calling it the Spindle Controller above.
-
@JoergS5 thanks for the link. I am using the GREEN PWM Converter shown.
-
@wschuller I have one additional comment, but you will probably already know it. The chinese spindles often have very bad grounding (or worse, the ground connector is not connected to the housing at all), in CNC forums are reports that they often need resoldering. If you'not done it, better measure that grounding works correctly.
-
@o_lampe thanks for the assistance. I tried all combinations of adding pull up resistor and inverting the signal and found no change. I will need to double check wiring, continuity, polarity etc and find out how to test devices such as the PWM converter, as I don't have an oscilloscope. Diving further down the rabbit hole!!!
-
@JoergS5 do you mean the PSU supplied with the spindle has bad grounding or do mean the actual spindle motor itself?
-
I have just been performing my happy dance for the last half hour having solved my particular dilemma. I changed from using heater pins to fan 1 & 2 and voila it all worked. I can only suggest that I have damaged the E0 & E1 terminals over tightening them with all the failed attempts over the last year.
A big thank you to those providing assistance. It clearly prompted me to try different things, which led to the breakthrough.
I understand it is difficult to diagnose issues remotely as you have no idea what state all the parts in the puzzle are in, nor all the pieces are present.
From my experience with this issue I have found it difficult to be 100% certain I have used all the correct devices, wired it up correctly and generated the correct code, as everything I tried from other posts failed, until today. I now know my devices, wiring and code are spot on.
I would like to create a solution page similar to this link: https://learn.ooznest.co.uk/Guide/Connect+a+AMB+Kress+or+Mafell+spindle+with+digital+control/161
If anyone has a suggestion as to where that should be posted, please let me know so I can create the solution to assist others.
-
@wschuller said in Unable to control Spindle with Duet 2 WiFi:
actual spindle motor itself
I mean the spindle itself. The housing is often not grounded correctly, see e.g. https://www.cnczone.com/forums/spindles-vfd/426990-cnc-forum.html and I mention it because it dangers life if not grounding. User mactec54 with black humour "This what they call in China population control. No Earth Ground Required". There is an additional danger, that aluminium oxidizes after a few minuts and is an isolator, so an aluminium holder is e.g. not useful for grounding.
-
@JoergS5
I want to clarify the terms used here:
"Erde" = PE (protection earth)
"Masse" = GND (ground)Worldwide, there are gazilion electronic housings not grounded, because they are plastic. But upwards from a certain power level the 230V/110V mains connector has to have PE.
-
@o_lampe thanks for clarifiying. In the CNC forum are some discussions about plastic, special rules for new zealand etc. I just wanted to warn, because it can harm health (very much!).
-
-
@JoergS5 said in Unable to control Spindle with Duet 2 WiFi:
https://www.cnczone.com/forums/spindles-vfd/426990-cnc-forum.html
Thanks, yes the 48v power supply I am using is earthed and I am using a dc spindle.