|
Post by jrbean67 on Dec 11, 2017 7:24:01 GMT
|
|
|
Post by Hommer Woods on Dec 11, 2017 14:37:05 GMT
I have done something similar with two power strips. It allows me to control the M3 and PC separate from the Router and Dust Collector. When I am ready to start the job I can just turn on the router and dust collector with a single switch. You can see what I am talking about in this thread. millrightcnc.proboards.com/thread/669/dust-control
|
|
|
Post by jrbean67 on Dec 11, 2017 17:02:10 GMT
I'm going to answer one of my own questions... It looks like bCNC has the ability to run a command on start and stop of gcode execution (https://github.com/vlachoudis/bCNC/wiki/Events). I should we able to whip up a script that controls a GPIO pin to turn the router on and off using that switchable plug strip. It would be cool to do that wirelessly using an IOT WiFi power switch, if I could find a scriptable one.
I'll post more once I get the RasPi set up and running.
Any suggestions on the router power cable routing?
John
|
|
|
Post by Bruce on Dec 11, 2017 17:47:59 GMT
I used a Raspberry Pi 3 to design a remote control/timer for my pool pump motor. I used a 30 Amp heavy duty relay and a smaller relay to drive it. Maybe you could run the internal signal from bCNC to the Raspberry Pi GPIO and do all kinds of stuff. Turn the router off and send a text message out to yourself that your project is done. Check out Node-Red on the RPi. Really easy to setup a web interface and turn stuff on/off remotely.
|
|
|
Post by jrbean67 on Dec 11, 2017 18:05:56 GMT
Cool! I like using the Raspberry PI for stuff like that. I'm hoping using it to run bCNC works for this.
I went on a tangent last night looking at putting a power relay on an ESP8266 based Feather Huzzah board, and rolling the whole thing myself...but then reminded myself of all of the other electronics projects that I have in the queue, and that I'm trying to make sawdust instead of bits right now. :-)
John
|
|
|
Post by aforww on Dec 11, 2017 22:19:39 GMT
As far as the router cable, Zip tie it to the drag chain. That's what I have done with my spindle.
|
|
|
Post by mrspicman on Dec 12, 2017 0:20:01 GMT
This might be overkill for some but those that really want a nice setup (and I am considering it as well) and want to bridge the back between an expensive VFD spindles and low-cost unregulated router like the DeWalt then you might want to consider this product: www.vhipe.com/product-private/SuperPID-Home.htm (I think this was posted before by aforww!) Its additional circuitry (and a hardware mod to your router so faint of heart should not apply ) that enables power and spindle rotation control from your typical programs (UGS, bCBC etc.) and yes you can then get down to quieter (usable) speeds of 5000 rpms! One thing I forgot to mention if you do get into slow speeds you have to watch out for heat! Thought I would through it out there. Cheers!
|
|
|
Post by aforww on Dec 12, 2017 0:55:46 GMT
Jreimer is contemplating a Super PID as well. I have discussed it on more than one occasion. It's definitely the most user friendly way of accomplishing things but it's still not plug and play.
|
|
|
Post by Derek the Admin on Dec 12, 2017 2:26:15 GMT
I think you might be looking too far from home for a control signal. M3 and M5 are spindle on and off, respectively. The Uno can put out that signal on the spindle enable port.
|
|
|
Post by aforww on Dec 12, 2017 2:56:41 GMT
I think you might be looking too far from home for a control signal. M3 and M5 are spindle on and off, respectively. The Uno can put out that signal on the spindle enable port. Allegedly. For me, it's M4 on clockwise, M3 off. It's odd as the industry standard is M3 clockwise, M4 cc, M5 stop.
|
|
|
Post by Derek the Admin on Dec 12, 2017 5:54:23 GMT
Are you using our standard hex file? I know there has been a switcheroo on things somewhere along the way in Grbl versions whereby the M codes got jostled around a bit, but I was remembering this as controllable via options in the config file prior to compiling. I know M3 is working in the conventional sense with the hex files we have been using. Any chance that VFD of yours is inverting that input signal?
|
|
|
Post by aforww on Dec 12, 2017 7:05:06 GMT
Are you using our standard hex file? I know there has been a switcheroo on things somewhere along the way in Grbl versions whereby the M codes got jostled around a bit, but I was remembering this as controllable via options in the config file prior to compiling. I know M3 is working in the conventional sense with the hex files we have been using. Any chance that VFD of yours is inverting that input signal? It's not the VFD as it's set for clockwise wise rotation. It simply gets an "on" command from the Arduino. M5 didn't do anything at all. And yup, using your hex file. At least, I'm pretty sure I am. Lol.
|
|
|
Post by Derek the Admin on Dec 13, 2017 15:56:25 GMT
|
|
|
Post by aforww on Dec 13, 2017 16:16:25 GMT
I'll give it a go. You wouldn't happen to know how to manipulate the UGS master file, would you? Specifically how to change ignored Gcode that ISN'T editable from the settings? Will gave me a quick and dirty explanation to edit it but I couldn't make sense of it lol. Granted, I think I was on zero sleep. Guess I should revisit it again.
|
|
|
Post by notso on Dec 14, 2017 3:24:54 GMT
Well this is not about turning it off but it is awesome to control the machine.... www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/ run the Grbl Controller on the Raspberry Pi which in turn connects to an Alamode (an Arduino like board that plugs directly into the GPIO connector on the Raspberry Pi and provides automatic voltage level translation. So that the Arduino can communicate with the Raspberry Pi directly. The Alamode also provides Arduino headers to allow for Arduino shields to be plugged directly into it. So I ended up with a stack of three boards that are tightly integrated due to being plugged directly into each other. The Alamode (Arduino) processes the GCode commands from the Raspberry Pi into signals that are sent to the CNC Controller shield to run the stepper motors and passes the various function signals on to the CNC Controller shield too.
|
|