# Tool Enable - M15 - IOT Relay - & Breakout board (auto turn off/on router on Buildbotics Controller))

**URL:** https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720
**Category:** Controller (Buildbotics) Discussion
**Created:** [September 6, 2020, 8:44pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720 "2020-09-06T20:44:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 6, 2020, 8:44pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/1 "2020-09-06T20:44:11Z")

</div>

I have been trying to leverage the tool enable and this [IoT relay](https://smile.amazon.com/dp/B00WV7GMA2/?tag=benmyers-20) My previous CNC had this and it was a great feature to have the router turn on automatically at the start of the job and off at the end of the job. I have the breakout board but so far I haven’t been able to get it to work. From what I can tell it only needs 3 volts for it to trip the relay. My old Lead1010 used this via the tool head on (M3 S#) then M5 to turn it off.

 ![31d3DLX1ubL.AC](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/e/4/e4cc0c82c65d8e536edbf8a79cf6de32c98272e4.jpeg) ![91O6jIU37EL.AC_SL1500](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/f/b/fb51c5806f53dd990c504436d567341ac456c2f4.jpeg)

Any help would be greatly appreciated! Loving my machine!!

---

<div class="post-metadata">

### Author: ![Markevans36301](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/markevans36301/32/19_2.png) [@Markevans36301](https://forum.onefinitycnc.com/u/Markevans36301)
#### Post date: [September 6, 2020, 9:24pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/2 "2020-09-06T21:24:38Z")

</div>

I hope you/we get a good answer to this because sw control of the router spoils you quickly!

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 6, 2020, 10:02pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/3 "2020-09-06T22:02:29Z")

</div>

@Markevans36301 I did some more reading and I was able to get it to work!!! Issue was I had to move the controller off the relay to it’s own plug. This was mentioned on the BuildBotics forum. After that it, manually entering “M3 S1” through the MDI worked perfectly, both my router and shop vac turned on, the M5 turned them off. Now just have to see where the best place to put the GCode.

---

<div class="post-metadata">

### Author: ![Hypercube](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@Hypercube](https://forum.onefinitycnc.com/u/Hypercube)
#### Post date: [September 6, 2020, 10:31pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/4 "2020-09-06T22:31:56Z")

</div>

I have the same relay, but no machine yet. Can you share which pins you used on the breakout? Pictures possibly? Thanks! I can’t wait for November 21.

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 6, 2020, 11:17pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/5 "2020-09-06T23:17:22Z")

</div>

Here is a [quick video I made of it working.](https://youtu.be/-HlWibcThwY)

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 6, 2020, 11:23pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/6 "2020-09-06T23:23:07Z")

</div>

I used Pin 15 positive & 25 (ground). Under Tool Configuration you need to pick PWM Spindle and have tool-enable-mode set to lo-hi. Under I/O configuration, you need to disable load-1 and load-2. This will make pin 15 active with 3.3v when it’s sent a “M3 S1” in the GCODE, sending the 3.3v to the relay, anything you have plugged into “Normally Off” will turn on. Then you need to send “M5” in the GCODE when the job is complete. I made a backup of the Onefinity post processor and made those small tweaks so every job has them automatically inserted. You can test this by using the MDI interface in the UI and sending it “M3 S1” and what you have plugged in should turn on, then enter M5 and it will turn off. If you have issues with the controller rebooting, you might have to plug it into a different outlet due to noise. This was my issue.

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 6, 2020, 11:24pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/7 "2020-09-06T23:24:55Z")

</div>

Also, you won’t be disappointed by the CNC, the precision and build quality is much better than my previous CNC, and no V-wheels!!!

---

<div class="post-metadata">

### Author: ![OnefinityCNC](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/onefinitycnc/32/7_2.png) [@OnefinityCNC](https://forum.onefinitycnc.com/u/OnefinityCNC)
#### Post date: [September 7, 2020, 12:15am UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/8 "2020-09-07T00:15:37Z")

</div>

Great job Barry! We think it’s an awesome feature!

---

<div class="post-metadata">

### Author: ![Markevans36301](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/markevans36301/32/19_2.png) [@Markevans36301](https://forum.onefinitycnc.com/u/Markevans36301)
#### Post date: [September 7, 2020, 12:54am UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/9 "2020-09-07T00:54:23Z")

</div>

Well, I see I need to add a break out to my order and get the relay box.  
One advantage of not being first.

---

<div class="post-metadata">

### Author: ![Mirramjr](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mirramjr](https://forum.onefinitycnc.com/u/Mirramjr)
#### Post date: [September 7, 2020, 2:16am UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/10 "2020-09-07T02:16:10Z")

</div>

LOL…Mark, I totally did the same after reading his post. Hopefully, Barry gets a chance to put together a tutorial between now and December. I have no idea what any of this stuff is or how it works but I like the idea of not having to manually turn on and off my router/vac every time.

---

<div class="post-metadata">

### Author: ![dleamon303](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/dleamon303/32/407_2.png) [@dleamon303](https://forum.onefinitycnc.com/u/dleamon303)
#### Post date: [September 10, 2020, 2:24am UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/11 "2020-09-10T02:24:34Z")

</div>

Barry,  
Thank you for posting this thread for the “auto start” for the router. Since I do not know GCODE, can you tell us where in the post processor you inserted the tweaks?

Glad that you are enthused with the OF. Three more weeks for me.

Dave

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 10, 2020, 12:44pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/12 "2020-09-10T12:44:20Z")

</div>

Actually there was only one change needed shown in the screenshot below to the Onefinity (MM).pp post processor file, same addition can be made to the probe change or “Inch” versions. I would make a backup copy of the post processor file so you have something easy to fall back to if you have issues. This is specific to the Vectric software, I’m sure there is a similar spot for other software as well. After making this change, any toolpath you export using this post processor will bake into the GCode the start and stop process automatically.

Looking at the post processor it looks like the the line above was meant for this? But the code shows M03[S] instead of M3[s]? @OnefinityCNC might be able to shed some light on that.

 ![PP_Changes](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/6/e/6ee731a7cfcf6c3b4c59d027d3e64ccbc01a3c05.jpeg)

---

<div class="post-metadata">

### Author: ![cyberreefguru](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cyberreefguru/32/27385_2.png) [@cyberreefguru](https://forum.onefinitycnc.com/u/cyberreefguru)
#### Post date: [September 10, 2020, 2:23pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/13 "2020-09-10T14:23:29Z")

</div>

> [@CruversWorkshop](#):
>
> M03[S] instead of M3[s]

If I recall, gcode is supposed to be case-insensitive, but not all controllers implement it correctly.

Is M3 valid? My references say M03, not M3 - I don’t know if clipping the leading zero is supported.

-Tom

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 10, 2020, 2:45pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/14 "2020-09-10T14:45:38Z")

</div>

I seen references to both M03 and M3, but according to the Buildbotic they reference this page here for the [supported codes for their implementation](https://camotics.org/gcode.html). M3 is the tool enable code and the [S] will add the speed identified in the tool database for VCarve/Aspire.

Fan of your YouTube work btw, watching for quite a while. Keep up the good work.

---

<div class="post-metadata">

### Author: ![cyberreefguru](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cyberreefguru/32/27385_2.png) [@cyberreefguru](https://forum.onefinitycnc.com/u/cyberreefguru)
#### Post date: [September 10, 2020, 2:46pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/15 "2020-09-10T14:46:39Z")

</div>

@CruversWorkshop - thanks! I really appreciate the positive feedback (too few and far between on the Internet these days).

-Tom

---

<div class="post-metadata">

### Author: ![nxoncab](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nxoncab](https://forum.onefinitycnc.com/u/nxoncab)
#### Post date: [September 13, 2020, 5:46am UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/16 "2020-09-13T05:46:46Z")

</div>

Barry,  
Thanks for this post. I know that most cnc users would understand your thorough explanation, but for someone like me who is new to this will usually need a visual tutorial to follow what you have done. My cnc will not come until December but will consider ordering the breakout board so I can also have the router and vac start in auto.  
Looking forward for the tutorial. Cheers.

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 13, 2020, 10:43am UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/17 "2020-09-13T10:43:31Z")

</div>

Hello Nelson,

I plan on doing just that. Standing up a website for my woodworking and plan on doing a detailed blog post on this. I’ll update this post with that link when I have it completed.

Regards,  
Barry

---

<div class="post-metadata">

### Author: ![cyberreefguru](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cyberreefguru/32/27385_2.png) [@cyberreefguru](https://forum.onefinitycnc.com/u/cyberreefguru)
#### Post date: [September 13, 2020, 9:10pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/18 "2020-09-13T21:10:02Z")

</div>

@CruversWorkshop - let me know if you need help with the website - I’ve been down that road many times 😉

-Tom

---

<div class="post-metadata">

### Author: ![CruversWorkshop](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cruversworkshop/32/21_2.png) [@CruversWorkshop](https://forum.onefinitycnc.com/u/CruversWorkshop)
#### Post date: [September 13, 2020, 9:47pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/19 "2020-09-13T21:47:13Z")

</div>

Much appreciated, I’m a software developer as well, but a backend developer. I get that blank page stare when trying to do anything front end :). I have a server and using WordPress with either Divi or Elementor. I have full licenses for both, but still get need to get a starting point.

---

<div class="post-metadata">

### Author: ![cyberreefguru](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cyberreefguru/32/27385_2.png) [@cyberreefguru](https://forum.onefinitycnc.com/u/cyberreefguru)
#### Post date: [September 14, 2020, 10:29pm UTC](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720/20 "2020-09-14T22:29:49Z")

</div>

Roger - I use WordPress with Woocommerce. Good combo, but a little slow (at least with my ISP).

[Next page](https://forum.onefinitycnc.com/t/tool-enable-m15-iot-relay-breakout-board-auto-turn-off-on-router-on-buildbotics-controller/720.md?page=2)
