<?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>(n)ion</title>
	<atom:link href="http://www.neillarion.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.neillarion.com/blog</link>
	<description>Sometimes I&#039;m retarded - this is where it ends up.</description>
	<lastBuildDate>Mon, 13 Sep 2010 05:42:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>LSDJ-MC2 Tutorial</title>
		<link>http://www.neillarion.com/blog/?p=118</link>
		<comments>http://www.neillarion.com/blog/?p=118#comments</comments>
		<pubDate>Mon, 13 Sep 2010 05:15:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=118</guid>
		<description><![CDATA[Orginally published back in 2004 I figured I better repost this because most of my traffic still comes from firestARTer Some say this is the greatest invention man has ever made, some say it&#8217;s not, others still contest that it is. Regardless, I now would like all of you to realize this electronic device can [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Orginally published back in 2004</strong></em> I figured I better repost this because most of my traffic still comes from <a href="http://www.firestarter-music.de/">firestARTer</a> <img src='http://www.neillarion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://www.neillarion.com/blog/wp-content/uploads/2010/09/sync.gif"><img src="http://www.neillarion.com/blog/wp-content/uploads/2010/09/sync.gif" alt="" title="sync" width="163" height="122" class="alignright size-full wp-image-120" /></a><br />
Some say this is the greatest invention man has ever made, some say it&#8217;s not, others still contest that it is. Regardless, I now would like all of you to realize this electronic device can be yours. All you need is a few hours and a couple of tools, oh and about $60 USD. Depending if you want to make it fancy or not, it could cost more. But my total costs where about $60 and there is no reason it should cost you any more. There are a few skills you might need before you get started. Not to worry though, Soldering is really easy! Trust me, if my girlfriend can do it, so can you! On top of that, this whole project can be accomplished without soldering on a proto-board, but for practical use one would most likely want to solder it to a board, and then put it in a case. Before we start, I want everyone putting this together to head on over to <a href='http://www.firestarter-music.de/lsdj/'>Firestarter`s home page</a> and print out the parts list, and download the schematics, and the .hex file that you`re going to need later. OK, enough talk lets get down to bussiness!<span id="more-118"></span><br />
<a href="http://www.neillarion.com/blog/wp-content/uploads/2010/09/protolabel.jpg"><img src="http://www.neillarion.com/blog/wp-content/uploads/2010/09/protolabel-300x225.jpg" alt="" title="protolabel" width="300" height="225" class="aligncenter size-medium wp-image-135" /></a><br />
Above is a photo of the proto-board completed with all the electronic components. The large and small ICs are the heart of operations. The larger one is the PIC16F268, Now when you order one of these things they don&#8217;t come programmed with all of the awesome programming that we need to get this thing to work! Firestarter said that you will be able to order them from him already programmed by him, and if this option is available at the time you are reading this, go a head and order one from him, it will save you a lot of time and money. However if you are one of those DIY persons, a good DIY programmer can be fond out on the net, try a google search. If that just looks like a whole lot more work then you want to tackle I would suggest the PIC Development Package from <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=17">Spark Fun<br />
Electronics</a>, it comes completed, and is XP compatible. I ordered the one from Spark Fun Electronics and I recommend this to anyone that wants to save some time, it was really simple to set up! All you have to do is download the latest vesion of <a href='http://www.ic-prog.com/'>IC-prog</a> open up the hex file you downloaded, select the IC that your going to program, and the hardware model (JDM if you have the one from Spark Fun), and burn that sucker.</p>
<p>All the other parts on the parts list can be found at <a href="http://www.mouser.com/">mouser.com</a> I got all my parts from a local electronical store in the town over from mine, I&#8217;m sure you will be able to find most of the parts locally, but mouser is a good place to find the Opto-coupler (and other parts) if you are having trouble finding one, or too. Also a <a href="http://www.electronics2000.co.uk/data/itemsaf/capconv.htm">converson table</a> helped me figure out what kind of compactors I needed, not all brands do measurements in Pico farads.</p>
<p>Once you get all your parts, you can start putting everything together. The best way to start is on a Proto-board, it will save you a lot of time as you will be able to check if you have the LEDs positioned correctly among other components. One tip on putting the proto-board together, you want the 20mhz crystal and the two 22pf capatiors as close as possable to the PIC, you can see how close mine are in the photo above. Once you get everything setup and working on the proto-board, its time to move to a project board, and solder all the components to the board.<br />
<a href="http://www.neillarion.com/blog/wp-content/uploads/2010/09/projecttop.jpg"><img src="http://www.neillarion.com/blog/wp-content/uploads/2010/09/projecttop-300x225.jpg" alt="" title="projecttop" width="300" height="225" class="aligncenter size-medium wp-image-124" /></a><br />
<a href="http://www.neillarion.com/blog/wp-content/uploads/2010/09/projectbottom.jpg"><img src="http://www.neillarion.com/blog/wp-content/uploads/2010/09/projectbottom-300x225.jpg" alt="" title="projectbottom" width="300" height="225" class="aligncenter size-medium wp-image-125" /></a></p>
<p>I&#8217;m no great PCB artist, and there is probably a better way to set all this up on a project board, but all I did was take the way I had it setup on the proto-board, squish it, and move it to the project board. It was that simple. the project board did take a lot more time to set up even though I had my proto-board to follow, mainly because of the soldering. I had flux on my hands for days! A few tips for the Project board: never solder directly to the two ICs, buy some dip sockets. And if you are having trouble finding a good power supply, a 9v battery works fine, I had my rechargeable 9v hooked up and synced for two hours and it didn&#8217;t skip a beat once. Oh, and a note on the photos of the project board, I&#8217;m using switches instead of buttons, it doesn&#8217;t matter witch one you use, but make sure that they are 5v when not pressed and 0v when they are being pressed. This site is really more of an overview than a actual step by step Tutorial but to go through every solder point would be murder, I&#8217;ll add more stuff as it arrives, ask any and all questions to the LSDJ-MC2  <a href="http://groups.yahoo.com/group/lsdjmc2/">group</a>. </p>
<p>Much love and respect to firestarter and the whole LSDJ Community.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=118</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pushing tweets from the web via php using OAuth</title>
		<link>http://www.neillarion.com/blog/?p=78</link>
		<comments>http://www.neillarion.com/blog/?p=78#comments</comments>
		<pubDate>Thu, 09 Sep 2010 17:22:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=78</guid>
		<description><![CDATA[At work, when I was first tasked to push some of our ads out on twitter, they used plain text authentication to get access to the accounts via the twitter API. A simple username and password was all it took to get up and running &#8211; I also used a twitter php class designed by [...]]]></description>
			<content:encoded><![CDATA[<p>At work, when I was first tasked to push some of our ads out on twitter, they used plain text authentication to get access to the accounts via the twitter API. A simple username and password was all it took to get up and running &#8211; I also used a twitter php class designed by <a href="http://www.phpclasses.org/browse/author/385729.html">Felix Oghina</a>. It was REALLY easy and took about a day to design a script that ran every hour to push our ads to twittwer <em>with help from Felix&#8217;s twitter class of course</em>. Call me a spammer if you like, no one forced <em>you</em> to subscribe. Anyway&#8230; everything was going great, another set-it-and-forget-it Ron Popeil project completed. But then, on September 1st 2010 my script started throwing errors from the cron daemon. What I failed to realize ahead of time was that twitter was changing the way they authenticate users. They&#8217;re now using <a href="http://oauth.net/">Oauth</a>. Basically, a PGP style public and private key system to authenticate users. In this post I&#8217;ll walk you through the steps required to change your scrips/website over to oauth &#8211; because if you&#8217;re like me, at first glance this task seems overwhelming. I just feel bad for all of you who were using arduino and twitter&#8230; <span id="more-78"></span></p>
<p>There are some great resources to get you started on the twitter home page under the API section. Since you&#8217;ll need to get a key and stuff &#8211; I&#8217;d recommend at least logging into twitter, and then checking out <a href="http://dev.twitter.com/pages/auth#register">this page</a>. It has a nice visual representation of how the API works. Take a look at that, if you don&#8217;t understand something don&#8217;t worry it doesn&#8217;t matter.</p>
<p>The absolute first thing you&#8217;ll need to do to get started, is to get a key from twitter. You can do this by logging into twitter, and then <a href="http://dev.twitter.com/apps/new">registering a new twitter application</a>. Just fill out a bunch of crap, or make it real &#8211; like most things appearing to have officiality, in reality it doesn&#8217;t matter. When filling out the application page make sure you pay attention to the <em>Default Access type</em>. I need read and write because I&#8217;m pushing code to tweets (you can change this later if you missed it). Once you register your app, you&#8217;ll get some important items: Consumer key, and Consumer secret. Copy those down, or leave the page open because we&#8217;re going to be using those in a second. You&#8217;ll also need you&#8217;re Access Token and Access Token Secret to push tweets from the web. You can find those by clicking on My Access Token on the right hand side of the page when viewing your app page.</p>
<p>Now that you have your keys we can start getting down to business. You&#8217;ll need to pick a php library to help you push/pull the tweets you want, or you can design your own. I&#8217;m not going to design my own because I don&#8217;t believe in reinventing the wheel when it comes to code unless you are trying to learn something, and fuck learning! Design your own if you want to though &#8211; doesn&#8217;t seem too complicated. <a href="http://dev.twitter.com/pages/oauth_libraries#php">Twitter lists some php libraries</a>, for this walk though <a href="http://github.com/themattharris/tmhOAuth/">I&#8217;ll be using this one</a> by <a href="http://github.com/themattharris">Matt Harris</a>. Download the class and upload it to your server. He, just lists the source, so you&#8217;ll have to save it to a php file, name it tmhOAuth.php so you don&#8217;t have to change the scrips. Once uploaded it&#8217;s time to setup everything. The keys you just got go into a php file &#8211; you can see <a href="http://github.com/themattharris/tmhOAuth/tree/master/examples/">Matt&#8217;s examples</a> for an idea heres Matt&#8217;s tweet example:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

require 'tmhOAuth.php';
$tmhOAuth = new tmhOAuth(array(
  'consumer_key'    =&gt; '',
  'consumer_secret' =&gt; '',
  'user_token'      =&gt; '',
  'user_secret'     =&gt; '',
));

$tmhOAuth-&gt;request('POST', $tmhOAuth-&gt;url('statuses/update'), array(
//'status' =&gt; utf8_encode($ message)
  'status' =&gt; 'your tweet goes here' //changed this nlarion
));

if ($tmhOAuth-&gt;response['code'] == 200) {
  $tmhOAuth-&gt;pr(json_decode($tmhOAuth-&gt;response['response']));
} else {
  $tmhOAuth-&gt;pr(htmlentities($tmhOAuth-&gt;response['response']));
}

?&gt;
</pre>
<p>It&#8217;s pretty straight forward the 4 keys you&#8217;ve been gathering go into consumer_key, consumer_secret, user_token, and user_secret respectively. I&#8217;m going to be using a var where &#8220;your tweet goes here&#8221; is. It will probably end up being something like: XML->$var->tweet. You will want to change it to fit your needs unless you&#8217;re going to hand code your tweets each time &#8211; which would totally defeat the point.</p>
<p>So far &#8211; you&#8217;ve setup an app, got some keys, and made your first tweet (hopefully). Next we&#8217;ll be using Matt&#8217;s auth.php example to allow other twitter users to make tweets from the same app page. You might want to do this if you have multiple websites that each have their own XML feeds, and twitter accounts, but you only want to use one app to do everything. You could just repeat the steps above for the individual websites/twitter accounts &#8211; but I have 30+, and I want to minimize as many steps as possible and keep it all in one cron job.</p>
<p>Load the auth.php on your server and make sure to put your consumer_key and Consumer_secret in the correct place. Then load the page up in your web browser &#8211; we&#8217;re going to use this page to grant access to the app for the other twitter clients. Once the page is up and running it should look like this:<br />
<a href="http://www.neillarion.com/blog/wp-content/uploads/2010/09/twitterauthpage.png"><img src="http://www.neillarion.com/blog/wp-content/uploads/2010/09/twitterauthpage.png" alt="" title="twitterauthpage" width="258" height="129" class="alignnone size-full wp-image-111" /></a></p>
<p>Click on Allow Application (callback), that will bring you to twitter where you can login and approve the app you just made, or if you recently logged in it will just ask you to allow it. Neat huh? Once you allow the app, it will kick you back to auth.php &#8211; but this time it will display some information about the twitter account you just authorized, which is completely worthless for what we&#8217;re doing. What your going to need to do is add these lines of code to the auth.php file to get the Access Token and Access Token Secret:</p>
<pre class="brush: php; title: ; notranslate">
// already got some credentials stored?
} elseif ( isset($_SESSION['access_token']) ) {
  $tmhOAuth-&gt;config['user_token']  = $_SESSION['access_token']['oauth_token'];
  $tmhOAuth-&gt;config['user_secret'] = $_SESSION['access_token']['oauth_token_secret'];
 //this is the part to add
print &quot;user_token: &quot; . $_SESSION['access_token']['oauth_token'];
  print &quot;&lt;br /&gt;&quot;;
  print &quot;user_secret: &quot; . $_SESSION['access_token']['oauth_token_secret'];
//done adding stuff
  $tmhOAuth-&gt;request('GET', $tmhOAuth-&gt;url('account/verify_credentials'));
  $tmhOAuth-&gt;pr(json_decode($tmhOAuth-&gt;response['response']));
</pre>
<p>It&#8217;s really simple &#8211; you&#8217;re just adding code to print the Access Token and the Access Token Secret to the screen so you can save them to get a temp token and tweet with that user. Save and reload the page to get the new values. Copy and paste those two values back into the tweet example we used above (user_token and user_secret respectively) and run it, you&#8217;ll tweet out with the user you just allowed.</p>
<p>That&#8217;s it! </p>
<p>Store your access tokens somewheres so you can call them later. SQL would be a good place rather than plain text, but I&#8217;ll leave that up to you.</p>
<p>I&#8217;ll explain basically what&#8217;s happening with the scrip to get your access for other users, if you&#8217;re interested but you don&#8217;t need to know this&#8230; Once you have authorized your app with another twitter account you get a few important values. These are the Access Token and Access Token Secret. You need those two values to get temp access to be able to tweet for an authorized user. You use those two values (and some others provided by Matt&#8217;s tmhOauth.php) along with your consumer_key and consumer_secret to ask twitter for temp access to tweet. That access expires, but since you have the Access Token and Secret you can ask for temp access any time you want. If you want to know what exactly is going on behind the scenes, <a href="http://dev.twitter.com/pages/auth#auth-request">twitter has a great page about it</a>.</p>
<p>In closing, we&#8217;ve gone though all the steps to get on to twitter and your scrips/websites should be up and running by now &#8211; or at least the framework. I just have a final thought about twitter&#8217;s new authentication process: It&#8217;s kind of like while I was dating you twitter, you wanted it bear back (and who could blame you), but now that we&#8217;re married, I have to ware a rubber? &#8211; <em>What&#8217;s up with that?</em></p>
<p>All the code in this article falls under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0 License</a>, and credit where credit is due thanks to <a href="http://github.com/themattharris">Matt Harris</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=78</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>LED Follow up..</title>
		<link>http://www.neillarion.com/blog/?p=54</link>
		<comments>http://www.neillarion.com/blog/?p=54#comments</comments>
		<pubDate>Sun, 18 Jul 2010 00:30:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=54</guid>
		<description><![CDATA[This project is on hold for the time being&#8230; Working on Google maps, and a few other projects I&#8217;m getting ready to share.]]></description>
			<content:encoded><![CDATA[<p>This project is on hold for the time being&#8230; Working on Google maps, and a few other projects I&#8217;m getting ready to share.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps API v3 &#8211; Custom Markers</title>
		<link>http://www.neillarion.com/blog/?p=57</link>
		<comments>http://www.neillarion.com/blog/?p=57#comments</comments>
		<pubDate>Thu, 15 Apr 2010 23:25:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=57</guid>
		<description><![CDATA[Lately I&#8217;ve been doing work with the Google Maps API. This is part of an on going project DollarBeerNite. It&#8217;s a side project &#8211; like all my projects &#8211; so it will probably be sometime until I finish. But after everything is done, I&#8217;ll be adding more posts if anyone wants to make their own [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been doing work with the Google Maps API.  This is part of an on going project <a href="http://www.dollarbeernite.com">DollarBeerNite</a>. It&#8217;s a side project &#8211; like all my projects &#8211; so it will probably be sometime until I finish. But after everything is done, I&#8217;ll be adding more posts if anyone wants to make their own style site. I got my influence from <a href="http://www.kayak.com/explore/">Kayak&#8217;s</a> explore site. Also most of what I leared about custom icons is from here <a href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website">Stiern.com</a> it&#8217;s a great site with lots of tutorials &#8211; check it out. In this post I&#8217;m just going to talk about Custom Markers though, how you can make them and call them just like in Kayak&#8217;s explore site.<span id="more-57"></span></p>
<p>First, you&#8217;re going to need to signup for a <a href="http://code.google.com/apis/maps/signup.html">Google Maps API Key</a>. Once you have your key you can add the API to your site like this in the head section of your page:</p>
<pre class="brush: plain; title: ; notranslate">
    &lt;script src=&quot;http://maps.google.com/maps?file=api&amp;v=3&amp;sensor=true&amp;key=your_key_goes_here&quot;
            type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>Part of the agreement to use Google&#8217;s API is that you have to keep your site free, meaning you can&#8217;t charge for access. If you want to charge for access (iphone apps etc) &#8211; your going to have to purchase a license from Google, they start at 15g&#8217;s so&#8230; yeah&#8230; keep that in mind.</p>
<p>Now for some custom icons:<br />
<div id="attachment_62" class="wp-caption center" style="width: 310px"><a href="http://www.neillarion.com/blog/wp-content/uploads/2010/08/Untitled.jpg"><img src="http://www.neillarion.com/blog/wp-content/uploads/2010/08/Untitled-300x190.jpg" alt="custom google maps icon" title="Untitled" width="300" height="190" class="size-medium wp-image-62" /></a><p class="wp-caption-text">custom google maps icon</p></div></p>
<p>First, you want to declare your vars for the new icon, you put this outside of your load() function so another function on the page can access it. Also, FYI this is all in javascript&#8230;</p>
<pre class="brush: jscript; title: ; notranslate">
    var beericon = new GIcon(); //sets the man var
    beericon.image = 'image.png'; //locates the image
    beericon.shadow = 'images/shadow.png'; //shadow if you want a shadow - transparent png
    beericon.iconSize = new GSize(70, 50);
    beericon.shadowSize = new GSize(90, 50);
    beericon.iconAnchor = new GPoint(35, 50);
    beericon.infoWindowAnchor = new GPoint(35, 0);
</pre>
<p>Those are the major parts to any custom icon. You can fool around with those settings if you want to change the size and image locations. We&#8217;ll call those vars down in the load() function later.</p>
<p>Next, you&#8217;re going to want to load a default javascript function to start the maps object in your site, you can do this in the body.
<pre class="brush: plain; title: ; notranslate">  &lt;body onload=&quot;load()&quot; &gt;</pre>
<p> Pretty, simple right? You&#8217;re just telling the page to load the load() function on load. Enough loads for ya?! <img src='http://www.neillarion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, in the load function you&#8217;re going to want to start a map, and load a location, and display the custom icon.</p>
<pre class="brush: jscript; title: ; notranslate">
	var usa = new google.maps.LatLng(37.0902400,-95.7128910); //locates to the USA
 function load() {
	map = new google.maps.Map(document.getElementById(&quot;map&quot;)); //sets map to the map element you have to have a &lt;map&gt; element in your html code
	map.setUIToDefault(); //just default UI
	map.setCenter(usa,4);	//usa call the above var, and 4 is the zoom level.
	var point = new GLatLng(37.0902400,-95.7128910); //you need a lat lng for the marker
    map.addOverlay(new GMarker(point, {icon:beericon})); // takes the vars from beericon and the lat lng from point and pushes it to the map
} //end load()
</pre>
<p>The final thing to do is to display custom icons for each location, in the case of Kayak they put custom prices in every icon. You could make 2,000 different icons if you wanted. Or you could get PHP to do it for you using the GD library, great tutorial <a href="http://www.phptutorial.info/learn/create_images/">here</a>. Of course you&#8217;d have to make the php script &#8211; but that&#8217;s pretty simple. More to come&#8230;</p>
<p>Here is the project up and running:<br />
<iframe src="http://neillarion.com/ffffuuuu/index3.php" frameborder="0" style="height:300px;width:500px;">Please upgrade your browser</iframe>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=57</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new LED hope&#8230;</title>
		<link>http://www.neillarion.com/blog/?p=31</link>
		<comments>http://www.neillarion.com/blog/?p=31#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:32:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=31</guid>
		<description><![CDATA[I&#8217;ve looked into LED matrices and it looks like most of the DIY ones (one, two) use a micro-controller to operate several shift registers. Most shift registers are capped at 8 outputs, and that just seems silly to me, so I&#8217;ve looked into getting a dev board for the STP16CPC05 &#8211; Low voltage 16-bit constant [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve looked into <a href="http://www.instructables.com/id/LED-Dot-Matrix-Display/">LED matrices</a> and it looks like most of the DIY ones (<a href="http://littlebird.posterous.com/multiple-peggy2s-showing-serial-video-via-the">one</a>, <a href="http://www.nerdkits.com/videos/multipanel_spi_ledarray/">two</a>) use a micro-controller to operate several <a href="http://www.arduino.cc/en/Tutorial/ShiftOut">shift registers</a>. Most shift registers are capped at 8 outputs, and that just seems silly to me, so I&#8217;ve looked into getting a dev board for the <a href="http://www.st.com/stonline/products/families/logic_signal_switch/led_vfd_drivers/stp16cpc05.htm">STP16CPC05</a> &#8211; Low voltage 16-bit constant current LED sink driver from STMicroelectronics. <span id="more-31"></span></p>
<p>Mine is on the way in the mail, there were only two in-stock at <a href="http://parts.digikey.com/1/parts/1466088-board-eval-based-stp16cp05-steval-ill003v2.html">digi key</a> at the time of writing this, so I hope I can help you decide if the STP16cpc05 is the way to go for your next DIY LED matrix in future posts.</p>
<p>My plan is to design a large LED matrix (8&#215;24), that will be easy for one to reproduce. I&#8217;ll supply the code, and the pcb design &#8211; it will be up to you to build <img src='http://www.neillarion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Wish me luck!</p>
<p>Neil</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=31</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Sphere Robot</title>
		<link>http://www.neillarion.com/blog/?p=24</link>
		<comments>http://www.neillarion.com/blog/?p=24#comments</comments>
		<pubDate>Mon, 04 Jan 2010 07:21:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=24</guid>
		<description><![CDATA[Sphere, or Ball Robots are all the rage. Here is a sneak peak of my v1.0. I&#8217;ll talk a little bit about the details before I post all the pictures and code. First, I guess I should list all the parts. If you&#8217;re interested: Two Gerbil plastic balls (one large and one small) One arduino [...]]]></description>
			<content:encoded><![CDATA[<p>Sphere, or Ball Robots are all the <a href="http://www.popularmechanics.com/science/robotics/4332921.html">rage</a>. Here is a sneak peak of my v1.0.<a href="http://www.flickr.com/photos/dj_ntd/4182128993/ "><img class="alignright" title="Sphere Robot!" src="http://farm3.static.flickr.com/2518/4182128993_3d1b82f89d_t.jpg" alt="" width="100" height="75" /></a><span id="more-24"></span></p>
<p>I&#8217;ll talk a little bit about the details before I post all the pictures and code. First, I guess I should list all the parts. If you&#8217;re interested:</p>
<ul>
<li>Two Gerbil plastic balls (one large and one small)</li>
<li>One <a href="http://www.arduino.cc/" target="_blank">arduino</a></li>
<li>two servos from <a href="http://www.hvwtech.com/products_view.asp?ProductID=116">HVW</a></li>
<li>An accelerometer, <a href="http://www.arduino.cc/playground/Main/ParallaxH48C" target="_blank">Parallax H48C</a></li>
<li>I used a 7805 to get 5v to power everything.</li>
<li>Wire, and a terminal connector.</li>
<li>Solder, hot-glue&#8230; etc, etc..</li>
</ul>
<p>I didn&#8217;t take any photos of the build process, which is why I&#8217;m down playing this as a tutorial, this is just a preview.</p>
<p><a href="http://www.flickr.com/photos/dj_ntd/4182891968/ "><img class="alignnone" src="http://farm5.static.flickr.com/4010/4182891968_62434942ab_t.jpg" alt="" width="100" height="75" /></a><a href="http://www.flickr.com/photos/dj_ntd/4182894108/ "><img class="alignnone" src="http://farm3.static.flickr.com/2631/4182894108_00f69d56f9_t.jpg" alt="" width="100" height="75" /></a><a href="http://www.flickr.com/photos/dj_ntd/4182131759/ "><img class="alignnone" src="http://farm3.static.flickr.com/2589/4182131759_525c54155b_t.jpg" alt="" width="100" height="75" /></a><a href="http://www.flickr.com/photos/dj_ntd/4182128577/ "><img class="alignnone" src="http://farm3.static.flickr.com/2763/4182128577_8f93f4dbdf_t.jpg" alt="" width="100" height="75" /></a></p>
<p>I&#8217;ll talk a little bit about the code, then talk about things I wish I would have done.  Somethings to consider before looking at the code:  First, I use two servos, one gets sent the direct corodinates to move to, and the other gets sent the exact opposit because it&#8217;s mounted backwards, and when you say &#8220;go forward&#8221; to one servo, you have to say &#8220;go backward&#8221; to the other to get it the entire ball to move forward (yeah, I know this is retarded).</p>
<p>(this is where the code will go, I have it on my other computer)</p>
<p>What I wish I would have done to make the build better: First, I would have came up with a better way to attach the inner ball to the outside, and would have done so by only using one servo. For my next build I plan on using shock absorbers to connect the two balls, which should give the build a more professional and durable look, and avoid the need to rip apart another Atari cartridge. Oh, and I would never use Ni-cads again &#8211; never. Li-po all the way.</p>
<p>That&#8217;s all for now.</p>
<p>Sill dreaming up v2.0&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=24</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIY indoor Garden</title>
		<link>http://www.neillarion.com/blog/?p=14</link>
		<comments>http://www.neillarion.com/blog/?p=14#comments</comments>
		<pubDate>Mon, 14 Dec 2009 00:35:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.neillarion.com/blog/?p=14</guid>
		<description><![CDATA[About 3 months ago I ran into an article in ReadyMade mag, it had a simple sketch that basically showed water bottles turned upside down in a sort of drip system. This drip system fed plants, and pumped water via a cheap water pump from a reservoir. I updated the version a little &#8211; added [...]]]></description>
			<content:encoded><![CDATA[<p>About 3 months ago I ran into an article in ReadyMade mag, it had a simple sketch that basically showed water bottles turned upside down in a sort of drip system. This drip system fed plants, and pumped water via a cheap water pump from a reservoir. I updated the version a little &#8211; added lights, and a part to empty out the waste water. I&#8217;ve learned a little along the way,  so &#8211; if your an apartment dweller like I am and want a garden of your own, read along and you might learn something.<span id="more-14"></span>First, I started by collecting the water bottles. I used five 1.5L Crystal Geyser bottles. Then, I cut off the bottoms:</p>
<div class="wp-caption aligncenter" style="width: 112px"><a href="http://www.flickr.com/photos/dj_ntd/4182135659/ "><img title="Bottle bottoms cut off" src="http://farm3.static.flickr.com/2616/4182135659_42dca5239c_t.jpg" alt="" width="102" height="76" /></a><p class="wp-caption-text">ouch my bottom</p></div>
<p>After I was done cutting the bottoms off I prepped the end caps with an old T-shirt and rubber band:</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://www.flickr.com/photos/dj_ntd/4182136507/ "><img class=" " title="Prepping the end caps" src="http://farm5.static.flickr.com/4046/4182136507_1c81498aca_t.jpg" alt="cover up that hole" width="100" height="75" /></a><p class="wp-caption-text">cover up that hole</p></div>
<p style="text-align: left;">Once finished doing this to all five of the water bottles, I stared assembling them with hot glue:</p>
<p style="text-align: left;">
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://www.flickr.com/photos/dj_ntd/4182898314/"><img class=" " title="Hot glue on the bottles" src="http://farm5.static.flickr.com/4001/4182898314_1db0aa5075_t.jpg" alt="Hotted Glue" width="100" height="75" /></a><p class="wp-caption-text">Hotted Glue</p></div>
<p>Now you should have your tower starting to take shape. What I did next was cut a hole in the side just above where the you want the dirt to settle, this allows air to get inside, access to add dirt and other crap should you need to. One thing to consider when cutting these access holes is that cutting into the plastic is going to make it less structurally sound &#8211; I had to add supports to the holes I cut because I made them too big.</p>
<p>Alright, your going to need something to stand your tower in &#8211; something to support it. This is where my design and the one from the ReadyMade differ. Their design calls for a 10 gallon jug. Like the kind that windshield wiper fluid comes in &#8211; you don&#8217;t want to use one of those, but that&#8217;s the simplest thing I can think to relate it to. I just used a bucket, both have their merits &#8211; the bucket is easy to empty &#8211; my cat likes to drink out of it. So, go with which ever, but the one thing I have to recommend when putting it up is to account for the fact that it&#8217;s going to be heavy with all that dirt in the individual containers. It might tilt to one side, and could become unstable. Just be careful when you put it up. Once you got it up, you can add water, I put a pump in the bucket and have it on a timer to water every day. You could go all nuts and add an arduino and a way to sense moisture, but I think that would be kinda nuts for this unless you were to expand the setup with more columns.</p>
<p>Check it out &#8211; finished:</p>
<div class="wp-caption alignnone" style="width: 85px"><a href="http://www.flickr.com/photos/dj_ntd/4183375993/"><img class=" " title="Finished indoor garden" src="http://farm5.static.flickr.com/4009/4183375993_ab4b629c66_t.jpg" alt="Finished!" width="75" height="100" /></a><br />
<p class="wp-caption-text">Finished!  </p></div>
<div class="wp-caption alignnone" style="width: 85px"><a href="http://www.flickr.com/photos/dj_ntd/4183288165/ "><img class=" " title="Finished with LED lights installed" src="http://farm3.static.flickr.com/2498/4184049990_60b42b0fd9_t.jpg" alt="Finished with LED lights installed" width="75" height="100" /></a><p class="wp-caption-text">Finished with LED lights installed</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.neillarion.com/blog/?feed=rss2&#038;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

