I am looking for a way to automate control of an RC speed controller that is used to set the speed of my home brew needle cutter. My set up currently uses a servo tester to set the speed of the brushless motor that drives the needle. My BlackBox X32 controller has a servo port and is usually used in pen plotter setups. I have done several searches but I am not finding anything about using RC style servos in MillMage.
The control side of things would need to take place on your controller/firmware - you could use PWM or a 0-10V signal and have your controller output M03 S(Spindle Speed) to turn on a spindle. What sort of signal is used to control the RC Speed controller?
I need to have 5V DC &1600ms PWM signal to set the desired speed and 500ms signal or lower for stop. I have never messed with spindle control so I am not sure if it can provide a signal in the desired ranges.
This is 1.6 seconds. 1.6KHz would make more sense for the PWM.
I found this circuit at A Simple 555 PWM Circuit with Motor Example . It is really cheap and gives you basically a 0-6.5KHz 5 volt signal output.
Let us know if you have any more questions. I am interested because I am just now designing a stepper motor control for a friend’s 2-axis telescope mount. ![]()
Note: It just soaked in that this was a DC motor speed control. Remove the MOSFET and motor from the circuit and you have your Variable PWM Control with the output on pin #3 of the %%% chip.
RC servos require pulses at 50hz (20ms spacing from start) and the pulse length varies from 1.0 to 2.0 msec, or 1000 to 2000 usec.
If the BlackBox controller has some way to control a standard RC servo, you’d need to get MillMage to send the GCode command used by the BlackBox controller during the job start code, and then send the GCode command to turn it back off as part of the job end code.
Shows how long it has been since I played with them. ![]()
Thanks!
I wrote firmware for drones for a few years. The first piece I wrote was a high-rate servo controller, capable of driving 32 digital servos (or motor controllers) at 400hz. You could even mix them - some @400hz and some @50hz, because analog servos would burn out if you pulsed them too fast.
The hardware inside analog servos is a really simple comparator circuit, I think, and if you sent pulses too often you’d end up opening both sides of an H-bridge at the same time, and short it.
All that to say, I’m intimately acquainted with how servos work. It’s burned into my brain. ![]()
I managed to find a copy of the OpenBuilds BlackBox documentation and there is a section for setting up the port for controlling an RC servo using OpenBuilds control software. I just need to figure out what codes to pass from MillMage to the black box to set the output to 1500 to 1600us at the start and then 1000us for stop at the end of the job. The motor speed is not critical as I can adjust the feed rate to produce smooth cut.
I think I misspoke - I did a quick look at it appears that when configured for servo output, it replaces the “spindle” or “tool” output. So basically the laser power would dictate the output for the PWM signal.
There’s a discussion on the Maker Forums that might help you:
Thank you for the link.
Yeah that doesn’t look too promising for a simple automation set up.
I will look and see if I can locate a servo tester that retains the settings when powered off then a micro switch could be used to switch the power on / off when the Z axis moves away from home position.

