<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Optical end stop help Ramps 1.4 Marlin firmware</title>
        <description> I have a old chem lab CNC equipment platform (used to set up petri dishes) and it  will do well for a printer. I have everything wired up and steppers moving. it comes with Omron EE-SX optical end stops. 

Now the problem. I have no idea how to set the code for the stops in Marlin in Configuration.h I have tried what I think are all the options of pullups and no pullups, reversing the the logic etc etc... I am sure there is a combination  I have missed but I am very frustrated and figured I would ask here. 

When the stop is triggered the logic wire goes from 0v to 24v (it&#039;s a 24v machine and I have ramps working with it) so its a NO switch, but the logic line only goes up when attached to the pos power line to the optical endstop and not the ground line like I thought it would. So... what would you do in this circumstance to get the endstops working on this?</description>
        <link>https://reprap.org/forum/read.php?4,352984,352984#msg-352984</link>
        <lastBuildDate>Wed, 16 Sep 2026 21:11:41 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,353320#msg-353320</guid>
            <title>Re: Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,353320#msg-353320</link>
            <description><![CDATA[ Ok thanks again Dust! Ill sort this out now that you have put me on the right path... You are awesome.]]></description>
            <dc:creator>behnt</dc:creator>
            <category>Reprappers</category>
            <pubDate>Sat, 10 May 2014 11:49:25 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,353174#msg-353174</guid>
            <title>Re: Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,353174#msg-353174</link>
            <description><![CDATA[ The logic levels are reversed on a typical two wire endstop wired NC to S and gnd.<br />
<br />
Normally:<br />
a depressed switch is actuality open cct, no voltage flows, but due to the internal pull up resistor it reads high, which is translated to triggered<br />
a non depressed switch is actually closed cct, and pulled to 0v, this is translated to open. <br />
<br />
With optos you need a cct, not just wired direct see eg [<a href="http://reprap.org/wiki/OptoEndstop_2.1" target="_blank"  rel="nofollow">reprap.org</a>]<br />
<br />
You need to use 3 wires..  as you need gnd and +5 for power as well as the signal coming back from the device.]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Reprappers</category>
            <pubDate>Sat, 10 May 2014 01:55:13 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,353172#msg-353172</guid>
            <title>Re: Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,353172#msg-353172</link>
            <description><![CDATA[ Ok pins are good! Whew!<br />
<br />
But I want to clarify before I really blow pins :) I should take the "S"ignal wire to ground? Then should I put the ground to the signal pin? Then again with S to +5v? where do I put the +5V line when I do this? I am not convinced this will work as the stop needs constant power to operate <br />
<br />
I apologize for my newbie-ness but I guess you have to start somewhere. I totally appreciate your help Dust!<br />
<br />
FWIW when I test the stop with my meter here is what happens:<br />
<ul><li> I attach my pos line from the meter to the +5v and to the S pin, this gives me a 0v normally and +5v when the stop is triggered. </li><li> When I Attach my pos line from my multimeter to the S pin and ground to the ground pin I get 0v regardless of the stop being triggered.</li></ul>
<br />
 So in my newbie head this is backwards... Make any sense to you?]]></description>
            <dc:creator>behnt</dc:creator>
            <category>Reprappers</category>
            <pubDate>Sat, 10 May 2014 01:33:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,353141#msg-353141</guid>
            <title>Re: Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,353141#msg-353141</link>
            <description><![CDATA[ Yes is the mega.<br />
<br />
If its dead the pin it just wont change level.<br />
<br />
I would set it up like a 'mechanical' endstop to test.<br />
basically wire endstop S to gnd, check with m119, then test S to +5v check with m119]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Reprappers</category>
            <pubDate>Fri, 09 May 2014 22:29:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,353115#msg-353115</guid>
            <title>Re: Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,353115#msg-353115</link>
            <description><![CDATA[ Ugh... Ok then is it at least the Mega that is shot and not the Ramps board? I have extra arduinos... <br />
Feeling quite dumb....<br />
<br />
Then again how do I test if the pins are live or not? Now that I am thinking this through I powered the stop with the endstop 5v so the return should have been 5v so maybe.... crossing fingers. <br />
<br />
If its burnt out then its the price I pay for jumping in I guess. Ill chalk this up as a learning experience...]]></description>
            <dc:creator>behnt</dc:creator>
            <category>Reprappers</category>
            <pubDate>Fri, 09 May 2014 19:44:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,353111#msg-353111</guid>
            <title>Re: Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,353111#msg-353111</link>
            <description><![CDATA[ Endstops are attached to the digital io pins. 0 or 5v, if you have applied 24v to a io pin. its now a dead pin]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Reprappers</category>
            <pubDate>Fri, 09 May 2014 19:23:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,352984,352984#msg-352984</guid>
            <title>Optical end stop help Ramps 1.4 Marlin firmware</title>
            <link>https://reprap.org/forum/read.php?4,352984,352984#msg-352984</link>
            <description><![CDATA[ I have a old chem lab CNC equipment platform (used to set up petri dishes) and it  will do well for a printer. I have everything wired up and steppers moving. it comes with <a href="http://www.ia.omron.com/data_pdf/data_sheet/ee-sx47_67_dsheet_csm483.pdf" target="_blank"  rel="nofollow">Omron EE-SX</a> optical end stops. <br />
<br />
Now the problem. I have no idea how to set the code for the stops in Marlin in Configuration.h I have tried what I think are all the options of pullups and no pullups, reversing the the logic etc etc... I am sure there is a combination  I have missed but I am very frustrated and figured I would ask here. <br />
<br />
When the stop is triggered the logic wire goes from 0v to 24v (it's a 24v machine and I have ramps working with it) so its a NO switch, but the logic line only goes up when attached to the pos power line to the optical endstop and not the ground line like I thought it would. So... what would you do in this circumstance to get the endstops working on this?]]></description>
            <dc:creator>behnt</dc:creator>
            <category>Reprappers</category>
            <pubDate>Fri, 09 May 2014 14:12:37 -0400</pubDate>
        </item>
    </channel>
</rss>
