<?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>
									Robot Car Continously Running Why ? - Motors &amp; Control				            </title>
            <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 12 Aug 2026 18:42:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5783</link>
                        <pubDate>Thu, 21 Nov 2019 07:53:20 +0000</pubDate>
                        <description><![CDATA[@gulshanNo no no, the code I wrote is to test whether your joystick isn&#039;t behaving as expected (for example, when you let it go... it no longer produces values (because it&#039;s in the dead zone...]]></description>
                        <content:encoded><![CDATA[<p>@gulshan</p><p>No no no, the code I wrote is to test whether your joystick isn't behaving as expected (for example, when you let it go... it no longer produces values (because it's in the dead zone) and nothing more. </p><p>Your question for help was: "<strong>Robot Car Continously Running Why ?</strong>"</p><p>If your joystick does continue to run under the code example I presented (even after you tweaked the range values as I mentioned), then your joystick is not behaving like mine, and you need to decide if the operation of your joystick is acceptable to you or not, and adjust your algorithm accordingly, or purchase a new one if you believe this test proves it's faulty.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>frogandtoad</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5783</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5770</link>
                        <pubDate>Wed, 20 Nov 2019 14:26:24 +0000</pubDate>
                        <description><![CDATA[Posted by: @frogandtoad In my case, the code does not run (i.e: the X and Y values stop printing), unless I move the joystick...but in many code examples i have seen that  for testing the jo...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="171" data-postid="5762" data-mention="frogandtoad"><div class="wpforo-post-quote-author"><strong> Posted by: @frogandtoad </strong></div><p><strong>In my case</strong>, the code does not run (i.e: the X and Y values stop printing), unless I move the joystick...</p></blockquote><p>but in many code examples i have seen that  for testing the joystick modules the the serial monitor continoues to show some values while the joystick shield is free. take a look in this video:-</p><p><a href="https://www.youtube.com/watch?v=qDq7vm-7Xs4" target="true">https://www.youtube.com/watch?v=qDq7vm-7Xs4</a></p><p>please try this code for once with your module and share your results. I will try to do the same.</p><p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>Gulshan</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5770</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5769</link>
                        <pubDate>Wed, 20 Nov 2019 13:46:46 +0000</pubDate>
                        <description><![CDATA[Posted by: @freddie43 Would this topic be better in the &#039;Help wanted&#039; section? It just goes on and on...What is this Section or Where is it ?]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="1415" data-postid="5764" data-mention="freddie43"><div class="wpforo-post-quote-author"><strong> Posted by: @freddie43 </strong></div><p>Would this topic be better in the 'Help wanted' section? It just goes on and on...</p></blockquote><p>What is this Section or Where is it ?</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>Gulshan</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5769</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5768</link>
                        <pubDate>Wed, 20 Nov 2019 13:45:56 +0000</pubDate>
                        <description><![CDATA[Posted by: @frogandtoad It looks like your results show that it is still running when you let go of the joystick?In my case, the code does not run (i.e: the X and Y values stop printing), un...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="171" data-postid="5762" data-mention="frogandtoad"><div class="wpforo-post-quote-author"><strong> Posted by: @frogandtoad </strong></div><p>It looks like your results show that it is still running when you let go of the joystick?</p><p><strong>In my case</strong>, the code does not run (i.e: the X and Y values stop printing), unless I move the joystick... that was the whole point of the test to check if the joystick is operating as expected.</p></blockquote><p>So That means my Joystick shield is not Properly. Guess I have to move on to the single joystick module.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>Gulshan</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5768</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5764</link>
                        <pubDate>Wed, 20 Nov 2019 09:48:43 +0000</pubDate>
                        <description><![CDATA[@zeferbyWould this topic be better in the &#039;Help wanted&#039; section? It just goes on and on...]]></description>
                        <content:encoded><![CDATA[<p>@zeferby</p><p>Would this topic be better in the 'Help wanted' section? It just goes on and on...</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>Freddie43</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5764</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5763</link>
                        <pubDate>Wed, 20 Nov 2019 09:00:37 +0000</pubDate>
                        <description><![CDATA[@gulshanThe code you showed above was just missing the Serial.begin(baudrate); in void setup()Make sure you select the same baud rate in your serial monitor (if possible a rather high one li...]]></description>
                        <content:encoded><![CDATA[<p>@gulshan</p><p>The code you showed above was just missing the Serial.begin(<em>baudrate</em>); in void setup()</p><p>Make sure you select the same baud rate in your serial monitor (if possible a rather high one like 57600 or 115200), and add some kind of method to avoid printing in each end every loop like i showed, oherwise the output will be overwhelming</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>ZeFerby</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5763</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5762</link>
                        <pubDate>Wed, 20 Nov 2019 08:56:11 +0000</pubDate>
                        <description><![CDATA[@gulshanIt looks like your results show that it is still running when you let go of the joystick?In my case, the code does not run (i.e: the X and Y values stop printing), unless I move the ...]]></description>
                        <content:encoded><![CDATA[<p>@gulshan</p><p>It looks like your results show that it is still running when you let go of the joystick?<br /><br /><strong>In my case</strong>, the code does not run (i.e: the X and Y values stop printing), unless I move the joystick... that was the whole point of the test to check if the joystick is operating as expected.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>frogandtoad</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5762</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5761</link>
                        <pubDate>Wed, 20 Nov 2019 07:19:05 +0000</pubDate>
                        <description><![CDATA[Posted by: @frogandtoad const int xDirPin(A0); const int yDirPin(A1); void setup() {  Serial.begin(9600); } void loop() {  if((analogRead(xDirPin) &lt; 480) or (analogRead(xDirPin) &gt; 520)...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="171" data-postid="5758" data-mention="frogandtoad"><div class="wpforo-post-quote-author"><strong> Posted by: @frogandtoad </strong></div><p><span style="color: #00979c">const int</span> <span style="color: #000000">xDirPin</span><span style="color: #000000">(</span><span style="color: #000000">A0</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #00979c">const int</span> <span style="color: #000000">yDirPin</span><span style="color: #000000">(</span><span style="color: #000000">A1</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #00979c">void</span> <span style="color: #5e6d03">setup</span><span style="color: #000000">(</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>  <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">begin</span><span style="color: #000000">(</span><span style="color: #000000">9600</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #000000">}</span> <span style="color: #00979c">void</span> <span style="color: #5e6d03">loop</span><span style="color: #000000">(</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>  <span style="color: #5e6d03">if</span><span style="color: #000000">(</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">xDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&lt;</span> <span style="color: #000000">480</span><span style="color: #000000">)</span> <span style="color: #5e6d03">or</span> <span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">xDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&gt;</span> <span style="color: #000000">520</span><span style="color: #000000">)</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">print</span><span style="color: #000000">(</span><span style="color: #005c5f">"X: "</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #434f54">// Stop the motor inside this statement</span>     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">println</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">xDirPin</span><span style="color: #000000">)</span><span style="color: #000000">)</span><span style="color: #000000">;</span>    <span style="color: #000000">}</span>      <span style="color: #5e6d03">if</span><span style="color: #000000">(</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">yDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&lt;</span> <span style="color: #000000">480</span><span style="color: #000000">)</span> <span style="color: #5e6d03">or</span> <span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">yDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&gt;</span> <span style="color: #000000">520</span><span style="color: #000000">)</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">print</span><span style="color: #000000">(</span><span style="color: #005c5f">"Y: "</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #434f54">// Stop the motor inside this statement</span>     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">println</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">yDirPin</span><span style="color: #000000">)</span><span style="color: #000000">)</span><span style="color: #000000">;</span>    <span style="color: #000000">}</span>      <span style="color: #d35400">delay</span><span style="color: #000000">(</span><span style="color: #000000">50</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #000000">}</span></p></blockquote><p>I think the Joystick Shield is working Fine. I tried and these are the results:- </p><p><a href="https://youtu.be/DhQILnIlCtE" target="true">https://youtu.be/DhQILnIlCtE</a></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>Gulshan</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5761</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5760</link>
                        <pubDate>Wed, 20 Nov 2019 07:06:51 +0000</pubDate>
                        <description><![CDATA[As for your joystick issue, try the following piece of code, to determine if it is actually operating as expected, and then slowly incorporate your code to suit - You may need to tweak the r...]]></description>
                        <content:encoded><![CDATA[<p>As for your joystick issue, try the following piece of code, to determine if it is actually operating as expected, and then slowly incorporate your code to suit - You may need to tweak the range values a little, as not all joysticks behave with the same accuracy:</p><pre><span style="color: #00979c">const</span> <span style="color: #00979c">int</span> <span style="color: #000000">xDirPin</span><span style="color: #000000">(</span><span style="color: #000000">A0</span><span style="color: #000000">)</span><span style="color: #000000">;</span>
<span style="color: #00979c">const</span> <span style="color: #00979c">int</span> <span style="color: #000000">yDirPin</span><span style="color: #000000">(</span><span style="color: #000000">A1</span><span style="color: #000000">)</span><span style="color: #000000">;</span>

<span style="color: #00979c">void</span> <span style="color: #5e6d03">setup</span><span style="color: #000000">(</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>
  <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">begin</span><span style="color: #000000">(</span><span style="color: #000000">9600</span><span style="color: #000000">)</span><span style="color: #000000">;</span>
 <span style="color: #000000">}</span>

<span style="color: #00979c">void</span> <span style="color: #5e6d03">loop</span><span style="color: #000000">(</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>

  <span style="color: #5e6d03">if</span><span style="color: #000000">(</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">xDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&lt;</span> <span style="color: #000000">480</span><span style="color: #000000">)</span> <span style="color: #5e6d03">or</span> <span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">xDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&gt;</span> <span style="color: #000000">520</span><span style="color: #000000">)</span><span style="color: #000000">)</span> <span style="color: #000000">{</span> 
     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">print</span><span style="color: #000000">(</span><span style="color: #005c5f">"X: "</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #434f54">// Run the motor inside this statement</span>
     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">println</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">xDirPin</span><span style="color: #000000">)</span><span style="color: #000000">)</span><span style="color: #000000">;</span>
    <span style="color: #000000">}</span>
    
  <span style="color: #5e6d03">if</span><span style="color: #000000">(</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">yDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&lt;</span> <span style="color: #000000">480</span><span style="color: #000000">)</span> <span style="color: #5e6d03">or</span> <span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">yDirPin</span><span style="color: #000000">)</span> <span style="color: #434f54">&gt;</span> <span style="color: #000000">520</span><span style="color: #000000">)</span><span style="color: #000000">)</span> <span style="color: #000000">{</span> 
     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">print</span><span style="color: #000000">(</span><span style="color: #005c5f">"Y: "</span><span style="color: #000000">)</span><span style="color: #000000">;</span> <span style="color: #434f54">// Run the motor inside this statement</span>
     <strong><span style="color: #d35400">Serial</span></strong><span style="color: #434f54">.</span><span style="color: #d35400">println</span><span style="color: #000000">(</span><span style="color: #d35400">analogRead</span><span style="color: #000000">(</span><span style="color: #000000">yDirPin</span><span style="color: #000000">)</span><span style="color: #000000">)</span><span style="color: #000000">;</span>
    <span style="color: #000000">}</span>
    
  <span style="color: #d35400">delay</span><span style="color: #000000">(</span><span style="color: #000000">50</span><span style="color: #000000">)</span><span style="color: #000000">;</span>
 <span style="color: #000000">}</span>
</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>frogandtoad</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5760</guid>
                    </item>
				                    <item>
                        <title>RE: Robot Car Continously Running Why ?</title>
                        <link>https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5759</link>
                        <pubDate>Wed, 20 Nov 2019 06:57:26 +0000</pubDate>
                        <description><![CDATA[@gulshan Posted by: @gulshan Actually It only happens when the arduino is being powered by the usb port but when i supply the arduino from the driver&#039;s 5V it self it Runs Smoothly.Then perha...]]></description>
                        <content:encoded><![CDATA[<p>@gulshan</p><blockquote data-userid="1178" data-postid="5757" data-mention="gulshan"><div class="wpforo-post-quote-author"><strong> Posted by: @gulshan </strong></div><p>Actually It only happens when the arduino is being powered by the usb port but when i supply the arduino from the driver's 5V it self it Runs Smoothly.</p></blockquote><p>Then perhaps the USB cannot supply sufficient enough power, and that is the problem?</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>frogandtoad</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/robot-car-continously-running-why/paged/3/#post-5759</guid>
                    </item>
							        </channel>
        </rss>
		