synthetos / g2

g2core - The Next Generation
Other
627 stars 296 forks source link

Change SpindlePWM from dutycycle control to Frequency Control. Is It possible? #112

Open Engineer3DPrototyping opened 8 years ago

Engineer3DPrototyping commented 8 years ago

I have a Hitachi WJ200 VFD running my gantry mill. The closest input that the vfd will accept is a variable frequency PWM signal. I'm running TinyG2 Master and the SpindlePWM output is fixed frequency variable duty cycle. Is it possible to reconfigure this to variable frequency at a 50% duty cycle with out reinventing the wheel or breaking Atmel studio. If not I just will need to buy an board to convert the duty cycle to an analog voltage. The icing on the cake would be to convert the enable and direction pins to forward and reverse outputs so that when forward is on the vfd spins forward etc. etc. This is how the vfd expects to be controlled anyway. Any help or advice would be much appreciated. If more information is needed please ask. Or if you have another solution for interfacing with the vfd please reply.

aldenhart commented 8 years ago

Keeping this issue open as it is something we would like to add to g2core.