Welcome! Log In Create A New Profile

Advanced

Driving a laser via PWM

Posted by 3Derping 
Driving a laser via PWM
March 28, 2015 11:59PM
I would like to switch on and off a laser via the fan speed control "M106 S***" gcode. What pin does the arduino use to signal the mosfet connected to D9?

Much thanks in advance.

Edited 2 time(s). Last edit at 03/29/2015 03:01AM by 3Derping.
Re: Driving a laser via PWM
March 30, 2015 09:49AM
Quote
3Derping
What pin does the arduino use to signal the mosfet connected to D9?
D9 stands for Digital 9, so pin 9. Pretty creative with their naming, huh? smiling smiley


You should be able to use M42 Px Sy where x is the pin number (9 in your case) and y is the PWM value 0-255.
Re: Driving a laser via PWM
March 31, 2015 02:03PM
Oh that's is great. Thank-you very much!
Re: Driving a laser via PWM
April 05, 2015 01:43AM
And... I've hit a snag. I'm getting disconnected from USB control when I use MI06, sometimes.

My setup is very simple: I have an LED connected between the arduinos digital 9 pin and the ground pin. When I issue the M106 gcode, the arduino and LED stay on, but, about a quarter of the time, the USB connection is broken. What gives?
Sorry, only registered users may post in this forum.

Click here to login