Build log: 800W Chinese spindle for Shapeoko 3

WillAdams
Posts: 8514
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by WillAdams » Sun Dec 13, 2015 12:43 am

I’d still worry about the metal rubbing against the heat shrink — it’s not really meant to resist abrasion.

Really wish that we’d repeated the same feature used on the carriage plates, so that a rubber grommet could be used there as well:

http://www.shapeoko.com/wiki/index.php/ ... ifications

Image
Shapeoko 3XL #0006 w/Makita RT0701 Router w/0.125″ and ¼″ Elaire precision collets
Nomad 883 Pro #596 (bamboo)

Estlcam
Posts: 89
Joined: Tue Sep 10, 2013 3:13 pm
Location: Germany
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by Estlcam » Sun Dec 13, 2015 9:44 pm

The Shapeoko 3 and spindle will be controlled by Estlcam 8.2.

To control the spindle we need a "spindle on / off" and "pwm" signal:
  • Estlcam can provide the on / off signal at an Arduino UNOs D13 pin...
  • And the rpm signal at D11...
But wait... we have a CarbideMotion board instead of an Arduino and there are no D11 / D13 pins available - right?
Well... there are no dedicated connectors but fortunately the required pins are still accessible by the Atmega328s ISP header:
interface_s.jpg
interface_s.jpg (73.36 KiB) Viewed 4969 times
Last edited by Estlcam on Sun Dec 13, 2015 9:52 pm, edited 1 time in total.
Estlcam CAM and Arduino UNO CNC controller: www.estlcam.com

Estlcam
Posts: 89
Joined: Tue Sep 10, 2013 3:13 pm
Location: Germany
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by Estlcam » Sun Dec 13, 2015 9:47 pm

Aaaaaaand success :D

Estlcam CAM and Arduino UNO CNC controller: www.estlcam.com

cvoinescu
Posts: 4442
Joined: Thu Jul 19, 2012 6:50 pm
Location: Camberley, UK
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by cvoinescu » Mon Dec 14, 2015 1:37 am

If I'm not mistaken, you can invert the spindle enable pin via config.h, and eliminate the MOSFET you're using as an inverter. Also, doesn't the spindle controller accept PWM? If it did, you would not need the low-pass filter either.
Proud owner of ShapeOko #709, eShapeOko #0, and of store.amberspyglass.co.uk

Estlcam
Posts: 89
Joined: Tue Sep 10, 2013 3:13 pm
Location: Germany
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by Estlcam » Mon Dec 14, 2015 8:08 am

Hi,
cvoinescu wrote:...eliminate the MOSFET you're using as an inverter.
This unfortunately won't work and may even kill your CarbideMotion or Arduino board:
  • The VDFs digital inputs are internally pulled up to 24V (quite normal for industrial equipment) and supply about 2mA (can be much more for other VFDs)
  • The Atmega328s internal clamping diodes are rated for 1mA max. It may not immediately damage it but it is definitively way above specification.
  • Even with the AVR output "high" the internal clamping diodes will pull the 24V input down to 5V - and this already starts the spindle (just verfied it by connecting 5V to the input).
  • So the spindle will always be on no matter the output and you risk damaging your controller.
cvoinescu wrote:Also, doesn't the spindle controller accept PWM? If it did, you would not need the low-pass filter either.
VFDs are industrial equipment and typically expect 0-10V or 0-20mA signals at their analog inputs. The HY01D523B fortunately also accepts 0-5V which is why we can get away with a simple low-pass filter instead of a slightly more complicated op-amp circuit. But it won't accept unfiltered PWM.
Estlcam CAM and Arduino UNO CNC controller: www.estlcam.com

cvoinescu
Posts: 4442
Joined: Thu Jul 19, 2012 6:50 pm
Location: Camberley, UK
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by cvoinescu » Mon Dec 14, 2015 11:55 am

Thank you, this makes sense. Is this documented in the manual of the VFD, or do you have to know this (or learn it the hard way)?
Proud owner of ShapeOko #709, eShapeOko #0, and of store.amberspyglass.co.uk

Estlcam
Posts: 89
Joined: Tue Sep 10, 2013 3:13 pm
Location: Germany
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by Estlcam » Mon Dec 14, 2015 1:43 pm

Hi,

the manual of this VFD is 67 pages long.
For someone familiar with industrial power electronics most of it is obvious and easy to understand.
But if you have no or only "low voltage" experience it is better (and in some countries legally required) to leave installation to a qualified electrician.

You should never install something that isn't "plug and play" without reading the manual and being absolutely positive you have the required skills and qualifications.
Especially if it runs at mains voltage and has a "Danger: high voltage" sticker on it. ;)

VFDs can kill you if you mess something up - so learning the hard way is not an option.
In fact they can even kill you several seconds after the power plug has already been pulled and won't trip common household RCDs.


This is also the reason why I didn't post pictures of the actual wiring: for those with the required skills it is a no-brainer anyway and everyone else should leave it to a qualified electrician.

Christian
Estlcam CAM and Arduino UNO CNC controller: www.estlcam.com

bharbour
Posts: 413
Joined: Wed Aug 06, 2014 3:40 pm
Location: Mobile, AL
Contact:

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by bharbour » Wed Dec 14, 2016 2:44 pm

Is your spindle 110v from the wall or 220v?
No longer have a Shapeoko, but use a machine of my own design...
https://www.youtube.com/watch?v=gFY4gC9TqD0
http://deltaguitarworks.tumblr.com

RoguePirin
Posts: 216
Joined: Wed Sep 02, 2015 3:22 pm
Location: Illinois, USA

Re: Build log: 800W Chinese spindle for Shapeoko 3

Post by RoguePirin » Wed Dec 14, 2016 4:02 pm

bharbour wrote:Is your spindle 110v from the wall or 220v?
Here is a link to the post where he mentions where he got it.
Estlcam wrote:I'm from Germany so I have the 220V version but in the US you'll need the 110V version.
Shapeoko 3 #677, Nyloc nuts, ¾" HDPE base with t-nuts, Dewalt 611 w/Super PIDv2

Post Reply