1231
General Mach Discussion / Re: How can I control RC ESC from mach3, any help please?
« on: November 15, 2019, 03:07:18 AM »Is anybody know what this module does? Does it convert PWM to voltage 0 ~ 10V?
No, not really, The sequence of events are as follows;
1) Check the input pin for a PWM signal.
2) If no signal is present then send a 1mS pulse to the output pin (this enables the GCode M3 / M5 to operate correctly and also stops the spindle in the event that E-Stop is activated).
3) If a signal is present then measure the duty cycle (pulse width). This is best done with 16 bit precision (mainly because we are measuring in uS and outputting in mS – a factor difference of 1000).
4) Scale the duty cycle’s pulse width (0 to 100%) - again working 16 bits into a proportionate 1 to 2mS output pulse (the actual, maximum, duty cycle pulse width in uS will depend on the Mach3 PWM base frequency chosen).
5) Send the output pulse to the output pin.
6) All this is then repeated forever within a timed 20mS loop.
Tweakie.