Monday, July 20, 2015

Automatic Spindle Speed Control for my CNC

One of the issues I always had with my small CNC 3040 was that I had to manually set the spindle speed in the frequency drive using a knob and chuting the  speed with a tachometer. Each tool change or job type (rough or fine) requires different spindl;e speeds.

I found in EBay a small electronic board that converts Pulse Width Modulation to an Analog voltage. It is possible to set the Match 3 software (this is the software that controls my CNC) to output a PWM signal in one of the port pins. The frequency drive can also be set to use a 0 to 10 volts signal to set the motor speed.

This is the link

It has some good information in how to calibrate the output.

Below is the small PC board as I installed in the control unit. The circuit needs 24 volts for power that are available in the control’s power supply.


The 0-10 volts output are should be connected to the analog input on the frequency drive:


The PWM input signal to the new circuit should be connected to one of the output pins. in my case I used the A axis on the CNC control board hat corresponds to the output pin 9.


On the mach 3 software it is necessary to adjust the following settings:




The last part is to set the frequency drive parameters to allow speed control via the analog input. The drive of my machine is a Chinese HUANYANG ELECTRIC


I spent a lot of time searching in the Internet for a manual until I found it in a Chinese site. Thanks to Google automatic page translate!

These  are the parameters to change:



PD0000 set to 1 to be able to make changes

Pd002 set to 1 to use the external terminal


PD070 set to 0 to use 0-10V control

Once it is running it is necessary to calibrate the output using the potentiometer in the new circuit

The system works OK although it is not very linear but for milling plastics, wood and soft metals it is OK. I am very happy and it is working really good and helping me to avoid mistakes.



Technorati Tags: ,,,


  1. I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues. CNC machining

  2. Thanks for sharing this article here about the CNC machine. Your article is very informative and I will share it with my other friends as the information is really very useful. Keep sharing your excellent work. cnc foam cutter for sale

  3. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. quiet garage door opener

  4. Excellent and very exciting site. Love to watch. Keep Rocking. cutting machine

  5. Bellevue is one of those places in US, where a number of reputed professionals in this field of work are available. garage door repair Tacoma WA

  6. The links and resources posted by you in the blog are very useful for me! I was looking for this exact and particular information for a long time. Thanks.
    ceramic cnc machining services

  7. My brother recommended I might like this blog. He was totally right. This post actually made my day. You can not imagine just how much time I had spent for this info! Thanks! garage door company in Charlotte

  8. When visiting blogs, i always look for a very nice content like yours .  garage door repair

  9. You are providing good knowledge. It is really helpful and factual information for us and everyone to increase knowledge. Continue sharing your data. Thank you. cnc router 4 axis


Please be aware that any comment with commercial links will be immediately deleted and declared as SPAM.

If you want to advertise in my blog please contact me to agree in a fee and i will be happy to add your link in the side bar.