<?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/"
	>

<channel>
	<title>Roo Reynolds &#187; microprinter</title>
	<atom:link href="http://rooreynolds.com/category/microprinter/feed/" rel="self" type="application/rss+xml" />
	<link>http://rooreynolds.com</link>
	<description>What&#039;s Next?</description>
	<lastBuildDate>Fri, 27 Jan 2012 22:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Microprinter Sparklines</title>
		<link>http://rooreynolds.com/2009/07/18/microprinter-sparklines/</link>
		<comments>http://rooreynolds.com/2009/07/18/microprinter-sparklines/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 09:45:28 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[microprinter]]></category>
		<category><![CDATA[sparklines]]></category>

		<guid isPermaLink="false">http://rooreynolds.com/?p=1681</guid>
		<description><![CDATA[Ever since Tom Taylor inspired quite a few of us to play with printers, I&#8217;ve been seeing what I can get mine to do. So far: barcodes were pretty quick. More recently, daily digests, twitter updates and even printing an entire a book. What&#8217;s next? Sparklines turned out to be fairly easy. I&#8217;ve written a [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since Tom Taylor <a href="http://tomtaylor.co.uk/projects/microprinter">inspired</a> quite a <a href="http://microprinter.pbwiki.com/">few of us</a> to play with printers, I&#8217;ve been seeing what I can get mine to do. So far: <a href="http://rooreynolds.com/2009/02/01/microprinter/">barcodes</a> were pretty quick. More recently, <a href="http://rooreynolds.com/2009/02/23/more-microprinting/">daily digests, twitter updates and even printing an entire a book</a>. What&#8217;s next?</p>
<p align="center"><a href="http://www.flickr.com/photos/rooreynolds/3729714988/" title="Microprinter Sparklines by Roo Reynolds, on Flickr"><img src="http://farm3.static.flickr.com/2523/3729714988_681038f47f.jpg" width="500" height="349" alt="Microprinter Sparklines" /></a></p>
<p><a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR">Sparklines</a> turned out to be fairly easy. I&#8217;ve written a basic Java library for talking to the printer, which <a href="http://github.com/rooreynolds/microprinter/">I&#8217;ve shared on Github</a>. The latest version of <em><a href="http://github.com/rooreynolds/microprinter/blob/0a369b1e5acdee6ffd55b5022887893b3c4e61b2/Microprinter.java">Microprinter.java</a></em> connects over USB to the <em><a href="http://github.com/rooreynolds/microprinter/blob/0a369b1e5acdee6ffd55b5022887893b3c4e61b2/microprinter_sketch.pde">microprinter_sketch.pde</a></em> Arduino sketch which then simply relays whatever you send to it on to the printer. </p>
<p>The Java library contains a method called <code>printSparkline()</code>, which takes a label and an array of data. Here&#8217;s how you&#8217;d use it to create the printout shown above:</p>
<blockquote><pre>
int[] sawBytes = new int[256];
int current = 0;
boolean flip = true;
for (int i = 0; i < 256; i++) {
   if ((current >= 7 &#038;&#038; flip) || (current <= 0 &#038;&#038; !flip)) flip = ! flip;
if (flip) {
   current++;
} else {
   current--;
}
   sawBytes[i] = current;
}
microprinter.printSparkline("saw............", sawBytes);

int[] sineArray = new int[256];
for (float i = 0; i < 256; i++) {
   sineArray[(int) i] = (int) (Math.sin(i / 5) * 1000);
}
microprinter.printSparkline("sin............", sineArray);
</pre>
</blockquote>
<p>Please feel free to adapt and improve. If you make any serious changes I'd love to see them, and don't forget to get involved on <a href="http://microprinter.pbwiki.com/">the microprinter wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rooreynolds.com/2009/07/18/microprinter-sparklines/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>More Microprinting</title>
		<link>http://rooreynolds.com/2009/02/23/more-microprinting/</link>
		<comments>http://rooreynolds.com/2009/02/23/more-microprinting/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 22:19:20 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[microprinter]]></category>

		<guid isPermaLink="false">http://rooreynolds.com/?p=1359</guid>
		<description><![CDATA[I&#8217;ve been experimenting a bit more with the thermal receipt printer I bought recently. Inspired by Tom&#8217;s daily digests I&#8217;ve been trying some of my own. You only get 48 characters per line using the default font. The alternative font (font B) is much denser, with 64 characters per line. The second printout is only [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been experimenting a bit more with <a href="http://rooreynolds.com/2009/02/01/microprinter/">the thermal receipt printer</a> I bought recently. Inspired by <a href="http://tomtaylor.co.uk/projects/microprinter/">Tom&#8217;s daily digests</a> I&#8217;ve been trying some of my own.</p>
<p align="center"><a title="Microprinter testing - font A by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3304914184/"><img src="http://farm4.static.flickr.com/3357/3304914184_ebbb453bd2_m.jpg" alt="Microprinter testing - font A" width="180" height="240" /></a> <a title="Microprinter testing - font B by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3304914644/"><img src="http://farm4.static.flickr.com/3309/3304914644_f96ab2e3d0_m.jpg" alt="Microprinter testing - font B" width="180" height="240" /></a></p>
<p>You only get 48 characters per line using the default font. The alternative font (font B) is much denser, with 64 characters per line. The second printout is only about an inch longer than the first one, yet has twelve additional lines of content.</p>
<p>The barcode at the bottom is a sort of physical permalink using a <a href="http://en.wikipedia.org/wiki/Code_39">Code 39</a> barcode. I&#8217;m thinking that each daily digest could also exist in a (private) blog, and a barcode (complete with text date stamp) could be a handy way in. If you&#8217;re using <a href="http://github.com/rooreynolds/microprinter/">this code</a>, or something like it, you could do this&#8230;</p>
<blockquote><p><code>setBarcodeTextPosition(barcodePrintBelow);<br />
setBarcodeHeight(45);<br />
setBarcodeWidth(barcodeMedium);<br />
printBarcode("/2009/02/22/", barcodeModeCODE39);</code></p></blockquote>
<p>I used EvoBarcode Scanner to test reading it back in.</p>
<div><a title="Barcode scanning by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3299606229/"><img src="http://farm4.static.flickr.com/3555/3299606229_37d37beee6.jpg" alt="Barcode scanning" width="500" height="446" /></a></div>
<p>More ideas for a daily digest:</p>
<ul>
<li>today&#8217;s calendar entries (like <a href="http://www.flickr.com/photos/scraplab/3195233814/">Tom&#8217;s</a>)</li>
<li>recent <a href="http://twitter.com/rooreynolds">Twitter</a> @ replies and Direct Messages</li>
<li>recent emails</li>
<li>friends birthdays via <a href="http://www.facebook.com/home.php?sk=bd">via Facebook</a></li>
<li> Radio 4 <a href="http://www.bbc.co.uk/radio4/programmes/schedules/fm.txt">schedule</a></li>
<li>anything anyone wants to send <a href="http://twitter.com/roo_printer">@roo_printer</a></li>
<li>&#8230;</li>
</ul>
<p>Tonight I hooked it up to Twitter. Every minute to checks to see what my contacts are saying and prints whatever is new since it last checked (usually 2 or 3 updates).</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="375" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="intl_lang=en-us&amp;photo_secret=cf2ccfa621&amp;photo_id=3304008085&amp;show_info_box=true" /><param name="bgcolor" value="#000000" /><param name="allowFullScreen" value="true" /><param name="src" value="http://www.flickr.com/apps/video/stewart.swf?v=68975" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="375" src="http://www.flickr.com/apps/video/stewart.swf?v=68975" allowfullscreen="true" bgcolor="#000000" flashvars="intl_lang=en-us&amp;photo_secret=cf2ccfa621&amp;photo_id=3304008085&amp;show_info_box=true"></embed></object></p>
<p>30 minutes of my friends&#8217; twitter updates equated to <a href="http://flickr.com/photos/rooreynolds/3304832724/">five feet of paper</a>. I don&#8217;t think I&#8217;ll be running this all the time but it does feel reassuring to have it whirring away in the background.</p>
<p>Another use of the Microprinter: printing books. I took the text of Cory Doctorow&#8217;s <em><a href="http://craphound.com/down/">Down and Out in the Magic Kingdom</a></em> (mainly because <a href="http://craphound.com/down/download.php">I can</a>). It has over 47,000 thousand words, and if you print it at 64 characters per line on standard 80mm thermal paper it&#8217;s about 60 feet long.</p>
<p align="center"><a title="Printing a book by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3317357442/"><img src="http://farm4.static.flickr.com/3594/3317357442_167c4a37f3_m.jpg" alt="Printing a book" width="240" height="180" /></a> <a title="Printing a book by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3316532603/"><img src="http://farm4.static.flickr.com/3616/3316532603_0475f643eb_m.jpg" alt="Printing a book" width="240" height="180" /></a></p>
<p>Printing time: about 40 minutes (pausing briefly after every paragraph to let the printer catch up). Rolling it back up again took nearly as long.</p>
<p>At <a href="http://knolleary.net/">Nick</a>&#8216;s very cunning suggestion there are perforations at every chapter (as well as every sub-chapter, which the <a href="http://craphound.com/down/Cory_Doctorow_-_Down_and_Out_in_the_Magic_Kingdom.txt">ASCII text</a> denotes using a &#8216;#&#8217; character on its own). Together this divides the book into 59 perforated segments which are about 30cm long on average. Rather than needing a bookmark I&#8217;ll just tear off the sections as I finish them.</p>
<p>It&#8217;s a portable, recyclable, tear-and-shareable book.</p>
]]></content:encoded>
			<wfw:commentRss>http://rooreynolds.com/2009/02/23/more-microprinting/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Microprinter</title>
		<link>http://rooreynolds.com/2009/02/01/microprinter/</link>
		<comments>http://rooreynolds.com/2009/02/01/microprinter/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 22:26:16 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[microprinter]]></category>
		<category><![CDATA[toys]]></category>

		<guid isPermaLink="false">http://rooreynolds.com/?p=1329</guid>
		<description><![CDATA[Inspired by Tom Taylor&#8217;s microprinter project, I&#8217;ve bought a Citizen CBM-231 thermal reciept printer of my own. I picked it up for just £20 on eBay, including shipping. It&#8217;s great. Tom uses his to print the weather, his diary, where his friends are (according to Dopplr) and more. As soon as I saw it, I [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by <a href="http://tomtaylor.co.uk/projects/microprinter">Tom Taylor&#8217;s microprinter</a> project, I&#8217;ve bought a Citizen CBM-231 thermal reciept printer of my own. I picked it up for just £20 on eBay, including shipping. It&#8217;s great.</p>
<p>Tom <a href="http://www.flickr.com/photos/scraplab/3195233814/">uses his</a> to print the weather, his diary, where his friends are (according to Dopplr) and more. As soon as I saw it, I wanted one of my own to hack with. Reciepts, printed on cheap and recyclable thermal paper, are perfect for directions, schedules, TODO lists and other impermanent bits and pieces you might want to carry while you&#8217;re offline. I also like the idea of it politely telling me what I&#8217;m up to as part of my morning waking-up ritual. I have a feeling that the soft sound printing and the &#8216;clunk&#8217; of the auto-cutting blade will be a nice start to the day.</p>
<p align="center"><a title="Citizen CBM-231 by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3242859382/"><img src="http://farm4.static.flickr.com/3263/3242859382_254550317f_s.jpg" alt="Citizen CBM-231" width="75" height="75" /></a> <a title="Citizen CBM-231 by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3242859936/"><img src="http://farm4.static.flickr.com/3340/3242859936_5f68f83470_s.jpg" alt="Citizen CBM-231" width="75" height="75" /></a> <a title="Arduino by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3244653286/"><img src="http://farm4.static.flickr.com/3362/3244653286_f98c5221e7_s.jpg" alt="Arduino" width="75" height="75" /></a> <a title="Hacked cable by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3244653966/"><img src="http://farm4.static.flickr.com/3122/3244653966_42f9294891_s.jpg" alt="Hacked cable" width="75" height="75" /></a> <a title="MAX3221 by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3244655014/"><img src="http://farm4.static.flickr.com/3309/3244655014_7ac91f455b_s.jpg" alt="MAX3221" width="75" height="75" /></a> <a title="Barcodes! by Roo Reynolds, on Flickr" href="http://www.flickr.com/photos/rooreynolds/3245622994/"><img src="http://farm4.static.flickr.com/3401/3245622994_a10660fd04_s.jpg" alt="Barcodes!" width="75" height="75" /></a></p>
<p>(<a href="http://flickr.com/photos/rooreynolds/sets/72157613168262749/">More photos</a>)</p>
<p>A few hours of soldering and programming later, and I&#8217;m quite a happy hacker. I&#8217;ve put an <a href="http://github.com/rooreynolds/microprinter/tree/">Arduino sketch on github</a> which shows how to easily print text and barcodes to the printer from an Arduino. It&#8217;s just <a href="http://github.com/rooreynolds/microprinter/tree/">a sketch</a> at the moment, but I&#8217;ll turn it into a reusable library soon.  With a few utility methods and constants, a &#8220;hello world&#8221; with two barcodes ends up looking as simple as this&#8230;</p>
<blockquote><p><code>println("Hello, World!");<br />
feed();<br />
setBarcodeTextPosition(barcodePrintBelow);<br />
setBarcodeHeight(200);<br />
setBarcodeWidth(barcodeWide);<br />
printBarcode("123456789012");<br />
feed();<br />
setBarcodeHeight(50);<br />
setBarcodeWidth(barcodeNarrow);<br />
printBarcode("123456789012");<br />
feed();<br />
cut();</code></p></blockquote>
<p>I think it can print bitmaps too. With a bit of work it should be able to print <a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&amp;topic_id=1">sparklines</a> and <a href="http://en.wikipedia.org/wiki/QR_Code">QR Codes</a>.</p>
<p>I know Tom has inspired a lot of people, and there are quite a few of these Citizen CBM-231 printers being repurposed at the moment. If you&#8217;re interested in building your own microprinter, you&#8217;ll hopefully find the wiki at <a href="http://microprinter.pbwiki.com/">microprinter.pbwiki.com</a> useful.</p>
<p><strong>Update</strong>: <a href="http://rooreynolds.com/category/microprinter/">more microprinting fun</a> including a book and sparklines.</p>
]]></content:encoded>
			<wfw:commentRss>http://rooreynolds.com/2009/02/01/microprinter/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

