g2core+Due: Setup for Mach3 compatible PWM

From the original Synthetos forum (2011–2025)

Started by hurr1k4ne on in TinyG Support. 2 replies, last activity May 22, 2018.

#

Hey,

i would like to use a Mach3 compatible Motor Controller with g2core firmware on a Arduino Due with GShield v5.

The Controller wants a PWM signal from 1K to 10KHz.

What i found in Github synthetos/g2/g2core/settings/settings_default.h is

#define P1_PWM_FREQUENCY 100 // in Hz

Can anyone explain what this value means? and to what i have to set here?
And what does the phase values mean?

#define P1_CW_PHASE_LO 0.13
#define P1_CW_PHASE_HI 0.17

Could not find a description in wiki:
https://github.com/synthetos/g2/wiki/Configuring-0.99-Other-Groups

Thanks for your help.

#

Hi...Assuming you have a breakout board, the PWM output from this is just a train of 5 volt pulses of varying mark/space ratio, which needs converting to the control voltage. Again, we need to know details of the BoB to confirm this. Unless it does the conversion internally you would need something between it and the controller to do it,

This topic is from the original forum (May 2018). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.