I/O question

Home Forums TinyG TinyG Support I/O question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9331
    jimt
    Member

    Is there any I/O on the tinyG V8 board? If so, is there a document which describes how to toggle this I/O in G-Code?

    Also, I am not using PWM, but the red led labeled PWM is always on. Is there a way to turn this led off.

    Thanks

    • This topic was modified 8 years, 9 months ago by jimt.
    • This topic was modified 8 years, 9 months ago by jimt.
    #9334
    cmcgrath5035
    Moderator

    Set $p1pof=0.0
    Discussed here:

    One or two bits, intended for other uses (coolant, spindle on/off).
    How much you need?

    #9335
    jimt
    Member

    Thank you for the response.

    One bit would be a good start for me. If I understand correctly, by setting the value of:
    $p1pof=0 pin voltage goes low (0.0 V)
    $p1pof=1 pin voltage goes high (3.3 V)

    Please tell me, for version V8, which pin on the board (maybe PWM terminal) goes high and low with $p1pof changes.

    Jim

    #9336
    cmcgrath5035
    Moderator

    Review the document URL above.
    $p1p0f sets the off (0) state duty cycle of the PWM stream.
    Valid range is 0 to 100% duty cycle, 0.0-1.0.
    The pwm led you mention being lit is connected across the PWM pin to ground.
    Look closely, there is an intensity difference between $p1pof=0.1 (the default value) and $p1p0f=1.0
    PWM is a pulse stream, at frequency $p1frq (Hz) with Duty cycle determined by GCode S variable.

    There are two available output pins, if you don’t uses tinyG to control a spindle.

    Coolant pin is always available, follows the Gcode (M7 or M8) and M9 commands

    Spin is on/off, following M3 and M5 commands

    All tinyG I/O is 3.3v logic

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