Simple relay control... or not?
-
Brilliant, thank you @droftarts!
-
@droftarts said in Simple relay control... or not?:
@nightowl999 Then don't use the heater outputs, as 24V will be too much for the relay. You can use a fan output, with the fan voltage set to 12V. I would imagine the current draw of a relay is less than 2A.
Ian
RELAY 20 MHA MAX 80MHA
-
@droftarts said in Simple relay control... or not?:
@nightowl999 Then don't use the heater outputs, as 24V will be too much for the relay. You can use a fan output, with the fan voltage set to 12V. I would imagine the current draw of a relay is less than 2A.
Ian
Isn't the maximum amps 800mA at 12V? or am I reading it wrong?
-
@jumpedwithbothfeet Yes, you're right. It's 2A with V_Fused, 800mA total current with 12V. Looks like the relay is well below this, though.
Ian
-
@droftarts I was half hoping it was 2 amps it would of simplified my wiring a fair bit!
-
This post is deleted! -
@droftarts said in Simple relay control... or not?:
Just as a quick follow-up, this should work, then:
M950 R0 C"out4+out7"
...with the relay wires connected to the pins of Out 7 and the Out 7-9 jumper between V_OUTLC2 and 12V?
Thank you
-
@nightowl999 yep
-
-
@nightowl999
I just read the Amazon description for your relay-control module and it says it can be triggered by an Arduino using any voltage from 3 to 14 Volts, so you don't need to worry about drawing too much power from the onboard 12 Volt supply at all.
Where did you read that it takes 2 Amps to drive the module? I'd like to verify that.
-
Erm, I didn't @alankilian. That was @jumpedwithbothfeet wishing it was 2A!
-
@nightowl999 said in Simple relay control... or not?:
Erm, I didn't @alankilian. That was @jumpedwithbothfeet wishing it was 2A!
OK, I got it.
It looks like you're in good shape!
-
@alankilian
Yep. Just keep an eye out for a big cloud of smoke in SW England. If there is one, it didn't work -
@nightowl999 have you considered using the Laser/VFD output to drive the relay module? It provides a 5V signal.
-
My intention is to 'upgrade' to a milling motor in the not too distant future, @dc42, so I was going to leave the Laser/VFD output for that.
Doing it this way for now will support both my router and dust collector, and just the dust collector when I've saved enough for the MM.
-
@alankilian Ah, perhaps not.
I think I've missed something because, when I send the M3 code from the Console, I get the error:
M3
Error: M3: No P parameter and no active tool with spindle.Am I supposed to configure this elsewhere in the config.g file?
Thank you
-
@nightowl999
From the GCODE page:
"It is an error if there is no tool active or the active tool does not have a spindle assigned and there is no P parameter provided to define which spindle this should be applied to."
Maybe you just need to select a tool using a T command? REFERENCE
Or you need to define a tool using M563 ?
-
@alankilian Oops, well I haven't defined a tool, so that's probably a good starting point!
Would it just be a case of adding a single line like this before the M950 line, then:
M563 P0 R0 S"Makita" ; assign spindle 0 to tool 0 and name it Makita
Thank you
-
I'm still having some difficulty getting this 'simple' thing to work, but I have made some progress, thanks to you guys on here!
I've revisited my config.g file and come up with this to configure the relay:
; Makita and relay configuration
M950 R0 C"out1+out8" ; enable router relay on out8
M563 P0 S"Makita" R0 ; assign spindle 0 to tool 0 and name it Makita
T0 ; select tool 0Now, when entering M3 in the command line I don't any errors at all - but the relay doesn't activate, so nothing happens.
I know I'm getting there, but I must have missed something!
Any further help would be appreciated.
Thank you
-
@nightowl999 try adding
L1
to the M950 and then sendingM3 S1
rather than just M3