<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>dmt195 today</title>
	<atom:link href="http://dmt195.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dmt195.wordpress.com</link>
	<description>Sloppy's robotics project blog</description>
	<lastBuildDate>Sun, 29 Jan 2012 00:12:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dmt195.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>dmt195 today</title>
		<link>http://dmt195.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dmt195.wordpress.com/osd.xml" title="dmt195 today" />
	<atom:link rel='hub' href='http://dmt195.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Android Apps!</title>
		<link>http://dmt195.wordpress.com/2011/09/08/android-apps-gas-it-right/</link>
		<comments>http://dmt195.wordpress.com/2011/09/08/android-apps-gas-it-right/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 22:06:50 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=222</guid>
		<description><![CDATA[Today I have published my second Android application, Gas It Right Pro. It&#8217;s a paid version of an ad supported app, Gas It Right, but with lots more features. Please take a look and support my new hobby! The idea of Gas It Right is to help you choose the correct amount of fuel/gas into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=222&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I have published my second Android application, Gas It Right Pro. It&#8217;s a paid version of an ad supported app, Gas It Right, but with lots more features. Please take a look and support my new hobby!</p>
<p>The idea of Gas It Right is to help you choose the correct amount of fuel/gas into a hire car that was delivered without a full tank (eg 3/4 full). This happens to me all the time and I invariably overfill &#8220;to be safe&#8221;. I wrote this to save money. Please do the same and download it now!</p>
<p><a href="//market.android.com/details?id=com.dmt195.carhirefillerpro">Gas it Right Pro</a> (Android v2.2+)</p>
<p><a href="//market.android.com/details?id=com.dmt195.carhirefiller">Gas it Right</a> (original, Android v1.6+)</p>
<div class="wp-caption alignnone" style="width: 250px"><img title="Home page of Gas it Right Pro" src="https://ssl.gstatic.com/android/market/com.dmt195.carhirefillerpro/ss-480-0-0" alt="Gas it Right Pro Screenshot" width="240" height="400" /><p class="wp-caption-text">Home page of Gas it Right Pro</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=222&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2011/09/08/android-apps-gas-it-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="https://ssl.gstatic.com/android/market/com.dmt195.carhirefillerpro/ss-480-0-0" medium="image">
			<media:title type="html">Home page of Gas it Right Pro</media:title>
		</media:content>
	</item>
		<item>
		<title>Cooperative Swarm of Robots</title>
		<link>http://dmt195.wordpress.com/2011/08/18/cooperative-swarm-of-robots/</link>
		<comments>http://dmt195.wordpress.com/2011/08/18/cooperative-swarm-of-robots/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 06:54:39 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[swarms robotics]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=219</guid>
		<description><![CDATA[This is an amazing achievement!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=219&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is an amazing achievement!</p>
<span style="text-align:center; display: block;"><a href="http://dmt195.wordpress.com/2011/08/18/cooperative-swarm-of-robots/"><img src="http://img.youtube.com/vi/M2nn1X9Xlps/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=219&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2011/08/18/cooperative-swarm-of-robots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>
	</item>
		<item>
		<title>A scanning range finder using Arduino and Processing</title>
		<link>http://dmt195.wordpress.com/2010/03/30/a-scanning-range-finder-using-arduino-and-processing/</link>
		<comments>http://dmt195.wordpress.com/2010/03/30/a-scanning-range-finder-using-arduino-and-processing/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 19:21:47 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[arduino]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=210</guid>
		<description><![CDATA[I&#8217;ve really been unfocused recently with my robotics hobby. I have so much I want to play with. This post is to document playing with a couple of new toys all together. These are: a sharp GP2D12 range finding sensor (10 to 80cm), an Arduino (actually a seeduino), and the programming language Processing. A big [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=210&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve really been unfocused recently with my robotics hobby. I have so much I want to play with. This post is to document playing with a couple of new toys all together. These are: a sharp GP2D12 range finding sensor (10 to 80cm), an Arduino (actually a seeduino), and the programming language Processing.</p>
<p><a href="http://dmt195.files.wordpress.com/2010/03/sharp_radar.png"><img class="aligncenter size-medium wp-image-214" title="sharp_radar" src="http://dmt195.files.wordpress.com/2010/03/sharp_radar.png?w=300&#038;h=163" alt="Plotting range with angle" width="300" height="163" /></a></p>
<p>A big thanks to David Barnes (of the excellent <a href="http://www.QuotientRobotics.com">Quotient Robotics</a> blog) for giving me my first Arduino (an iDuino). I got the bug and have since bought a Seeduino which is the same thing but a bit more of a conventional layout for shields and such.</p>
<p>Note: I&#8217;m not claiming to be the first person to do this! The way I go about it may be different and may be useful to someone out there &#8211; that&#8217;s why I blog about it. My code is based on other examples which I will cite where appropriate.</p>
<p><a href="http://www.arduino.cc">Arduino </a>Code &#8211; simple stuff. Move the servo take a measurement, and print both the angle and the range over serial. I used the example &#8220;Sweep&#8221; which is a kind of servos 101 example. Listing:</p>
<pre>// Sweep servo, take range, send to serial
// by DMT195 &lt;http://dmt195.wordpress.com&gt; modified version of "sweep" 
// originally by BARRAGAN &lt;http://barraganstudio.com&gt; 

#include &lt;Servo.h&gt; 
Servo myservo;  // create servo object to control a servo                 
int pos = 0;    // variable to store the servo position 
char serialTemp[10];  //variable to create a serial string 
int rang;  //a variable to store the range value 
void setup() {  
  Serial.begin(9600);  
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object 
} 
void loop() {   
  for(pos = 0; pos &lt; 180; pos += 1)  // goes from 0 degrees to 180 degrees   
  {                                  // in steps of 1 degree     
   myservo.write(pos);    
   delay(15);                       // waits 15ms for the servo to reach the position     
   rang=analogRead(0);    
   Serial.print(rang);    
   Serial.print(",");    
   Serial.println(pos);   // reads the value at the analogue input and outputs this with position to the serial port  
  } 
 for(pos = 180; pos&gt;=1; pos-=1)     // goes from 180 degrees to 0 degrees
   {                                    
   myservo.write(pos);    
   delay(15);                       // waits 15ms for the servo to reach the position     
   rang=analogRead(0);    
   Serial.print(rang);        
   Serial.print(",");    
   Serial.println(pos);   // reads the value at the analogue input and outputs this with position to the serial port  
   } 
}</pre>
<p>I then used <a href="http://www.processing.org">Processing </a>to plot and visualise the output. I hadn&#8217;t come across it before but it seems very suited to this kind of thing. The language is very similar to the Arduino code. Again, I used existing code and modified it for my purposes. Standing on the shoulders of giants and all that. Listing:</p>
<pre>// Graphing sketch
// This program takes ASCII-encoded strings
// from the serial port at 9600 baud and graphs them in a polar fassion.
// Original code Created 20 Apr 2005, by Tom Igoe
// Modified code by DMT195 and available free to all
// This example code is in the public domain.
import processing.serial.*;
Serial myPort;        // The serial portint
xPos = 1;         // anglefloat
deg2rad = PI/180; //conversion factor
float[] magn = new float[180]; //magnitude - somewhere to store the ranges with angle
int x1,x2,y1,y2;
void setup () {  // set the window size:  
size(800, 400);          
stroke(0,255,0);  // List all the available serial ports  
println(Serial.list());  // I know that the first port in the serial list on my mac  
// is always my  Arduino, so I open Serial.list()[0].  
// Open whatever port is the one you're using.  
myPort = new Serial(this, Serial.list()[0], 9600);  
// don't generate a serialEvent() unless you get a newline character:  
myPort.bufferUntil('\n');  
// set inital background:  
background(0);
}
void draw () {
  // everything happens in the serialEvent()
}
void serialEvent (Serial myPort) {  // get the ASCII string:  
  String inString = myPort.readStringUntil('\n');
  if (inString != null) {    // trim off any whitespace:
    inString = trim(inString);
    int[] inArray = int(split(inString, ','));
    // convert to an int and map to the screen height:
    int inPos = inArray[1];
    try{    //I don't claim to understand error handling that well but this seemed to stop the program from crashing
    magn[inPos] = map(getRange(inArray[0]), 0, 800, 0, height);
    }catch(Exception e){};
    // draw the thing:    
    if((inPos%5)==0){  //This says that for every angle divisible by 5 refresh the drawing
      background(0);
      plotWhiteBits();
    }
    x1 = int(width/2-magn[0]);
    y1 = height;
    for(int i=0; i&lt;180; i=i+1){
      x2 = int(width/2-magn[i]*cos(i*deg2rad));
      y2 = int(height-magn[i]*sin(i*deg2rad));
      line(x1,y1,x2,y2);
      x1=x2;
      y1=y2;
    }
  }
}
int getRange(int volts){ //This is my fitting routine. I should check this works at some point!
  float rangeInMm = 1/(0.000016*volts+0.0004516);
  return int(rangeInMm);
}
void plotWhiteBits(){ //This is a function to draw the background reticules (lines and arcs)
  int leng=height*3;
  stroke(127,127,127);
  for(int j=0; j&lt;180; j=j+15){   //A chose a 15 degree angle between lines
    line(int(width/2),int(height),int(width/2-1*leng*cos(j*deg2rad)),int(height-leng*sin(j*deg2rad)));
  }
  for(int j=1;j&lt;9;j=j+1){  //And this is for the arcs
    int spacer=height/4;
    noFill();
    ellipse(width/2, height, j*spacer, j*spacer);
  }
  stroke(0,255,0);  //return the stroke colour back to the main one
}</pre>
<p>I hope this is of use to someone. If you improve it please let me know!</p>
<p><strong>Update</strong>: I&#8217;ve used XBee devices to do this wirelessly now! Works well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=210&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2010/03/30/a-scanning-range-finder-using-arduino-and-processing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2010/03/sharp_radar.png?w=300" medium="image">
			<media:title type="html">sharp_radar</media:title>
		</media:content>
	</item>
		<item>
		<title>New laser cutting service</title>
		<link>http://dmt195.wordpress.com/2010/02/02/new-laser-cutting-service/</link>
		<comments>http://dmt195.wordpress.com/2010/02/02/new-laser-cutting-service/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 20:08:27 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=205</guid>
		<description><![CDATA[It&#8217;s been nearly a year since I had real trouble trying to machine my own parts and failing miserably! Since then I have been working tirelessly with others to set up a hobbyist friendly laser cutting service in for those in the UK. I present you with ShapeMonkey! Currently this offers a simple upload, pay, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=205&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been nearly a year since I had real trouble trying to machine my own parts and failing miserably!</p>
<p>Since then I have been working tirelessly with others to set up a hobbyist friendly laser cutting service in for those in the UK.</p>
<p>I present you with <a href="http://www.shapemonkey.co.uk">ShapeMonkey</a>!<br />
<a href="http://www.shapemonkey.co.uk"><img class="aligncenter size-medium wp-image-206" title="shapemonkey_logo" src="http://dmt195.files.wordpress.com/2010/02/shapemonkey_email_and_paypal.png?w=300&#038;h=69" alt="ShapeMonkey Laser Cutting Service" width="300" height="69" /></a></p>
<p>Currently this offers a simple upload, pay, and receive service for acrylic and balsa wood. More materials and products will be offered in time. This is the kind of service I was looking for back then. Hopefully others reading this blog will find the service useful.</p>
<p>Please give as much feedback as you can. For example: What materials should be next?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=205&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2010/02/02/new-laser-cutting-service/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2010/02/shapemonkey_email_and_paypal.png?w=300" medium="image">
			<media:title type="html">shapemonkey_logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Laser cutting in the UK</title>
		<link>http://dmt195.wordpress.com/2009/09/10/laser-cutting-in-the-uk/</link>
		<comments>http://dmt195.wordpress.com/2009/09/10/laser-cutting-in-the-uk/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 21:58:48 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/2009/09/10/laser-cutting-in-the-uk/</guid>
		<description><![CDATA[Sometimes I wish I lived in the states because there is a service for everything and everyone. In particular I&#8217;m thinking about how easy laser cutting (and other forms of machining) is for tinkerers like me and my readers. Has anyone had any experience of laser cutting services in the UK? Please post in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=204&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes I wish I lived in the states because there is a service for everything and everyone. In particular I&#8217;m thinking about how easy laser cutting (and other forms of machining) is for tinkerers like me and my readers.<br />
Has anyone had any experience of laser cutting services in the UK? Please post in the comments if you had a good/bad experience, or if you&#8217;re seeking a service.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=204&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2009/09/10/laser-cutting-in-the-uk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>
	</item>
		<item>
		<title>I can&#8217;t machine for toffee</title>
		<link>http://dmt195.wordpress.com/2009/02/24/i-cant-machine-for-toffee/</link>
		<comments>http://dmt195.wordpress.com/2009/02/24/i-cant-machine-for-toffee/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 13:42:28 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[mechanical]]></category>
		<category><![CDATA[picaxe]]></category>
		<category><![CDATA[robotics]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=195</guid>
		<description><![CDATA[I had a go at doing some mechanical work at the weekend. I tried to machine the acrylic I bought and create some kind of joint using a stepper motor. I have to say that I failed rather miserably! I tried scoring and snapping the stuff only to find that a cut length of anything [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=195&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a go at doing some mechanical work at the weekend. I tried to machine the acrylic I bought and create some kind of joint using a stepper motor. I have to say that I failed rather miserably!</p>
<p>I tried scoring and snapping the stuff only to find that a cut length of anything longer than about 10cm was impossible! A hacksaw proved much better but I really don&#8217;t have the benches, vice, etc to make a decent job of it. I&#8217;m now thinking about getting something made up. The problem with that is that I&#8217;m finding it difficult to start designing when faced with a blank screen on a CAD package. It is holding the robot arm project up though.</p>
<p><a href="http://dmt195.files.wordpress.com/2009/02/21022009130.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="304" alt="21022009130" src="http://dmt195.files.wordpress.com/2009/02/21022009130-thumb.jpg?w=404&#038;h=304" width="404" border="0"></a> </p>
<p>In other news&#8230;</p>
<p>I purchased some bits off ebay. Firstly I bought some Picaxe compatible kits to help me prototype. Some of these are Picaxe-08 kits so I shall be making some compact stepper motor controls shortly. They were from rkeducation (they also have a <a href="http://cart.rkeducation.co.uk/index.php" target="_blank">web site</a>).</p>
<p>Secondly, inspired by a <a href="http://www.youtube.com/watch?v=swqFA9Mvq5M" target="_blank">kite aerial photography</a> (and some <a href="http://www.youtube.com/watch?v=3Zq6Jao9ukI&amp;feature=channel" target="_blank">RC</a>) videos I decided to buy some radio gear. I now have a 6 channel transmitter and receiver which work well with the servos I have. I see a few more projects coming up&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=195&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2009/02/24/i-cant-machine-for-toffee/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/02/21022009130-thumb.jpg" medium="image">
			<media:title type="html">21022009130</media:title>
		</media:content>
	</item>
		<item>
		<title>Recommended Robotic Books</title>
		<link>http://dmt195.wordpress.com/2009/01/29/recommended-robotic-books/</link>
		<comments>http://dmt195.wordpress.com/2009/01/29/recommended-robotic-books/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:45:22 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[robotics books]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=147</guid>
		<description><![CDATA[Here&#8217;s a few of my favourite books I refer to on a regular basis. If you do intend to buy one of them please consider using the links provided to support my robot expenses! Programming and customising the PICAXE Microcontroller, David Lincoln, David Lincoln (More Info) This is a fantastic book! Really accessible, plenty of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=147&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a few of my favourite books I refer to on a regular basis. If you do intend to buy one of them please consider using the links provided to support my robot expenses!</p>
<p><a href="http://picasaweb.google.co.uk/lh/photo/13yRG-z7DgJ5XnHlSQZIgw?feat=directlink"><img src="http://lh4.ggpht.com/_M_JhcooMa1I/SZSIc6GEnUI/AAAAAAAAA8M/8kvV5rDB3S8/s144/12022009121.jpg" alt="My Robot Books" /></a></p>
<p><strong>Programming and customising the PICAXE Microcontroller, David Lincoln,</strong> David Lincoln (<a href="http://www.amazon.co.uk/gp/product/0071457658?ie=UTF8&amp;tag=tranquiliser-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=0071457658">More Info</a>)</p>
<p>This is a fantastic book! Really accessible, plenty of examples, and loads of help with coding. I&#8217;m technical but not a hard-core programmer so this book works well as both a teaching aid and also a reference book. It also covers all the PICAXE chips (8 to 40-pin), how to connect them up, program them, and use their special functions. This is well worth the (relatively small amount of) cash. I have found a couple of times now (and BasicX24: I&#8217;m looking at you!) that you buy some hardware but the documentation (or software or programming hardware) is really poor or expensive. Not the case here &#8211; If you&#8217;re planning on developing for PICAXE chips then <a href="http://www.amazon.co.uk/gp/product/0071457658?ie=UTF8&amp;tag=tranquiliser-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=0071457658">More info</a></p>
<p><strong>Mobile Robotics: Inspiration to Implementation</strong>, Anita Flynn et al. (<a href="http://www.amazon.co.uk/gp/product/1568810970?ie=UTF8&amp;tag=tranquiliser-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=1568810970">More Info</a>)</p>
<p>This was a favourite book of mine for a long time and is considered to be one of the definitive &#8216;bibles&#8217; for robotics hobbyists. It&#8217;s getting a little dated with regard to the microprocessor of choice (an 68HC&#8230;) &#8211; at least with the amazing crop of hobbyist chips available these days (Picaxe, Stamp, Arduino, PICmicros, Amtel AVR, OOPic, etc). That was what put me off attacking the electronics side of the main project discussed inside. Saying that the book is great in two respects: 1) It&#8217;s inspirational and well written, and 2) It discusses many of the details of building a mobile robot in depth. These include motor choice, battery choice, and sensors. The book is crying out for a new addition but I think it&#8217;s still worth a look if you&#8217;re getting into the field as a hobby, particularly at the current price.</p>
<p><strong>Robot Builder&#8217;s Bonanza (ed 1, 2, and 3!)</strong>, Gordon McComb et al. (<a href="http://www.amazon.co.uk/gp/product/0071468935?ie=UTF8&amp;tag=tranquiliser-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=0071468935">More info</a>)</p>
<p>I&#8217;ve incredibly got two editions of this book and there exists a 3rd edition already. Whilst I can&#8217;t comment on the latest I&#8217;d like to say a few words on the series which will hopefully inform anyone considering a purchase.<br />
It sells itself as a practical how-to guide and I have to say that in some respects it&#8217;s smack on but in others it&#8217;s lacking somewhat. As with Mobile Robotics it discusses sensors, batteries, and motors. The 2nd edition even discusses choice of microprocessor and includes the Stamp, the BasicX, and the OOPic. I&#8217;m sure the 3rd edition will include some of the more recent trends such as the Arduino too. My main criticism of the book is the mechanical how-tos which take up a lot of the space. These attempt to show you how to build robot arms, etc., and how to deal with gears, chains, and sprockets. They ALL use aluminium section and frankly look ropey. I&#8217;m sure that they do what they&#8217;re supposed to but I consider these sections the least useful. It does tell you how to work with different materials (plastics, wood, etc) but I would loved to see some plastic section builds of the kind I see so many of on the web.<br />
To be fair though it does have some well thought out sections and it&#8217;s a good general reference on electronics, interfacing with microcontrollers and PCs, and plenty of programming examples. Although I have been a little critical I still think it&#8217;s a good purchase (particularly because of the price &#8211; in fact I think I&#8217;ll buy edition 3 now! Done!&#8230;).</p>
<p><strong>Update: </strong>The third edition has arrived! The first thing that struck me is just how big it is compared to the other editions. In fact I think each edition is about 1.5x bigger than its predecessor! There&#8217;s some interesting bits on toy hacking, some more recent electronics bits (like the use of accelerometers), etc. Edition 2 talked about a range of microcontrollers &#8211; this edition scales back to talk about the Basic Stamp (2) only. I can see why they chose to, they can go into more detail and not worry about being experts in everything, but it&#8217;s a bit of a shame. Worth the purchase though&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=147&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2009/01/29/recommended-robotic-books/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_M_JhcooMa1I/SZSIc6GEnUI/AAAAAAAAA8M/8kvV5rDB3S8/s144/12022009121.jpg" medium="image">
			<media:title type="html">My Robot Books</media:title>
		</media:content>
	</item>
		<item>
		<title>Bipolar stepper motor control with Picaxe and L293D chips</title>
		<link>http://dmt195.wordpress.com/2009/01/28/bipolar-stepper-motor-control-with-picaxe-and-l293d-chips/</link>
		<comments>http://dmt195.wordpress.com/2009/01/28/bipolar-stepper-motor-control-with-picaxe-and-l293d-chips/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 09:58:35 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[bipolar]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[picaxe]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[robotics]]></category>
		<category><![CDATA[stepper motor]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/?p=156</guid>
		<description><![CDATA[I&#8217;ve now got a schematic and program for running a bipolar stepper motor via a serial interface (just as for the unipolar case). This is important for the robot arm cause because two of the three steppers will be of the bipolar kind. Where driving the unipolar stepper required only current &#8216;pushing&#8217; (ie all in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=156&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve now got a schematic and program for running a bipolar stepper motor via a serial interface (just as for <a href="http://dmt195.wordpress.com/2008/03/08/picaxe-stepper-motor-controller/" target="_blank">the unipolar case</a>). This is important for the robot arm cause because two of the three steppers will be of the bipolar kind.<br />
Where driving the unipolar stepper required only current &#8216;pushing&#8217; (ie all in the same direction through a common ground), a bipolar motor requires current to flow in both directions. The following image shows the difference.</p>
<p><a href="http://dmt195.files.wordpress.com/2009/01/steppers.png"><img style="border-width:0;" src="http://dmt195.files.wordpress.com/2009/01/steppers-thumb.png?w=404&#038;h=250" border="0" alt="steppers" width="404" height="250" /></a></p>
<p>In theory the control of this is very easy with two half H-bridges (essentially four transistors) controlled by several Picaxe output lines). The basic concept is shown below.</p>
<p><a href="http://dmt195.files.wordpress.com/2009/01/image6.png"><img style="border-width:0;" src="http://dmt195.files.wordpress.com/2009/01/image-thumb5.png?w=404&#038;h=554" border="0" alt="image" width="404" height="554" /></a></p>
<p>(Source: <a title="http://commons.wikimedia.org/wiki/File:Bipolar_Stepper_Motor_H-bridge.png" href="http://commons.wikimedia.org/wiki/File:Bipolar_Stepper_Motor_H-bridge.png">http://commons.wikimedia.org/wiki/File:Bipolar_Stepper_Motor_H-bridge.png</a>)</p>
<p>The L293D chip has the requisite transistors and a nice interface (with lots of extra features that my DIY skills couldn&#8217;t match). I&#8217;ve also used it in the <a href="http://dmt195.wordpress.com/2007/10/29/robot1-labeled/" target="_blank">mobile robot experiment</a> to control the direction of 2 motors.</p>
<p>As with anything like this though, one needs to think through the sequence and outline a table of output values corresponding to the steps, as below.</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="133" valign="top">Direction</td>
<td width="133" valign="top">Coil 1</td>
<td width="133" valign="top">Coil 2</td>
</tr>
<tr>
<td width="133" valign="top">N</td>
<td width="133" valign="top">+</td>
<td width="133" valign="top">0</td>
</tr>
<tr>
<td width="133" valign="top">NE</td>
<td width="133" valign="top">+</td>
<td width="133" valign="top">+</td>
</tr>
<tr>
<td width="133" valign="top">E</td>
<td width="133" valign="top">0</td>
<td width="133" valign="top">+</td>
</tr>
<tr>
<td width="133" valign="top">SE</td>
<td width="133" valign="top">-</td>
<td width="133" valign="top">+</td>
</tr>
<tr>
<td width="133" valign="top">S</td>
<td width="133" valign="top">-</td>
<td width="133" valign="top">0</td>
</tr>
<tr>
<td width="133" valign="top">SW</td>
<td width="133" valign="top">-</td>
<td width="133" valign="top">-</td>
</tr>
<tr>
<td width="133" valign="top">W</td>
<td width="133" valign="top">0</td>
<td width="133" valign="top">-</td>
</tr>
<tr>
<td width="133" valign="top">NW</td>
<td width="133" valign="top">+</td>
<td width="133" valign="top">-</td>
</tr>
</tbody>
</table>
<p>At first I was using 6 output lines (!) &#8211; 4 for each of the transistor inputs and 2 for enabling or disabling the L293D&#8217;s 2 &#8216;half h-bridges&#8217;. In this configuration it could be reduced to 4 by using an external NOT gate (because 2 of the controls are always the opposite of another 2). Such a scheme would look like this:</p>
<table border="0" cellspacing="0" cellpadding="2" width="401">
<tbody>
<tr>
<td width="79" valign="top">Direction</td>
<td width="56" valign="top">EN1-2</td>
<td width="41" valign="top">1A</td>
<td width="46" valign="top">2A</td>
<td width="69" valign="top">EN3-4</td>
<td width="56" valign="top">3A</td>
<td width="52" valign="top">4A</td>
</tr>
<tr>
<td width="79" valign="top">N</td>
<td width="56" valign="top">1</td>
<td width="41" valign="top">1</td>
<td width="46" valign="top">0</td>
<td width="69" valign="top">0</td>
<td width="56" valign="top"><span style="color:#c0c0c0;">0</span></td>
<td width="52" valign="top"><span style="color:#c0c0c0;">0</span></td>
</tr>
<tr>
<td width="79" valign="top">NE</td>
<td width="56" valign="top">1</td>
<td width="41" valign="top">1</td>
<td width="46" valign="top">0</td>
<td width="69" valign="top">1</td>
<td width="56" valign="top">1</td>
<td width="52" valign="top">0</td>
</tr>
<tr>
<td width="79" valign="top">E</td>
<td width="56" valign="top">0</td>
<td width="41" valign="top"><span style="color:#c0c0c0;">0</span></td>
<td width="46" valign="top"><span style="color:#c0c0c0;">0</span></td>
<td width="69" valign="top">1</td>
<td width="56" valign="top">1</td>
<td width="52" valign="top">0</td>
</tr>
<tr>
<td width="79" valign="top">SE</td>
<td width="56" valign="top">1</td>
<td width="41" valign="top">0</td>
<td width="46" valign="top">1</td>
<td width="69" valign="top">1</td>
<td width="56" valign="top">1</td>
<td width="52" valign="top">0</td>
</tr>
<tr>
<td width="79" valign="top">S</td>
<td width="56" valign="top">1</td>
<td width="41" valign="top">0</td>
<td width="46" valign="top">1</td>
<td width="69" valign="top">0</td>
<td width="56" valign="top"><span style="color:#c0c0c0;">0</span></td>
<td width="52" valign="top"><span style="color:#c0c0c0;">0</span></td>
</tr>
<tr>
<td width="79" valign="top">SW</td>
<td width="56" valign="top">1</td>
<td width="41" valign="top">0</td>
<td width="46" valign="top">1</td>
<td width="69" valign="top">1</td>
<td width="56" valign="top">0</td>
<td width="52" valign="top">1</td>
</tr>
<tr>
<td width="79" valign="top">W</td>
<td width="56" valign="top">0</td>
<td width="41" valign="top"><span style="color:#c0c0c0;">0</span></td>
<td width="46" valign="top"><span style="color:#c0c0c0;">0</span></td>
<td width="69" valign="top">1</td>
<td width="56" valign="top">0</td>
<td width="52" valign="top">1</td>
</tr>
<tr>
<td width="79" valign="top">NW</td>
<td width="56" valign="top">1</td>
<td width="42" valign="top">1</td>
<td width="50" valign="top">0</td>
<td width="74" valign="top">1</td>
<td width="64" valign="top">0</td>
<td width="62" valign="top">1</td>
</tr>
</tbody>
</table>
<p>But while trouble shooting this (I had swapped LSBs with MSBs so it probably did work after all!) I came across <a href="http://mechatronics.mech.northwestern.edu/design_ref/actuators/stepper_drive1.html" target="_blank">a site</a> tying the enable lines Hi and using 4 control lines. At the poles one of the loops must have zero current flowing through it. In the above scheme this is done by setting the enable line Low and ignoring the A values. In the 4 line scheme this can be achieved by sending the same control output to both ends of the loop (ie the potential difference across the coil is 0). Then the table looks like this (including half stepping):</p>
<table border="0" cellspacing="0" cellpadding="2" width="371">
<tbody>
<tr>
<td width="101" valign="top">Direction</td>
<td width="62" valign="top">1A</td>
<td width="64" valign="top">2A</td>
<td width="73" valign="top">3A</td>
<td width="69" valign="top">4A</td>
</tr>
<tr>
<td width="105" valign="top">N</td>
<td width="66" valign="top">1</td>
<td width="67" valign="top">0</td>
<td width="75" valign="top">0</td>
<td width="71" valign="top">0</td>
</tr>
<tr>
<td width="105" valign="top">NE</td>
<td width="68" valign="top">1</td>
<td width="68" valign="top">0</td>
<td width="75" valign="top">1</td>
<td width="72" valign="top">0</td>
</tr>
<tr>
<td width="105" valign="top">E</td>
<td width="69" valign="top">0</td>
<td width="69" valign="top">0</td>
<td width="75" valign="top">1</td>
<td width="72" valign="top">0</td>
</tr>
<tr>
<td width="105" valign="top">SE</td>
<td width="69" valign="top">0</td>
<td width="69" valign="top">1</td>
<td width="75" valign="top">1</td>
<td width="72" valign="top">0</td>
</tr>
<tr>
<td width="105" valign="top">S</td>
<td width="69" valign="top">0</td>
<td width="69" valign="top">1</td>
<td width="75" valign="top">0</td>
<td width="72" valign="top">0</td>
</tr>
<tr>
<td width="105" valign="top">SW</td>
<td width="69" valign="top">0</td>
<td width="69" valign="top">1</td>
<td width="75" valign="top">0</td>
<td width="72" valign="top">1</td>
</tr>
<tr>
<td width="105" valign="top">W</td>
<td width="69" valign="top">0</td>
<td width="69" valign="top">0</td>
<td width="75" valign="top">0</td>
<td width="72" valign="top">1</td>
</tr>
<tr>
<td width="105" valign="top">NW</td>
<td width="69" valign="top">1</td>
<td width="69" valign="top">0</td>
<td width="75" valign="top">0</td>
<td width="72" valign="top">1</td>
</tr>
</tbody>
</table>
<p>That makes the schematic as follows:</p>
<p><a href="http://dmt195.files.wordpress.com/2009/01/bipolar-schematic.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" src="http://dmt195.files.wordpress.com/2009/01/bipolar-schematic-thumb.png?w=404&#038;h=347" border="0" alt="bipolar_schematic" width="404" height="347" /></a></p>
<p>&#8230;and the program as follows. Note that this program is designed to wait until it detects a serial input on input 0 (pin 17) in the form of three bytes: The first is a qualifier &#8211; 85 uniquely identifies this stepper motor &#8211; the second is the number of steps &#8211; 0-255, and the third is the speed &#8211; 0-127 is backwards, 128-255 is forwards.</p>
<pre>'Serial driven stepper motor by DMT195

symbol posrotor=b0
symbol numturns=b2
symbol speeddir=b7
symbol direc=b8
symbol pulsegap=b3
symbol counter=b4
symbol modrotor=b1
symbol outbyte=b5

posrotor = 1 'set starting position

start:    'main sequence - wait for command then move the motor
 numturns=0   'sets a default number of turns
 high 7    'reset ready flag
 serin 0,T2400,(85),numturns,speeddir 'get serial data
 gosub getspeed   'get the direction and speed
 gosub move       'perform number of steps
goto start

getspeed:
 if speeddir&gt;128 then  'find direction and store in direc (1 is +ve, 0 is -ve)
  direc=1
 else
  direc=0
 endif
 speeddir=speeddir//128
 'gets the speed 0-127 negative, 128-255 positive (higher =faster)
 pulsegap=264-2*speeddir
return

move:
 for counter=1 to numturns
  pause pulsegap      'wait before moving again (set by speed)
 if direc=1 then
  posrotor=posrotor+1 'increase/decrease the step by one
 else
  posrotor=posrotor-1
 endif
   gosub moverotor  'set the rotor position for this step
 next counter
return

moverotor:
 modrotor=posrotor//8    'find out where the rotor arm should be (1 of 8 positions)
 lookup modrotor, (0x08,0x0A,0x02,0x06,0x04,0x05,0x01,0x09), outbuyte
 '(%00001000,%00001010,%00000010,%00000110,%00000100,%00000101,%00000001,%00001001) is (0x08,0x0A,0x02,0x06,0x04,0x05,0x01,0x09) in hex
 'looks up the step from the sequence and applies it to the output pins
 pins=outbyte
return</pre>
<p>Please leave comments if you&#8217;ve found this useful or if you think I&#8217;ve made a mistake.</p>
<p>I have something to say about accessing all these devices through a single serial port too but that will have to wait for one or two more tests&#8230;</p>
<p><strong>Update: </strong>Of course this can be done with a PICAXE 08(M)  with the 4 outputs and 1 serial input to spare. The pinouts would have to change as would the respective program. If there&#8217;s enough demand for me to document this I will. Let me know in the comments. Consider using <a href="http://www.technobots.co.uk/cgi-bin/sh000002.pl?REFPAGE=http%3a%2f%2fdmt195%2ewordpress%2ecom&amp;WD=3803%2d040&amp;PN=Online_Catalogue_Project_Boards_261%2ehtml%23a3803_2d040#a3803_2d040">this little board from Technobots</a>.</p>
<p><strong>Update 2:</strong> I&#8217;ve reduced the code length by using a lookup table instead of the select/case structure. I&#8217;ve also use hex to reduce the size of that line (but included the binary values in a comment below for those that are interested).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=156&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2009/01/28/bipolar-stepper-motor-control-with-picaxe-and-l293d-chips/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/01/steppers-thumb.png" medium="image">
			<media:title type="html">steppers</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/01/image-thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/01/bipolar-schematic-thumb.png" medium="image">
			<media:title type="html">bipolar_schematic</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick screenshots of the PHP-to-Servo file running</title>
		<link>http://dmt195.wordpress.com/2009/01/23/quick-screenshots-of-the-php-to-servo-file-running/</link>
		<comments>http://dmt195.wordpress.com/2009/01/23/quick-screenshots-of-the-php-to-servo-file-running/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 23:26:17 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/2009/01/23/quick-screenshots-of-the-php-to-servo-file-running/</guid>
		<description><![CDATA[The client sees the following when entering the servo control test page: After entering some data the output of the Python script is added to the top of the page: It&#8217;s all a bit rough around the edges but it works for now&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=153&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[</p>
<p>The client sees the following when entering the <a href="http://dmt195.wordpress.com/?p=126" target="_blank">servo control test page</a>:</p>
<p><a href="http://dmt195.files.wordpress.com/2009/01/image4.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="203" alt="image" src="http://dmt195.files.wordpress.com/2009/01/image-thumb3.png?w=512&#038;h=203" width="512" border="0"></a> </p>
<p>After entering some data the output of <a href="http://dmt195.wordpress.com/2009/01/19/python-to-interface-with-the-pololu-8-channel-servo-controller/" target="_blank">the Python script</a> is added to the top of the page:</p>
<p><a href="http://dmt195.files.wordpress.com/2009/01/image5.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="203" alt="image" src="http://dmt195.files.wordpress.com/2009/01/image-thumb4.png?w=512&#038;h=203" width="512" border="0"></a> </p>
<p>It&#8217;s all a bit rough around the edges but it works for now&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=153&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2009/01/23/quick-screenshots-of-the-php-to-servo-file-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/01/image-thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/01/image-thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Edit my scripts to do home automation</title>
		<link>http://dmt195.wordpress.com/2009/01/20/edit-my-scripts-to-do-home-automation/</link>
		<comments>http://dmt195.wordpress.com/2009/01/20/edit-my-scripts-to-do-home-automation/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 23:11:07 +0000</pubDate>
		<dc:creator>dmt195</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmt195.wordpress.com/2009/01/20/edit-my-scripts-to-do-home-automation/</guid>
		<description><![CDATA[I just read about a new product which I can&#8217;t resist saying will work really well with the kind of things I&#8217;ve been doing here with servo controllers! It&#8217;s a servo controlled switch! Check it out! (via Hack-a-day and Makezine feeds)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=130&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just read about a new product which I can&#8217;t resist saying will work really well with the kind of things I&#8217;ve been doing here with servo controllers! It&#8217;s a servo controlled switch!</p>
<p><a href="http://store.oomlout.com/seswskit.html" target="_blank">Check it out!</a> (via <a href="http://hackaday.com/2009/01/19/servo-switch-assemblies/" target="_blank">Hack-a-day</a> and <a href="http://blog.makezine.com/archive/2009/01/super_simple_automated_lighting.html?CMP=OTC-0D6B48984890" target="_blank">Makezine</a> feeds)</p>
<p><a href="http://dmt195.files.wordpress.com/2009/01/image3.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="124" alt="image" src="http://dmt195.files.wordpress.com/2009/01/image-thumb2.png?w=184&#038;h=124" width="184" border="0"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmt195.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmt195.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dmt195.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dmt195.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmt195.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmt195.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmt195.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmt195.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmt195.wordpress.com&amp;blog=284165&amp;post=130&amp;subd=dmt195&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dmt195.wordpress.com/2009/01/20/edit-my-scripts-to-do-home-automation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17d7ba1b118eb94f4a7cdec668b33245?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmt195</media:title>
		</media:content>

		<media:content url="http://dmt195.files.wordpress.com/2009/01/image-thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
