<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Model Rail Block detection sketch - Arduino				            </title>
            <link>https://forum.dronebotworkshop.com/arduino/model-rail-block-detection-sketch/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 17 Oct 2026 21:14:11 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Model Rail Block detection sketch</title>
                        <link>https://forum.dronebotworkshop.com/arduino/model-rail-block-detection-sketch/#post-14140</link>
                        <pubDate>Wed, 16 Dec 2020 21:59:35 +0000</pubDate>
                        <description><![CDATA[There have been numerous videos on how to use Arduinos on a model railroad. I would be happy to help you but I am just not following your description. It sounds like all your block detects a...]]></description>
                        <content:encoded><![CDATA[<p>There have been numerous videos on how to use Arduinos on a model railroad. I would be happy to help you but I am just not following your description. It sounds like all your block detects are tried together? It sounds like you have some code already written perhaps if you share it I could help and/or a diagram of your layout with the sensor locations marked. You can attach a file to the reply </p>
<p>  </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>sj_h1</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/model-rail-block-detection-sketch/#post-14140</guid>
                    </item>
				                    <item>
                        <title>Model Rail Block detection sketch</title>
                        <link>https://forum.dronebotworkshop.com/arduino/model-rail-block-detection-sketch/#post-14123</link>
                        <pubDate>Tue, 15 Dec 2020 20:06:53 +0000</pubDate>
                        <description><![CDATA[Hi, I hope someone can help me to change a sketch I have for controlling a set of points, and Signal LEDs ...
The sketch I have has most of the Mega pins used for 6 detection Blocks,Signals...]]></description>
                        <content:encoded><![CDATA[<p>Hi, I hope someone can help me to change a sketch I have for controlling a set of points, and Signal LEDs ...</p>
<p>The sketch I have has most of the Mega pins used for 6 detection Blocks,Signals and IR Sensors and in each block various Points and Signals will change when an Entry sensor is triggered ... the problem I have is all the blocks are in 1 void Loop and if I select Block Detect 1 IR sensor goes LOW points and signals I have setup are triggered and when it Exits block all signals and points go back to normal .... If I know detect Block 2 everything works fine but one of the points which is the point that was used in Block 1 is now LOW so the same point that is in Block 2 goes HIGH and then because the loop is a loop it sees Block 1 (same point) is LOW so turns off ... I want to change the Void Loop to a StateMachine or Switch case but because I have 10 possible Entry sensors I am unsure how to start the sketch for the Switch(case)..</p>
<p>Can anyone help with this</p>
<p>Regards John</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/arduino/">Arduino</category>                        <dc:creator>John40131</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/arduino/model-rail-block-detection-sketch/#post-14123</guid>
                    </item>
							        </channel>
        </rss>
		