Home › Forums › TinyG › TinyG Support › PWM problem
- This topic has 7 replies, 2 voices, and was last updated 6 years, 8 months ago by mhiga.
-
AuthorPosts
-
February 27, 2018 at 3:55 pm #10881mhigaMember
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,
MichaelFebruary 27, 2018 at 6:31 pm #10883cmcgrath5035ModeratorWith 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 offAlso 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?
February 27, 2018 at 6:43 pm #10884mhigaMemberHi 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?
March 3, 2018 at 11:21 am #10887cmcgrath5035ModeratorOn 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.
March 3, 2018 at 9:11 pm #10889mhigaMemberYeah, 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.
March 5, 2018 at 8:15 pm #10890mhigaMemberGot 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.
March 6, 2018 at 5:15 am #10891cmcgrath5035ModeratorIf 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.
March 6, 2018 at 3:24 pm #10892mhigaMemberGreat idea. I’ll try it when I get home.
-
AuthorPosts
- You must be logged in to reply to this topic.