Connecting Router to 5v output

I would like to be able to turn on and off the router through program control. I have been looking through the documentation and previous forum posts and haven’t been able to learn on my own.

I have a 5vdc relay that I want to use to turn the Makita router on/off. I have connected it GPIO27.

  1. How do I turn GPIO27 on and off? In Google there is a mention of an I/O screen in FluidNC which I cannot locate.

  2. Can GPIO27 be assigned to the Spindle tab in FluidNC so I can use those buttons?

  3. What is the gcode command to turn output GPIO27 on/off? M-something right?

Thanks,

Gary

Bart sells a 5v relay that works in the expansion port of the jackpot controller. The config is really easy.

Now more specific to your question: yes you can use the 5v outputs to drive a relay. Just copy the relay section from the fluidnc wiki, map the gpio 5v and do your magic

Cesar

Thank you for the reply. I found the Wiki and I’m reading through it. However, I don’t anywhere that it says how to map the I/O. In the wiki it tells me that GPIO27 is a usable output, but that doesn’t tell me how.

I have the relay wired to GPIO27, how to I turn it on or off?

Your relay section should look like this with the gpio output with the pin you want to use. (Since that 5v pin is pwm idk if it is going to work. My jackpots are running with the official relay and rs485 modules)

Sorry the camera photo, in actually running a job from the tablet.

What you are showing is no help to me, I don’t what I am looking at. And if I did know what file to open in Notepad, I would have no idea what to change it to.

I connected my relay to GPIO27 because on the Jackpot 3 board this is labeled 5V. So I bought a 5vdc to 120vac relay. Is that wrong?

Is there a way, in my current set up as I described it, to turn on GPIO27 or not?

Now you need to edit your config.yaml to make the output work with that gpio so Fluid can make your m5 commands to use that as a signal.

Im sorry i cant make my self clear and my advices. As i said im actually running a job and writing between bits changes.

Also make sure you do not have the newest version of the Makita router, it won‘t start up again after a power loss without you toggling the physical switch. So if you are using a relay, it also won‘t start again on its own. It‘s a safety feature that regrettably is rather bad if you use it in a CNC.

cesar is correct edit config.yaml

need to post yaml file

I give up. Just not going to use I/O to turn the router on/off.

Editing the config file is something you can do using the webinstaller, it isnt hard. You have to do some edits even for squaring your machine. Even the io modules that work on the expansion port needs that

At the very least, it’s not a bad Idea to familiarize yourself with the yaml file. The yaml file is, for lack of a better term, the bridge between the software and the controller’s hardware. It tells the software what hardware is available and how to use it.

I am familiar with the file. I did the edits required for squaring the machine. The difference was I had instructions to do it. After I took the measurements, I had the procedure to open the file, change a specific element to the new value, save, close, reload the new file. Yes, that was easy. But in this case, I don’t know which element needs changing and what to change it to. All the feedback that I got was, just change the file, its easy. I’m a newbie and just not that comfortable changing such an important configuration file by trial and error.

But the real kicker that made me decide to abort this effort was that the Makita on/off switch will need to be cycled on and off after each time the controller turns it off. I understand this safety feature, it isn’t as vital as on a table saw, but I understand why the manufacturer would want it. So if I have to manually throw the switch anyway, why hook it up in the first place.

Thank you to all that helped me!

For what it’s worth on my first build of the Primo machine I felt I had to have the spindle on and spindle off command ability as my only experience was with a $50k ShopBot monster at a commercial makespace. Which got shut down due to covid so I built the V1 MPCNC Primo.

Anyway…I just used the manual on off on my Makita. Honestly I liked it because as I dove deeper in I had some mental hiccups and was always thankful the spindle had no ability so suddenly turn on!

It just was easy to just turn on methodically at the start. I assumed I would integrate the spindle down the road but never did.

Then I recently built my LR4.

Anyway good luck!!

Got a link to this relay? this just caught my attention :smiley:

This is a fun option being released soon. Control power and speed without a spindle/VFD setup.

Jason,

I bought them on Amazon and I had multiple options so I just got the 8-pack. If you want, text me your address and I’ll drop a few in the mail to you. Or if you want to purchase them yourself, here is the link

https://a.co/d/g1YJcdo

Gary

704-604-5648

Holy cow! I can turn on my router AND my dust collection?!?!?

https://www.amazon.com/dp/B00WV7GMA2/ref=cm_sw_r_awdo_navT_g_C1E738ERT8P5MAVX0RRD

This is the official relay module

thanks all

I was just reading through some of the Fluidnc wiki and came across a section which is applicable to both the original question of this thread and the Sienci AutoSpin router.

http://wiki.fluidnc.com/en/config/spindle_speed_maps

With respect to the original question, about half way down that page is a subsection entitled, Relay or Off/On Spindle.

2 Likes