<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Driving a laser via PWM</title>
        <description> I would like to switch on and off a laser via the fan speed control &quot;M106 S***&quot; gcode. What pin does the arduino use to signal the mosfet connected to D9?

Much thanks in advance.</description>
        <link>https://reprap.org/forum/read.php?219,489970,489970#msg-489970</link>
        <lastBuildDate>Wed, 22 Apr 2026 00:29:04 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?219,489970,492955#msg-492955</guid>
            <title>Re: Driving a laser via PWM</title>
            <link>https://reprap.org/forum/read.php?219,489970,492955#msg-492955</link>
            <description><![CDATA[ And... I've hit a snag. I'm getting disconnected from USB control when I use MI06, sometimes.<br />
<br />
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?]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sun, 05 Apr 2015 01:43:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,489970,491100#msg-491100</guid>
            <title>Re: Driving a laser via PWM</title>
            <link>https://reprap.org/forum/read.php?219,489970,491100#msg-491100</link>
            <description><![CDATA[ Oh that's is great. Thank-you very much!]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Tue, 31 Mar 2015 14:03:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,489970,490503#msg-490503</guid>
            <title>Re: Driving a laser via PWM</title>
            <link>https://reprap.org/forum/read.php?219,489970,490503#msg-490503</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>3Derping</strong><br />What pin does the arduino use to signal the mosfet connected to D9?</div></blockquote>D9 stands for Digital 9, so pin 9.  Pretty creative with their naming, huh? :)<br />
<br />
<br />
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.]]></description>
            <dc:creator>cdru</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Mon, 30 Mar 2015 09:49:29 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?219,489970,489970#msg-489970</guid>
            <title>Driving a laser via PWM</title>
            <link>https://reprap.org/forum/read.php?219,489970,489970#msg-489970</link>
            <description><![CDATA[ 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?<br />
<br />
Much thanks in advance.]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>RAMPS Electronics</category>
            <pubDate>Sat, 28 Mar 2015 23:59:02 -0400</pubDate>
        </item>
    </channel>
</rss>
