What can we improve in the hardware?

It wouldn’t be all-in-one, but you could plug the router into a wifi plug and remotely control the power from there (i.e., the power button on the router would always be set to “ON” and it would effectively be the same as controlling the router’s power by physically plugging in and unplugging the router).

There’s also a lot of tutorials online relating to TP Link’s Kasa plugs and being able to control them with python. The plugs are pretty cheap (~$5-$10 per plug). In that case, you could control the wifi plug from your computer as well (as opposed to using an app). Depending on your coding skills (or the coding skills of chapgpt), you could possibly even set up triggering events (e.g., an emergency stop error is thrown) that could activate in certain situations and kill the power. Though, I’ll be the first to admit that I’m not a very good coder, so, if others disagree, they’re much more likely to be correct. It’s possible you may also need something like a raspberry pi to help control things depending on how sophisticated you wanted to get.

1 Like

Here is a great article on how to control TP-Link Kasa plugs with Python on a Raspberry Pi:

The one missing ingredient would be a piece of gcode with parameters, readable by the Maslow that would send for example a JSON call to a Raspberry Pi on the network, which would, in turn, send the command to the Kasa outlet. You could then power router on and off using gcode and then perhaps include that code in an emergency stop.

3 Likes

Seems like a lot could go wrong with custom python, wifi, and a third party device. This post explains what I think would work the best.

  1. Maslow provides some voltage to the relay
  2. A push button to turn the router on
  3. When Maslow cuts the voltage, the router turns off
  4. The router won’t turn back on again unless you physically push the button again

Guess a common use case is with a pump in case of a power outage, so it wont start again on its own when the power comes back.

1 Like

This should already be supported without even needing a firmware update. FluidNC supports an external spindle control, it just needs to be defined in the maslow.yaml file

2 Likes

Where would I pull the power from on the board? Might rig this up myself for fun.

Kyle wrote:

Seems like a lot could go wrong with custom python, wifi, and a third party device. This post explains what I think would work the best.

  1. Maslow provides some voltage to the relay
  2. A push button to turn the router on
  3. When Maslow cuts the voltage, the router turns off
  4. The router won’t turn back on again unless you physically push the button again

Can this be done with a single relay? or does it require two relays? (or relay +
transister) remember the relay that powers the router needs to switch from low
DC voltage to 240v depending on the spindle, so we can’t use feedback from
there.

David Lang

The design on that forum uses a single relay and a button. Guess it’s a non-latching type.

A quick google shows plenty of 24DC/240AC relays.

This connector should have everything you need available:

They’re tied to pins 38 and 48 on the controller board which is what you will want to enter in the config file

It should be possible to set up like this: Spindles | Wiki.js

I haven’t actually messed with that so I would love to hear how it works

2 Likes

I’d probably enclose it in a little box with a plug for the router on the frame, then run a signal cable from the maslow down to that box.

I already wired a 2 plug outlet at the bottom of my frame off of the emergency stop on the right side of the frame. So I’ll likely just use a two gang box with the relay and an on button.


What would be really cool is a single AC power cord to the Maslow with a 24v power supply and the relay setup for the router. Not sure how much bulk that would add to the unit. But an external all-in-one setup with an emergency stop would be cool. Could be an optional item people can purchase with a signal cable from the Maslow.

1 Like

Thanks!! I was actually looking at these aux outputs when thinking about an auto Z homing tool.

1 Like

Kyle wrote:

I’d probably enclose it in a little box with a plug for the router on the frame, then run a signal cable from the maslow down to that box.

I already wired a 2 plug outlet at the bottom of my frame off of the emergency stop on the right side of the frame. So I’ll likely just use a two gang box with the relay and an on button.

What would be really cool is a single AC power cord to the Maslow with a 24v power supply and the relay setup for the router. Not sure how much bulk that would add to the unit. But an external all-in-one setup with an emergency stop would be cool. Could be an optional item people can purchase with a signal cable from the Maslow.

Just make sure it doesn’t interfere with the belts/arms at any point.

I would look at what can you attach to the post supports.

David Lang

I use a relay to switch my 500W spindle on my classic maslow on/off with gcode. It controls the AC current to an outlet that the inverter is plugged into.

2 Likes

Maybe for a different version.

Can we get more aux pins to play with so we can do relay control and a z axis touch.

Separate the spools/arms from the z axis. Should eliminate some error with the z axis changing belt length and angle

Could you share this setup?? Maybe in another thread.

We have two so we should be able to do relay control and touch at the same time, but we are using 100% of the io pins.

The second connector on the board breaks out the serial port on the ESP32 which should let us add a nearly infinite number of extra pins if we need them. I think that we might also be able to disable serial in software and use those pins as GPIO, but I haven’t tried that

2 Likes

Bar wrote:

We have two so we should be able to do relay control and touch at the same time, but we are using 100% of the io pins.

The second connector on the board breaks out the serial port on the ESP32 which should let us add a nearly infinite number of extra pins if we need them. I think that we might also be able to disable serial in software and use those pins as GPIO, but I haven’t tried that

There are a number of ‘port expander’ chips out there now that tie to i2c (see
https://www.instructables.com/IO-Expander-for-ESP32-ESP8266-and-Arduino/ )

David Lang

3 Likes

The clamping plates has broken, i noticed this when i was setting the z axis and the router was pushed out. So…
I created an aluminium core so i can easily pull out the router and change the router bits. The dewalt doesn’t fit anymore but now it fits the makita router. Much more robust then plastic parts. :slight_smile:



The idea mentioned earlier of a changeble core is in my opinion a winner! Even better when the dewalt would fit again.

6 Likes

A slightly modified mounting plate for the electronic board would benefit anyone using the EU version of the deWalt router, as it’s power cable points upwards and get directly in conflict with the power plug on the electronics board. (I am not sure if this will cause problems for the US version, but I don’t think so?)

I was able to make and 3D print a modified (slightly rotated) version that works without extending any of the supplied cables, although a couple cm longer cables to the belt motors wouldn’t hurt.

A detailed writeup (and .stl for anyone wanting to print it themselves) is in the forums:
Alternative (rotated) mounting bracket for EU model deWalt router (feel free to add it to the not shop if you like).

1 Like

Did you cut those on the maslow??

@bar, I was looking through the maslow.yaml file and under “motor1” is “tmc_2209”. A bit under tmc_2209, it says “direction_pin: gpio.38”. Is that a different gpio 38 on the step motor controller or does Aux2 use a different gpio?

1 Like