g2core+Due: Setup for Mach3 compatible PWM

Home Forums TinyG TinyG Support g2core+Due: Setup for Mach3 compatible PWM

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10086
    hurr1k4ne
    Member

    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.

    • This topic was modified 7 years, 11 months ago by hurr1k4ne. Reason: added phase code
    #10089
    cmcgrath5035
    Moderator

    Have a look at

    Also look at

    I am not at all familiar with Mach3 interface, but have run tinyG up to 5kHz

    Hint – #define P1_CW_PHASE_LO 0.13 says at LO(low) end of the PWM linear interpolation curve, set Phase (I call it duty cycle) to 13%.

    The doc above should help.

    #10991
    BurchSung
    Member

    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,

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.