<?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>A world in dk(decay/denmark) &#187; ps2 mouse</title>
	<atom:link href="http://rotand.dk/blog/tag/ps2-mouse/feed/" rel="self" type="application/rss+xml" />
	<link>http://rotand.dk/blog</link>
	<description>Just another pointless weblog</description>
	<lastBuildDate>Sat, 27 Jun 2009 19:17:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Arduino ps2 mouse</title>
		<link>http://rotand.dk/blog/2007/11/21/arduino-ps2-mouse/</link>
		<comments>http://rotand.dk/blog/2007/11/21/arduino-ps2-mouse/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 21:34:16 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[mousewheel]]></category>
		<category><![CDATA[ps2 mouse]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/2007/11/21/arduino-ps2-mouse/</guid>
		<description><![CDATA[
I have been tinkering a bit with the arduino the last couple of days. Mostly small experiments with some of the junk had around, after some frustrations with a circuit for a rotary encoder, i &#8220;gave up&#8221; and tried hooking up a ps2 mouse. There are a  nice tutorial at the arduino playground. It [...]]]></description>
			<content:encoded><![CDATA[<p><a title="arduino mouse and anoying encoder" href="http://www.rotand.dk/blog/wp-content/arduinomouse.jpg"><img src="http://www.rotand.dk/blog/wp-content/arduinomouse.jpg" alt="arduino mouse and anoying encoder" hspace="10" vspace="10" align="right" /></a><br />
I have been tinkering a bit with the arduino the last couple of days. Mostly small experiments with some of the junk had around, after some frustrations with a circuit for a rotary encoder, i &#8220;gave up&#8221; and tried hooking up a ps2 mouse. There are a <a href="http://www.arduino.cc/playground/ComponentLib/Ps2mouse"> nice tutorial</a> at the arduino playground. It seemed complicated to interface with a mouse this way. But it proved to be so much easier than trying to build a circuit. The software coding is so much easier than the electrical circuits.</p>
<p>It was a matter of connecting 4 wires and uploading the code to get it running. But then i found out that there wasn&#8217;t support for the mouse-wheel, so i googled the datasheet for the IC, and started hacking. I ended up getting the mousewheel to function and getting output for the buttons. Along the way I refactored some of code, in order to better understand what was happening.</p>
<p>I still haven&#8217;t figured out what I should use the mouse for, but it was a fun hack.</p>
<p>Here is the sourcecode, if you want to try something with it : <a title="ps2mouse for arduino" href="http://rotand.dk/blog/wp-content/ps2mouse.pde">ps2mouse for arduino</a></p>
<p>I tried to make nice comments so it should be very straightforward to work with. As mentioned a haven&#8217;t made most of the code, just some additions and refactoring.</p>
<p>The mouse and the annoying encoder i couldn&#8217;t build a circuit for. It can be attached to a motor where there are a slotted wheel.</p>
<p>(21 nov updated code)</p>
<p style="clear: both">
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/blog/2007/11/21/arduino-ps2-mouse/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
