PWM problem

Home Forums TinyG TinyG Support PWM problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10881
    mhiga
    Member

    Hi!

    I have a TinyG v8 that I purchased about a year ago and i was upgrading my home made cnc with a spindle speed controller (https://www.smw3d.com/spindle-speed-control/). I just received the speed controller today and tried hooking it up but I found that the PWM on the TinyG seems not to work. The PWM LED does not flash.

    If I take the wire and repeatedly touch the 3.3v out pin, I can get the spindle to move. I can get the “Cool” and “Spin” pins/LED to work by inputing the gcode into Chilipeppr but the speed setting (ie. s5000) doesnt move the spindle. Tried with and without M3 commands.

    Am I missing something? Is there a setting to turn-on the pwm feature?

    Here are my paramaters:
    [p1frq] pwm frequency 5000 Hz
    [p1csl] pwm cw speed lo 0 RPM
    [p1csh] pwm cw speed hi 10000 RPM
    [p1cpl] pwm cw phase lo 0.000 [0..1]
    [p1cph] pwm cw phase hi 1.000 [0..1]
    [p1wsl] pwm ccw speed lo 1000 RPM
    [p1wsh] pwm ccw speed hi 2000 RPM
    [p1wpl] pwm ccw phase lo 0.125 [0..1]
    [p1wph] pwm ccw phase hi 0.200 [0..1]
    [p1pof] pwm phase off 0.000 [0..1]

    Any help graciously appreciated.

    Thank you in advance,
    Michael

    #10883
    cmcgrath5035
    Moderator

    With these parameters, the following commands should:
    M3 S5000 Turn on the Spin LED, turn the PWM LED on domewhat dimmer
    M5 Turn SPIN and PWM off

    Also Try
    M4 S5000 Turn on Spin, SpinDir and PWM somewhat dimmer
    M5 Turn all 3 LEDs off (SpinDir might stay on, not sure)

    Do any of these work as described?

    #10884
    mhiga
    Member

    Hi cmcgrath5035,

    Thank you for responding to my problem.

    RESULTS done in order:
    M3 S5000: “SpOn” LED lights up but no spindle movement (don’t see any other LED light up for PWM).

    M5: “SpOn” LED turns off

    M4 S5000: “SpOn” and “SpDir” LEDs light up but no spindle movement and again no other LED seen for PWM.

    M5: “SpOn” LED turns off but “SpDir” remains lit.

    Any ideas?

    #10887
    cmcgrath5035
    Moderator

    On my V8, PWM is LED D7, next to Spindir.

    SpOn and SpDir operating as expected.

    Do you have something connected to the PWM output?
    If so, disconnect it and retry.

    Otherwise, sounds like the PWM output port on the microcontroller has failed or is somehow shorted to gnd on the pwb.

    • This reply was modified 6 years, 8 months ago by cmcgrath5035.
    #10889
    mhiga
    Member

    Yeah, my V8 PWM pin is between Sdir and Cool. Never had anything connected to it before so I concluded that, like you, the microcontroller has gone bad. Ordered a new TinyG. Will let you know if indeed it was the board.

    #10890
    mhiga
    Member

    Got my new TinyG V8 board today. The PWM on this one worked as expected. I guess I just got a bad board the first time.

    #10891
    cmcgrath5035
    Moderator

    If you want to continue playing with your old one, try sending it a $defa=1 command from cli. That will reset all parameters to defaults.
    Restart and see if pwm comes alive.

    The parameters you posted are not the defaults, so there is a chance that something in the parameter writing process glitched.

    #10892
    mhiga
    Member

    Great idea. I’ll try it when I get home.

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