<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Arduino firmware with variable move queue size</title>
		<link>https://www.contraptor.org/forum/t-463576/arduino-firmware-with-variable-move-queue-size</link>
		<description>Posts in the discussion thread &quot;Arduino firmware with variable move queue size&quot; - This is an updated version of my multi-arc firmware with a variable move queue size and many other improvements.</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 06 Nov 2026 19:56:33 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.contraptor.org/forum/t-463576#post-1454954</guid>
				<title>Re: Arduino firmware with variable move queue size</title>
				<link>https://www.contraptor.org/forum/t-463576/arduino-firmware-with-variable-move-queue-size#post-1454954</link>
				<description></description>
				<pubDate>Mon, 21 May 2012 10:12:20 +0000</pubDate>
				<wikidot:authorName>uni-T</wikidot:authorName>				<wikidot:authorUserId>1350520</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>to be clear: the error occured in the processing script. The flashing seemed to work. And for processing i don't think it needs any arduino connection at all to run but anyway, I'm using puTTy and/or the ADE to talk to the arduino. As stated in my other thread, the flashing seems to work for every tried firmware (as far as I can tell) but here the problem seems to be on the software side.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-463576#post-1453399</guid>
				<title>Re: Arduino firmware with variable move queue size</title>
				<link>https://www.contraptor.org/forum/t-463576/arduino-firmware-with-variable-move-queue-size#post-1453399</link>
				<description></description>
				<pubDate>Sat, 19 May 2012 05:24:57 +0000</pubDate>
				<wikidot:authorName>Albanetc</wikidot:authorName>				<wikidot:authorUserId>381022</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This looks more like an error from a host software rather than from firmware? What are you using to talk to Arduino on the computer side?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-463576#post-1449236</guid>
				<title>Re: Arduino firmware with variable move queue size</title>
				<link>https://www.contraptor.org/forum/t-463576/arduino-firmware-with-variable-move-queue-size#post-1449236</link>
				<description></description>
				<pubDate>Tue, 15 May 2012 08:09:33 +0000</pubDate>
				<wikidot:authorName>uni-T</wikidot:authorName>				<wikidot:authorUserId>1350520</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,</p> <p>I am trying to get my arduino running with any firmware(without success so far) and so I tried this one, but I recieve a parsing error on line 253 ( Toggle t = theRadioButton.addItem(theName,theValue); :cannot convert from RaidioButton to Toggle</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.contraptor.org/forum/t-463576#post-1425770</guid>
				<title>Arduino firmware with variable move queue size</title>
				<link>https://www.contraptor.org/forum/t-463576/arduino-firmware-with-variable-move-queue-size#post-1425770</link>
				<description></description>
				<pubDate>Mon, 23 Apr 2012 16:34:00 +0000</pubDate>
				<wikidot:authorName>MMarz</wikidot:authorName>				<wikidot:authorUserId>632172</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've been MIA for a while with work. I wanted to release this for others to enjoy. The code is well documented. Make sure to look over it before you start to use it.</p> <p>Set the queue size using &quot;#define QUEUE_SIZE&quot; in main source file. For the Atmega328, 20 moves seems to be the maximum it can hold. If you set this value too high, you'll lockup the arduino when the buffer fills up. If you use the 1280, it will hold considerably more moves. The only way I was able to exhaust the 20 move buffer on the 328 was by having many many tiny movements back to back. This should all but eliminate the deceleration and acceleration problem that some were having.</p> <p>I've also added lots of custom functions. For example, adding a z-surface pin that will automatically find the surface of your platform. Read the code for more info. Do not use the custom functions unless you have the z-surface pin attached or you will damage your machine.</p> <p>The limit pins have been redesigned. They are no longer connected to the arduino. They instead are connected directly to the cw/ccw pins of the stepper driver. When the platform reaches the end of it's movement, the limit switch forces the driver to reverse direction without notifying the arduino. This means that there is never the possibility of hurting your platform even if the arduino locks up. This also frees up the arduino to worry about the timing of the movements and does not need to constantly check the limit pins.</p> <p>There is also code for using an external joystick to move the platform. Make sure these pins are disabled if you are not going use this feature.</p> <p>I've included the processing script that will communicate with the firmware. You cannot use any other script to communicate with this firmware. This is because the firmware and script have been optimized to use the least about of communication to reduce any delays. If you read through the script, you can probably reverse engineer it fairly easily. Besides the streamlined communications, I've expanded the interface to have more functions.</p> <p>Enjoy!</p> <p>Firmware: <a href="http://www.mediafire.com/?86g1bh81zhczhqw">http://www.mediafire.com/?86g1bh81zhczhqw</a><br /> Processing script: <a href="http://www.mediafire.com/?uetaa14aadkx48z">http://www.mediafire.com/?uetaa14aadkx48z</a></p> <p>Let me know if you catch any bugs. I haven't tested this thoroughly, but to the extent that I have, it has worked flawlessly.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>