I'm running GRBL 1.1 on an Arduino Uno, which is connected to a HY VFD as follows: GRBL Spindle PWM > VFD VI GRBL Ground > VFD ACM VFD DCM > VFD FOR The 1.5kw spindle works fine when I control it from the control panel, but when I switched PD001 = 1 on the VFD (allows external control) and use GRBL, I run in to problems. The spindle powers up to the minimum allowed rpm as soon as I turn the VFD on. I can control the spindle speed via GRBL, but "powering off" (i.e. PWM = 0) still means that the spindle spins at the minimum rpm I've set. Can anyone suggest where I can start troubleshooting this please, as it's unusable in the current state. For reference, my VFD is configured as follows: Code: PD005 =400 PD004 =400 PD003 =400 PD072 =400 PD144 = 3000 PD001 = 1 PD002 = 1 PD006= 2.5 PD007=1.2 PD008=220 PD009=15 PD010=8 PD011 = 120 PD070 = 1 PD73 = 120 PD141 = 220 PD142 = 7 PD143 = 2 GRBL is configured with $30 set to 24000 and $31 set to 0.
Thanks for the reply. I tried connecting the VFD fwd pin to Spindle Enable, but from what I understand this isn't needed in GRBL 1.1. The spindle started immediately when I connected it that way too.
It has been a long time since I read this Thread, but it may well help you. Chinese Spindle & VFD Setup It has been a useful Resource, for many people, as well as myself. Hope it can Help Gray
Many thanks for those links. I've reset my VFD and configured it again, but it still spins on power-on. I've even removed the PWM wire from the arduino, and it's spinning up to 120Hz without any PWM signal at all. From what I understand, it should not spin up without any PWM input?
I just bought an arduino mega. Moreover, I am using the same connection you have in your first post. I am using the same spindle as you. Speed control with bCNC works. I am looking for ways to turn the spindle on and off using arduino. See this post for the parameters I am using for my VFD: Huanyang Chinese VFD settings and manual here!
NeeqOne. Thanks for the posting that URL on the Huanyang VFD. Any chance you could put a copy in the Resources Section?
I got the spindle to work as it should. It seems you will need a relay module for this. With the relay connected as NO, you can switch the spindle on and off.