<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Help needed for pin assignment on RAMPS 1.4 board.</title>
        <description> I am using the following: RAMPS 1.4, Marlin firmware V 1.1.8.
 
Recently I decided to build a Laser engraver/cutter.  I disassembled an older printer and ordered parts to build  
one that looks like the Eleksmaker A3.  Additionally I purchased a 7W diode laser that requires a 5A driver board.  
Since I am using a RAMPS 1.4 board I have been using the PWM signal from D9.  I would like to continue 
using D9 but so far all the 5A driver boards I have found want 0-5V TTL signals.  I understand that it is possible 
to reassign the pins to a 5V PWM signal.  

Will this work?  Is it possible to feed a PWM signal where a TTL signal is expected?

I&#039;ve never reassigned a pin before, so I don&#039;t know what the &quot;define statement&quot; should look like or where it should be placed.  

I understand that Marlin V 1.1.9 has settings for Laser/Spindle operation.  
Would it be simpler to switch versions?

thanks for the help.
Don</description>
        <link>https://reprap.org/forum/read.php?133,836616,836616#msg-836616</link>
        <lastBuildDate>Wed, 07 Oct 2026 15:54:54 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838897#msg-838897</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838897#msg-838897</link>
            <description><![CDATA[ I use the 4.5A driver from Lasertack<br />
[<a href="https://lasertack.com/2a-smd-laserdiodentreiber-2" target="_blank"  rel="nofollow">lasertack.com</a>]<br />
<br />
attached to a 3.5W NUBM05 diode.]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Sun, 18 Nov 2018 14:41:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838797#msg-838797</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838797#msg-838797</link>
            <description><![CDATA[ I was just wondering what constant current laser driver you are using?]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Sat, 17 Nov 2018 12:06:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838413#msg-838413</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838413#msg-838413</link>
            <description><![CDATA[ Have a look at this post that I did on Face book.<br />
<br />
[<a href="https://www.facebook.com/groups/107222596696733/permalink/347232009362456/" target="_blank"  rel="nofollow">www.facebook.com</a>]<br />
<br />
One way to do air assist setup:<br />
<br />
[attachment 107991 PIC00005.jpg]]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Tue, 13 Nov 2018 06:03:24 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838399#msg-838399</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838399#msg-838399</link>
            <description><![CDATA[ Thanks - there is no real ventilation yet (only the air flow through the box). <br />
<br />
And I think that also the dark parts are still a bit overpowered.]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Tue, 13 Nov 2018 02:36:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838384#msg-838384</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838384#msg-838384</link>
            <description><![CDATA[ Here is a Face book group you may be interested in.<br />
[<a href="https://www.facebook.com/groups/107222596696733/" target="_blank"  rel="nofollow">www.facebook.com</a>]<br />
Most of the folks on there are using 2.5W diode lasers.<br />
<br />
It looks like your laser may be scorching the wood just a little.<br />
Do you have any kind of Air-assist on your machine?  If not you <br />
may want to consider it.  Air-assist blows the charcoal away before it has a chance to land on the wood.<br />
<br />
Some coasters I made for a friend.<br />
<br />
[attachment 107987 img001.jpg]<br />
<br />
Other than that I would say that you are very<br />
much on your way.]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 12 Nov 2018 19:59:40 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838369#msg-838369</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838369#msg-838369</link>
            <description><![CDATA[ :)-D]]></description>
            <dc:creator>VDX</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 12 Nov 2018 16:41:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838365#msg-838365</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838365#msg-838365</link>
            <description><![CDATA[ [attachment 107983 photo5406709809975241121.jpg]<br />
Very good so far - still dialing in speed and power levels, but the first attempts look promising.]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 12 Nov 2018 16:23:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,838237#msg-838237</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,838237#msg-838237</link>
            <description><![CDATA[ Just wondering how pin 6 worked out for you?]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Sun, 11 Nov 2018 12:15:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837820#msg-837820</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837820#msg-837820</link>
            <description><![CDATA[ Accelerated moves are actually no issue for me - I'm mostly targeting grayscale engraving which I'm doing line-wise. The laser is always moving from left to right at the same speed and laser power modulated via PWM. Acceleration and deceleration are done before and after the the laser is switched on.<br />
<br />
But if I understand the Marlin config correctly, I just need to disable laser support and define pin 6 as FAN1_PIN. No need to change any connection at all. Will try that today...]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Tue, 06 Nov 2018 02:34:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837809#msg-837809</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837809#msg-837809</link>
            <description><![CDATA[ ... in my modules I'm simpy using the extruder STEP pulses - so it's simply: G0-moves are without laser, G1-moves with ... and the pulsing rate is exactly synchronized with the speed - so no "burned edges", as with PWM and accelerated moves.<br />
<br />
To adjust the power I'm changing the pulses lengths - "lowest power" will emit 5µs long pulses ... then, the more power, the longer a pulse  ...]]></description>
            <dc:creator>VDX</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 05 Nov 2018 17:23:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837798#msg-837798</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837798#msg-837798</link>
            <description><![CDATA[ I don't know if it would work for but I'm using one current modules from JTech.<br />
It uses the D9 fan control on the RAMPS board.  On the JTech web sight there in some information about using it with the RAMPS board.  <br />
I'm not sure how it would work with your "quick" swap setup.  Also it uses the M106 command.]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 05 Nov 2018 14:52:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837790#msg-837790</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837790#msg-837790</link>
            <description><![CDATA[ The laser is attached to my 3D printer using a quick swap mounting plate therefore I didn't want to break 3D printing functionality... <br />
[<a href="https://www.thingiverse.com/thing:3138038" target="_blank"  rel="nofollow">www.thingiverse.com</a>]<br />
<br />
Unfortunately I just found out that M3/M5 commands lead to stuttering moves. Each time an M3 command appears between G1 commands, the laser stops for a short moment. I already removed the powerup/powerdown delays from the firmware but this did not help. This totally breaks grayscale engraving ... <br />
<br />
The M106 command seems to not have that affect as the fan speed is always applied to the next "move block".  I'll check if there is an easy possibility to convert M3/M5 to work in the same way (or reconfigure my laser to use a fan output ...).]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 05 Nov 2018 13:09:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837540#msg-837540</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837540#msg-837540</link>
            <description><![CDATA[ I'm using one of the Jtech current drive modules.<br />
With a ramps board it uses D9 in a "EFB" board setting.<br />
So the pwm signal is 12V from D9.<br />
<br />
You might want to look at Light Burn, it has a 30 day free trial.<br />
When using Marlin it defaults to M106 commands but has an option<br />
to use M03/05 commands also.<br />
<br />
Jtech has not come out with a 5 amp driver board yet so I have been looking <br />
at  [<a href="https://www.ebay.com/itm/5A-Adjustable-Buck-Constant-Current-Laser-LED-Driver-w-TTL-PWM-Modulation/323503511686" target="_blank"  rel="nofollow">www.ebay.com</a>]  this one, but it uses a TTL level input.<br />
<br />
So by using pin 6 should take care of it.  Did you add a pull up resistor to it?<br />
<br />
Why did you not choose to define the board as "SF" ?  Was there a specific reason not to?]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Fri, 02 Nov 2018 07:18:43 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837535#msg-837535</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837535#msg-837535</link>
            <description><![CDATA[ I did not change the board type, just enable the laser option in the advanced config header.<br />
<br />
What specific laser driver do you own? <br />
<br />
You could also use for example a MOSFET or an opto-coupler between the RAMPS board and your laser driver to feed the PWM input:<br />
<br />
<pre class="bbcode">
                12V
                  |
                  | 
5V PWM output -&gt; MOSFET
                  | 
                  |
                12V PWM input</pre>
<br />
I use M3 / M5 commands and the Jtech Photonics Plugin for Inkscape. Currently I'm modifying it to generate G-code also from (grayscale) images (without dithering but modifying the laser output instead). But this still needs a lot of fine-tuning ...]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Fri, 02 Nov 2018 06:40:53 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837526#msg-837526</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837526#msg-837526</link>
            <description><![CDATA[ Hi trapperjon<br />
<br />
Thanks for the input.<br />
<br />
Well you close but not quite correct.  The laser driver module dose have 2 inputs, on 12V and the other 12V PWM input.  Currently the PWM input is being provided via D9 on the RAMPS 1.4 board with a configuration of "EFB".  If I understand you correctly I should be able to change this, by using a driver board that uses a TTL level signal and by changing the board type to "SF" instead of "EFB".<br />
<br />
I would need to move the pins but that should not be a big problem.  I'm currently using the servo pins to drive a fan.  I should be able to use the pins on Aux-1 or -2 for the this.<br />
<br />
What program are you using to run the laser?  Are you using the M106/107 or M03/05 commands?<br />
<br />
I'm using a program called Light Burn and it automatically generates the appropriate coded depending on how you setup the program.]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Fri, 02 Nov 2018 03:14:00 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,837522#msg-837522</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,837522#msg-837522</link>
            <description><![CDATA[ Your laser driver board has two inputs, right? One should be power and one should be TTL. The TTL input is then used to control the current that is fed into your laser, i.e. 0V = Laser off, 5V = Laser max (or inverted). A PWM signal can be used to "simulate" these voltages.<br />
<br />
If you enable the laser option ("SPINDLE_LASER_ENABLE") within Marlin's Configuration_adv.h, there are 3 pins assigned in pins_RAMPS.h (Marlin 1.1.9): Pin 4 for "Laser enable", pin 6 as PWM and pin 5 as direction pin (only necessary for CNC spindles).  All these pins can be found in the "SERVOS" area on the RAMPS PCB.<br />
<br />
SPINDLE_LASER_POWERUP_DELAY/POWERDOWN_DELAY should also be reduced - depends on your laser driver, but I guess this should be a really low value.<br />
<br />
You should also change the SPEED_POWER_SLOPE/INTERCEPT/MIN/MAX values below because Marlin's default setting describes a 30,000 RPM spindle. I use SLOPE=1, INTERCEPT=0, MIN=0, MAX=255 so I can directly set the PWM value between 0..255 from the G-code.<br />
<br />
edit: In my configuration, I don't use "laser enable" and "direction" pins - I only connect the laser PWM pin to the TTL input. The laser power input is directly connected to the power supply via a dedicated physical switch. I'd like to have full control of when the laser is enabled or not and avoid loosing my eyesight due to errors in Marlin or a bad G-code script...]]></description>
            <dc:creator>trapperjohn</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Fri, 02 Nov 2018 02:51:37 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,836751#msg-836751</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,836751#msg-836751</link>
            <description><![CDATA[ Thank you Dust]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Tue, 23 Oct 2018 04:52:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,836733#msg-836733</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,836733#msg-836733</link>
            <description><![CDATA[ "Should I also change the board type to "EFF" from "EFB"?"<br />
<br />
It will make zero difference<br />
as both have #define FAN_PIN RAMPS_D9_PIN <br />
<br />
yes swapping Y and Z is just that easy<br />
<br />
your steps/speeds etc all remain unchanged as they are for Y, and  at the board level its using Z.<br />
<br />
Only thing you need to check is that they have the correct microstepping jumpers as thats hardware]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 22 Oct 2018 23:58:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,836686#msg-836686</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,836686#msg-836686</link>
            <description><![CDATA[ Thank you Dust<br />
<br />
OK, I found<br />
 // Heaters / Fans<br />
//<br />
#ifndef MOSFET_D_PIN<br />
  #define MOSFET_D_PIN  -1<br />
#endif<br />
#ifndef RAMPS_D8_PIN<br />
  #define RAMPS_D8_PIN   8<br />
#endif<br />
#ifndef RAMPS_D9_PIN<br />
  #define RAMPS_D9_PIN   9<br />
#endif<br />
#ifndef RAMPS_D10_PIN<br />
  #define RAMPS_D10_PIN 10<br />
#endif<br />
<br />
So I will change it to look like this..<br />
<br />
#ifndef MOSFET_D_PIN<br />
  #define MOSFET_D_PIN  -1<br />
#endif<br />
#ifndef RAMPS_D8_PIN<br />
  #define RAMPS_D8_PIN   9<br />
#endif<br />
#ifndef RAMPS_D9_PIN<br />
  #define RAMPS_D9_PIN   8<br />
#endif<br />
#ifndef RAMPS_D10_PIN<br />
  #define RAMPS_D10_PIN 10<br />
#endif<br />
<br />
However right below this I happen to see:<br />
<br />
if ENABLED(IS_RAMPS_EFB )                      // Hotend, Fan, Bed       <br />
  #define FAN_PIN        RAMPS_D9_PIN<br />
  #define HEATER_BED_PIN RAMPS_D8_PIN<br />
<br />
#elif ENABLED(IS_RAMPS_EFF)                    // Hotend, Fan, Fan<br />
  #define FAN_PIN        RAMPS_D9_PIN<br />
  #define FAN1_PIN       RAMPS_D8_PIN<br />
<br />
Should I also change the board type to "EFF"  from  "EFB"?<br />
<br />
<br />
Since I originally ask this question I have come up with another.<br />
I will be using two steppers on the Y axis.  I know that I could simply solder them wires together into one plug to run them in parallel.  That I have already done and it works fine.<br />
However if I swapped the pin allocation for Y and Z pins setup in the pins_RAMPS_h <br />
<br />
#define Y_STEP_PIN         60<br />
#define Y_DIR_PIN          61<br />
#define Y_ENABLE_PIN       56<br />
#define Y_CS_PIN           49<br />
<br />
#define Z_STEP_PIN         46<br />
#define Z_DIR_PIN          48<br />
#define Z_ENABLE_PIN       62<br />
#define Z_CS_PIN           40<br />
<br />
I think I should be able to use the two plugs on the board  since Y and Z would be swapped?  Would it really be that simple or are there other places changes would need to be made?<br />
 I would also need to change the speed, steps etc. settings etc.<br />
<br />
thank you for the help.]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 22 Oct 2018 10:16:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,836683#msg-836683</guid>
            <title>Re: Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,836683#msg-836683</link>
            <description><![CDATA[ You cant re assign D9 to annother pin as such...  (well not without hacking the arduino IDE) <br />
<br />
I would try using D8, If you then provide the 11amp power plug on the ramps with 5v the output of D8 is 5v..<br />
<br />
PWM is still TTL,   just lots of on and off's, If its a digital laser on/off, it should be fine. If its actually powering the laser, It may not like it, and both on and off states can be delayed (capacitors in drivers)  <br />
<br />
     <br />
It sort of depends what the gcode what ever your using is generating...   <br />
<br />
Some software uses the fan on/off gcode, If this is the case for you, you can redefine which pin that command toggles.<br />
<br />
pins are defined in pins_RAMPS.h<br />
<br />
eg<br />
#ifndef RAMPS_D8_PIN<br />
  #define RAMPS_D8_PIN      8<br />
#endif<br />
#ifndef RAMPS_D9_PIN<br />
  #define RAMPS_D9_PIN      9<br />
#endif<br />
<br />
If you wanted to swap anything that used D8 to use D9 you could just change this to<br />
<br />
#ifndef RAMPS_D8_PIN<br />
  #define RAMPS_D8_PIN      9<br />
#endif<br />
#ifndef RAMPS_D9_PIN<br />
  #define RAMPS_D9_PIN      8<br />
#endif<br />
<br />
<br />
Or you can also just solder a wire to the input of the mosfet, its still 5v there....]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Mon, 22 Oct 2018 09:32:34 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?133,836616,836616#msg-836616</guid>
            <title>Help needed for pin assignment on RAMPS 1.4 board.</title>
            <link>https://reprap.org/forum/read.php?133,836616,836616#msg-836616</link>
            <description><![CDATA[ I am using the following: RAMPS 1.4, Marlin firmware V 1.1.8.<br />
 <br />
Recently I decided to build a Laser engraver/cutter.  I disassembled an older printer and ordered parts to build  <br />
one that looks like the Eleksmaker A3.  Additionally I purchased a 7W diode laser that requires a 5A driver board.  <br />
Since I am using a RAMPS 1.4 board I have been using the PWM signal from D9.  I would like to continue <br />
using D9 but so far all the 5A driver boards I have found want 0-5V TTL signals.  I understand that it is possible <br />
to reassign the pins to a 5V PWM signal.  <br />
<br />
Will this work?  Is it possible to feed a PWM signal where a TTL signal is expected?<br />
<br />
I've never reassigned a pin before, so I don't know what the "define statement" should look like or where it should be placed.  <br />
<br />
I understand that Marlin V 1.1.9 has settings for Laser/Spindle operation.  <br />
Would it be simpler to switch versions?<br />
<br />
thanks for the help.<br />
Don]]></description>
            <dc:creator>kd6hq</dc:creator>
            <category>Laser Cutter Working Group</category>
            <pubDate>Sun, 21 Oct 2018 12:46:25 -0400</pubDate>
        </item>
    </channel>
</rss>
