# Router On/Off - via Gcode

**URL:** <https://forum.onefinitycnc.com/t/router-on-off-via-gcode/7442>\
**Category:** Breakout Board\
**Created:** [August 28, 2021, 5:58pm UTC](https://forum.onefinitycnc.com/t/router-on-off-via-gcode/7442 "2021-08-28T17:58:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buddy](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Buddy](https://forum.onefinitycnc.com/u/Buddy)\
**Post date:** [August 28, 2021, 5:58pm UTC](https://forum.onefinitycnc.com/t/router-on-off-via-gcode/7442/1 "2021-08-28T17:58:36Z")

</div>

Hi All  
Now that I’ve started to use my machine I realise it would be good to be able to start and stop the router via the gcode. and I’ve found this is available on Amazon UK.

[Mains Switch Widget - Relay & Enclosure Bundle for Raspberry Pi, Beaglebone, Arduino & PIC : Amazon.co.uk: Computers & Accessories](https://www.amazon.co.uk/Mains-Switch-Widget-Enclosure-Beaglebone/dp/B00NIWZV4W/ref=sr_1_44?dchild=1&keywords=iot+relay&qid=1630171483&sr=8-44)

Has anyone used one of these and what are your thoughts on what I would need to do to make it work with the BoB.

Please note I’m useless electrically and need things breaking down to enable me to understand.

Thanks in advance.

Dave

---

<div class="post-metadata">

**Author:** ![MindOfMcClure](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/mindofmcclure/32/38_2.png) [@MindOfMcClure](https://forum.onefinitycnc.com/u/MindOfMcClure)\
**Post date:** [August 28, 2021, 6:38pm UTC](https://forum.onefinitycnc.com/t/router-on-off-via-gcode/7442/2 "2021-08-28T18:38:25Z")

</div>

David,

Yes there have been many conversations around this topic for some time as well as some great solutions. Search the board for “Breakout Board”… and you will have plenty to read.

-Alex

---

<div class="post-metadata">

**Author:** ![Buddy](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Buddy](https://forum.onefinitycnc.com/u/Buddy)\
**Post date:** [August 28, 2021, 7:31pm UTC](https://forum.onefinitycnc.com/t/router-on-off-via-gcode/7442/3 "2021-08-28T19:31:31Z")

</div>

Thanks Alex

I did check out the Bob posts, just wanted to see if anyone had used this relay specifically

Dave

---

<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:** [August 29, 2021, 2:30pm UTC](https://forum.onefinitycnc.com/t/router-on-off-via-gcode/7442/4 "2021-08-29T14:30:23Z")

</div>

I’ve not used it and I would be very careful about the rating of the relay. Motors are inductive devices and need special consideration with relays. Most relays are designed for purely resistive loads. Recommend you derate any switch or relay by at least 50% for inductive loads. For a 6a router, you want at least a 12amp relay - 15 being better. Added a MOV on the load side is great protection as well - I used [this one](https://www.digikey.com/en/products/detail/MOV-20D331KTR/MOV-20D331KTRCT-ND/4318194) from Digikey, and a similar one from [Amazon](https://amzn.to/2WCP2Ib) is also available. Hope this helps.

-Tom
