Cnc machine, mosfet and relay board

hey everyone.

im having a little trouble with some electronics.

#i have a cnc machine with a vfd controlled spindle. the breakout board is only 5v without onboard relay for turning on the spindle so i bought a 12v relay module and a mosfet module as well as a 12v power source.

12v power source : https://www.amazon.co.uk/dp/B08NX685...sin_title&th=1

12v relay: https://www.amazon.co.uk/dp/B08NX685...sin_title&th=1 (also this as i ordered 2 : https://www.amazon.co.uk/dp/B07QKXQ6...fed_asin_title)

12v mosfet with 5v trigger: https://www.amazon.co.uk/dp/B07DJ49L...fed_asin_title

now, i have this wired as such,

12v feeds both the mosfet + and - as well as the relay + and -

i have the signal to the mosfet from the breakout board.

then the relay module is hooked up to the vfs terminals Xgnd and fwd.

when i trigger the 5v signal to the mosfet i can hear the 12v relay clicking and the status led turns on, however, with a multimeter on the com and NO terminals (same with the NC terminal) i get 0v being output.

the relay module is set to trigger high, if its set to trigger low, nothing happens at all when the mosfet signal is applied and removed.

reason im asking about this here is because im using an arduino to simulate the breakout board of the machine testing it all at home before i install it into the machine. im not sure why im not getting any voltage coming out of the relay when i can hear it clicking.

The relay NO and Common contacts are just a switch. You need to supply the voltage that you want to switch just like any other switch

yeah, i have the 12v going into the inputs on the relay, so when the relay is activated, should the no and com receive the 12v and be able to be measured on the multimeter?

if im getting this wrong, i know its a little cheeky to ask, but could you modify the image i provided in order to show me what the wiring actually needs to be?

No, the NO and common contacts should just close when the relay is activated just like any switch. No voltage should be present on either of them. It is up to you to provide it

Use the multimeter to confirm that is happening although, if you can hear the relay clicking then it is almost certainly working OK

hmm i see, then im somewhat confused.

i’ve been instructed that to get the VFD to start and stop the spindle, the FWD and XCOM needs to be bridged via a relay, hence this whole setup. the idea is that the relay bridges the 2 terminals on the VFD however the FOR doesnt output any voltage as far as i can tell. that will need to wait till monday for me to put the multimeter on them and check. which is frustrating because monday is the deadline to get this section of the project functional.

however, for the sake of testing to ensure it is functioning, can i jumper 12v from the power supply to say, NO connection and use the multimeter to check if the connection is opening and closing?

Your mosfet module is for negative side switching. Your image shows you try to switch positive.
But with your relay module, you don't need that mosfet at all. It works with 5V signal.

i tried applying a 5v signal to the signal pin on the relay, it did nothing. so i installed the mosfet and it worked

If all you want to do is to bridge 2 terminals on the VFD, the NO and common contacts on the relay can do that. No voltage is required

ok, cool. i will give this a shot on monday and see what happens

You likely wired it wrong.
At least the module on your second link works with 5v signal, the other link is wrong.

not sure how i could have wired it wrong, it literally has one terminal for the signal, i tried it with a +5 line and got no reaction from the relay, i did the same with a 12v line and got it to click

I don't know which relay you use.
In any case you need GND from the control board.

cant take gnd from the cnc machines breakout board. the output pin to activate the spindle is a +5v line

Why you can't?
You need it, just one wire can't close the circuit.

wel, the mosfet module does connect to the common. but it uses the 5v as the actual trigger then closes the “gate” on the mosfets to pass the 12v through which the relay module then picks up that 12v and energises the coil as its designed to take a single + signal of 12v

So you have control board GND?
Look, if you want to wire this correctly, post the link to your ACTUAL relay module.

i posted links in the first post to the hardware i have. those are what i ordered and received.

Don't connect anything to the NO, NC or COM.
Just set your meter to ohms or beeper if it has it. If the contacts close then it should read almost zero ohms or beep

continuity test. omg why did i not think of that!

:thinking: