Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Roni on November 14, 2019, 07:06:58 PM

Title: How can I control RC ESC from mach3, any help please?
Post by: Roni on November 14, 2019, 07:06:58 PM
Hi All

Is anybody can help? I am looking to control ESC from Mach3.  So far I know the PWM is different and I need some sort of converter, is it something that can be purchased? or do I need to build it my self?

Any help please?
Title: Re: How can I control RC ESC from mach3, any help please?
Post by: joeaverage on November 14, 2019, 08:27:38 PM
Hi,
if I understand correctly there is quite a catalogue of hardware/software designs for that purpose on the Arduino forum.

Craig
Title: Re: How can I control RC ESC from mach3, any help please?
Post by: Tweakie.CNC on November 15, 2019, 02:06:12 AM
If it’s any help, this thread refers;
https://www.machsupport.com/forum/index.php?topic=24606.msg217068#msg217068

It's a few years old but my solution to brushless motor ESC control is described here;
https://openbuilds.com/builds/software-speed-control-of-a-brushless-dc-bldc-motor-from-mach3.762/

Tweakie.
Title: Re: How can I control RC ESC from mach3, any help please?
Post by: Roni on November 15, 2019, 02:34:52 AM
Thank you for the replay, I did read this thread. I am surprise that there is no module that can be purchase for that application. Is anybody know what this module does? Does it convert PWM to voltage 0 ~ 10V?

 
Title: Re: How can I control RC ESC from mach3, any help please?
Post by: Tweakie.CNC 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.

Title: Re: How can I control RC ESC from mach3, any help please?
Post by: Roni on November 15, 2019, 03:35:49 AM
Hi

Thank you for the information.  I wish that I could purchase a module for that application, do you know of any?

Regards

Roni