<?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>Hack a Day &#187; bike</title>
	<atom:link href="http://hackaday.com/tag/bike/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackaday.com</link>
	<description>Fresh hacks every day</description>
	<lastBuildDate>Fri, 10 Feb 2012 06:18:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hackaday.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/5560f98f805877b0e332f191cb9e0af3?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Hack a Day &#187; bike</title>
		<link>http://hackaday.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hackaday.com/osd.xml" title="Hack a Day" />
	<atom:link rel='hub' href='http://hackaday.com/?pushpress=hub'/>
		<item>
		<title>A bicycle built for&#8230; Siamese twins?</title>
		<link>http://hackaday.com/2012/01/07/a-bicycle-built-for-siamese-twins/</link>
		<comments>http://hackaday.com/2012/01/07/a-bicycle-built-for-siamese-twins/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 15:01:07 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[tandem]]></category>
		<category><![CDATA[welding]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=64961</guid>
		<description><![CDATA[This project really puts an end to arguing over who has to ride in the back of the tandem bicycle. We challenge you not to smile while viewing the maiden voyage that [Carlos] and his daughter take on this side-by-side bicycle. The video can be found after the break. It certainly makes a bit more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=64961&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-64962" title="side-by-side-bicycle" src="http://hackadaycom.files.wordpress.com/2012/01/side-by-side-bicycle.jpg" alt="" width="470" height="400" /></p>
<p>This project really puts an end to arguing over who has to ride in the back of the tandem bicycle. We challenge you not to smile while viewing the maiden voyage that [Carlos] and his daughter take on <a href="http://www.instructables.com/id/Side-by-Side-Bicycle">this side-by-side bicycle</a>. The video can be found after the break.</p>
<p>It certainly makes a bit more sense than <a href="http://hackaday.com/2010/06/23/another-take-on-a-bicycle-built-for-two/">an over-under tandem</a>, and the fabrication process is really quite manageable. This requires alterations to the seat, handle bars, and pedals, but the majority of the bike (frame, gearing, fork, wheels) is unaltered.</p>
<p>The cranks have been replaced by a custom welded cam mechanism that reminds us of how the pedals on a paddle boat work. Both riders must pedal at the same time and rate. To give each a place to sit the seat post was converted into a T bar to host saddles to the right and left of the frame. Finally, the handle bars are the most complicated of all. Extra framing was welded onto both sides for the front tube to provide a place to mount two pair of handle bars. One of them is fixed in place, the other can be turned, using a lever mechanism to steer the front fork.</p>
<p>It looks a bit awkward to get started, but once both riders are up it seems quite stable.</p>
<p><span id="more-64961"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2012/01/07/a-bicycle-built-for-siamese-twins/"><img src="http://img.youtube.com/vi/ln_oGeGZ2lA/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/64961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/64961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/64961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/64961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/64961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/64961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/64961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/64961/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=64961&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2012/01/07/a-bicycle-built-for-siamese-twins/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2012/01/side-by-side-bicycle.jpg" medium="image">
			<media:title type="html">side-by-side-bicycle</media:title>
		</media:content>
	</item>
		<item>
		<title>Building a 1300 lumen bike light</title>
		<link>http://hackaday.com/2011/11/28/building-a-1300-lumen-bike-light/</link>
		<comments>http://hackaday.com/2011/11/28/building-a-1300-lumen-bike-light/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 17:16:26 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[led hacks]]></category>
		<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[cree]]></category>
		<category><![CDATA[heat sink]]></category>
		<category><![CDATA[light]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=62133</guid>
		<description><![CDATA[[Brainiac27] isn&#8217;t going to let the absence of sun prevent him from biking. He has no trouble lighting his path with this 1300 Lumen bike light he built. The light source is a 3-up star by Cree. It puts off a lot of light, but also generates quite a bit of heat which is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62133&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-62134" title="building-a-1300-lumen-bike-light" src="http://hackadaycom.files.wordpress.com/2011/11/building-a-1300-lumen-bike-light-e1322500111459.jpg" alt="" width="470" height="352" /></p>
<p>[Brainiac27] isn&#8217;t going to let the absence of sun prevent him from biking. He has no trouble lighting his path with <a href="http://www.instructables.com/id/1300-Lumen-Bike-Light">this 1300 Lumen bike light he built</a>.</p>
<p>The light source is a 3-up star by Cree. It puts off a lot of light, but also generates quite a bit of heat which is the reason for that large heat sink. It is meant to be used with a CPU but works well for this purpose thanks to the adhesive thermal paste used to unite the two parts.</p>
<p>The mounting bracket is a custom job, bent from 1&#8243; by 1/8&#8243; aluminum bar. [Brainiac27] had some issues with length the first time he tried making it. For his second attempt he started with an overly long piece, made the bends from the center out, and only made cuts once the bends were all completed. The bracket makes it easy to mount to his bike, with the battery stored in a bike bottle and a remote switch (with attaches to the jack you can see on the project box above) hidden underneath one of the brake hoods.</p>
<p>The intensity of this light nearly doubles <a href="http://hackaday.com/2009/09/03/700-lumen-led-bike-lamp/">one of our other favorites</a>.</p>
<br />Filed under: <a href='http://hackaday.com/category/led-hacks/'>led hacks</a>, <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/62133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/62133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/62133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/62133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/62133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/62133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/62133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/62133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62133&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/11/28/building-a-1300-lumen-bike-light/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/11/building-a-1300-lumen-bike-light-e1322500111459.jpg" medium="image">
			<media:title type="html">building-a-1300-lumen-bike-light</media:title>
		</media:content>
	</item>
		<item>
		<title>Washing machine powered bike</title>
		<link>http://hackaday.com/2011/10/24/washing-machine-powered-bike/</link>
		<comments>http://hackaday.com/2011/10/24/washing-machine-powered-bike/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 17:01:07 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[electric]]></category>
		<category><![CDATA[washing machine]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=59484</guid>
		<description><![CDATA[[Ameres Valentin] was looking for a less expensive way to get around after spending in excess of 100 Euros a month on public transportation in Munich. His solution is an electric bicycle powered by a washing machine motor. It&#8217;s a 300 Watt motor that runs on 24 Volts, capable of around 3000 RPM. We&#8217;re used [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=59484&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-59486" title="washing-machine-powered-bike" src="http://hackadaycom.files.wordpress.com/2011/10/washing-machine-powered-bike-e1319463142418.jpg" alt="" width="470" height="351" /></p>
<p>[Ameres Valentin] was looking for a less expensive way to get around after spending in excess of 100 Euros a month on public transportation in Munich. His solution is <a href="http://diytechgadgets.blogspot.com/2011/10/electric-bycicle.html">an electric bicycle powered by a washing machine motor</a>. It&#8217;s a 300 Watt motor that runs on 24 Volts, capable of around 3000 RPM. We&#8217;re used to seeing hub motors or chain drives on electric vehicle hacks, but it looks like [Ameres] is using a flywheel on the motor shaft to drive the rear wheel of the bike through direct contact.</p>
<p>Inside the saddle bag you&#8217;ll find two 12 volt 12 amp hour sealed lead acid batteries which are used in series. It looks like he charges these with a wall wart (that we think might use a switching power supply) modified with a couple of large alligator clamps. A push button mounted on the handlebars makes it go.We wonder if he&#8217;s still able to pedal when the batteries are running low? We don&#8217;t see a way to disengage the motor from the rear wheel so we&#8217;d bet this is something of an issue. Then again, if that charge actually works you&#8217;re never far from an opportunity to top off the batteries.</p>
<p>Check out a quick clip of the motor spinning the wheel embedded after the break.</p>
<p><span id="more-59484"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/10/24/washing-machine-powered-bike/"><img src="http://img.youtube.com/vi/3vecOv8nHsc/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/59484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/59484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/59484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/59484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/59484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/59484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/59484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/59484/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=59484&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/10/24/washing-machine-powered-bike/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/10/washing-machine-powered-bike-e1319463142418.jpg" medium="image">
			<media:title type="html">washing-machine-powered-bike</media:title>
		</media:content>
	</item>
		<item>
		<title>[Clement] sees the cargo bike and raises a bicycle cargo trailer</title>
		<link>http://hackaday.com/2011/10/02/clement-sees-the-cargo-bike-and-raises-a-bicycle-cargo-trailer/</link>
		<comments>http://hackaday.com/2011/10/02/clement-sees-the-cargo-bike-and-raises-a-bicycle-cargo-trailer/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 20:01:28 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[cargo]]></category>
		<category><![CDATA[trailer]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=57427</guid>
		<description><![CDATA[[Clement] and his friends were going on a long bike tour and needed a way to carry their gear along with them. They set to work and managed to build this cargo trailer from mostly reused materials. The only part of this trailer that is reused junk is the connection mechanism that lets you attach [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=57427&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-57428" title="bike-luggage-trailer" src="http://hackadaycom.files.wordpress.com/2011/10/bike-luggage-trailer-e1317570011830.jpg" alt="" width="470" height="353" /></p>
<p>[Clement] and his friends were going on a long bike tour and needed a way to carry their gear along with them. They set to work and managed to <a href="http://clemworkbench.fr/doku.php?id=en:remorque">build this cargo trailer from mostly reused materials</a>.</p>
<p>The only part of this trailer that is reused junk is the connection mechanism that lets you attach it to just about any bike. That was made (presumably in a machine shop) to act as a removable pipe clamp, making it pretty quick to swap between different bikes. It has a universal joint welded to it so that the angle of the seat post won&#8217;t affect how the trailer rides.</p>
<p>A goose neck keeps the trailer far enough back to avoid getting in the way of the rear wheel. The mesh basket was made from parts of an old industrial machine. The rear wheel is attached with a swing-arm that has what looks like a rubber bumper to act as a shock absorber. But if you want to make sure a big bump doesn&#8217;t send your luggage flying, [Clement] included a picture at the bottom of his post showing a much nicer spring shock on a different bike trailer.</p>
<p>If you&#8217;re confused by the title of this post you must have missed the <a href="http://hackaday.com/2011/10/01/incredibly-cheap-upcycled-cargo-bike/">cargo bike that was recently featured</a>.</p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/57427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/57427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/57427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/57427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/57427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/57427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/57427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/57427/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=57427&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/10/02/clement-sees-the-cargo-bike-and-raises-a-bicycle-cargo-trailer/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/10/bike-luggage-trailer-e1317570011830.jpg" medium="image">
			<media:title type="html">bike-luggage-trailer</media:title>
		</media:content>
	</item>
		<item>
		<title>Puncture resistant bike tires from old seatbelts</title>
		<link>http://hackaday.com/2011/06/22/puncture-resistant-bike-tires-from-old-seatbelts/</link>
		<comments>http://hackaday.com/2011/06/22/puncture-resistant-bike-tires-from-old-seatbelts/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 21:01:36 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[inner tube]]></category>
		<category><![CDATA[ride flat]]></category>
		<category><![CDATA[tires]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=46770</guid>
		<description><![CDATA[[Nicolás] often rides his bike in the city, and on more than one occasion has ended up with a flat tire. A flat tire might not sound like a big deal, but imagine if you are a few miles from your destination and running late &#8211; now your day has gone from bad to worse. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=46770&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-46771" title="puncture_resistant_bike_tires" src="http://hackadaycom.files.wordpress.com/2011/06/puncture_resistant_bike_tires.jpg" alt="puncture_resistant_bike_tires" width="470" height="353" /></p>
<p>[Nicolás] often rides his bike in the city, and on more than one occasion <a href="http://www.bikehacks.com/bikehacks/2011/06/seat-belt-bike-tire-hack.html" target="_blank">has ended up with a flat tire</a>. A flat tire might not sound like a big deal, but imagine if you are a few miles from your destination and running late &#8211; now your day has gone from bad to worse.</p>
<p>He was contemplating how he might protect his bike’s tires from being punctured by glass and other debris, when he came across some old car seat belts that used to serve as straps for various messenger bags. He pulled the tires off his bike and after removing the inner tubes, he unrolled the seat belts inside the wheels. The belts were cut to size, then the tubes were reinserted into the wheels and inflated as normal.</p>
<p>He hasn’t run into any glass shards just yet, but [Nicolás] is betting that the reinforced nylon mesh of the seat belts will keep his tubes safe whenever he does.</p>
<p>[via <a href="http://blog.makezine.com/archive/2011/06/diy-armored-bike-tires.html" target="_blank">Make</a>]</p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/46770/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/46770/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/46770/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/46770/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/46770/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/46770/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/46770/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/46770/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=46770&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/06/22/puncture-resistant-bike-tires-from-old-seatbelts/feed/</wfw:commentRss>
		<slash:comments>68</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/06/puncture_resistant_bike_tires.jpg" medium="image">
			<media:title type="html">puncture_resistant_bike_tires</media:title>
		</media:content>
	</item>
		<item>
		<title>Spokes? We don&#8217;t need no stinking spokes!</title>
		<link>http://hackaday.com/2011/06/22/spokes-we-dont-need-no-stinking-spokes/</link>
		<comments>http://hackaday.com/2011/06/22/spokes-we-dont-need-no-stinking-spokes/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 13:06:21 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[burning man]]></category>
		<category><![CDATA[tricycle]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=46699</guid>
		<description><![CDATA[The Air Kraken is a bicycle for demon spawn. Well, that&#8217;s what it reminds us of anyway. [Gabriel Cain] took his inspiration from burning man and also had several reasons for building it, but the one that we just love to hear is &#8216;because I can&#8217;. The over-grown tricycle built for two is more than [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=46699&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-46700" title="the-kraken-needs-no-spokes" src="http://hackadaycom.files.wordpress.com/2011/06/the-kraken-needs-no-spokes.jpg" alt="" width="470" height="353" /></p>
<p>The Air Kraken is a bicycle for demon spawn. Well, that&#8217;s what it reminds us of anyway. [Gabriel Cain] took his inspiration from burning man and also had several reasons for building it, but the one that we just love to hear is &#8216;because I can&#8217;.</p>
<p>The over-grown tricycle built for two is more than just some bicycle frames welded together. [Gabriel] built the wheel set himself using some very interesting methods. We believe the hubs themselves are actually automobile rims drilled to accept eye bolts. Instead of rigid spokes, a network of steel cable keeps the rims, made from plastic culvert pipe, centered. For grip, mountain bike tires were cut into pieces and screwed onto the pipe parts. The whole shebang is steered using a ship&#8217;s wheel (not pictured above) to turn the small wheel located behind the two riders.</p>
<p>After the break we&#8217;ve embedded a video of the vehicle in motion. It is the second of three videos that have been posted so far, with the other two walking through how [Gabriel] solved the design challenges facing him during the build.</p>
<p>[Gabriel] sent us a link after seeing <a href="http://hackaday.com/2011/06/21/quadbike-smaller-is-faster/">the quadbike post on Monday</a>. Don&#8217;t keep your projects to yourself, make sure to <a href="http://hackaday.com/contact-hack-a-day/">send us a tip</a> and we&#8217;ll make sure to keep posting about them.</p>
<p><span id="more-46699"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/06/22/spokes-we-dont-need-no-stinking-spokes/"><img src="http://img.youtube.com/vi/w_ixFLQOqXA/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/46699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/46699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/46699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/46699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/46699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/46699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/46699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/46699/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=46699&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/06/22/spokes-we-dont-need-no-stinking-spokes/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/06/the-kraken-needs-no-spokes.jpg" medium="image">
			<media:title type="html">the-kraken-needs-no-spokes</media:title>
		</media:content>
	</item>
		<item>
		<title>Wooden bike hopes to set world record, not catch fire</title>
		<link>http://hackaday.com/2011/04/28/wooden-bike-hopes-to-set-world-record-not-catch-fire/</link>
		<comments>http://hackaday.com/2011/04/28/wooden-bike-hopes-to-set-world-record-not-catch-fire/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 18:43:56 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[wood]]></category>
		<category><![CDATA[world record]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=41715</guid>
		<description><![CDATA[[Michael Thompson] has been hard at work for well over six months building a bicycle made entirely of wood. The project started as a bet between two friends, and has become much more over the last few months. The SplinterBike, as it is being called, has been constructed solely from wooden parts, as well as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=41715&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-41716" title="splinterbike" src="http://hackadaycom.files.wordpress.com/2011/04/splinterbike.jpg" alt="splinterbike" width="470" height="353" /></p>
<p>[Michael Thompson] has been hard at work for well over six months <a href="http://www.guardian.co.uk/environment/bike-blog/2011/apr/27/splinterbike-wooden-bike-engineering-marvel" target="_blank">building a bicycle made entirely of wood</a>. The project started as a bet between two friends, and has become much more over the last few months. The SplinterBike, as it is being called, has been constructed solely from wooden parts, as well as glue and paint &#8211; but not much else.</p>
<p>The bike uses many different woods in its construction, each chosen to fulfill a particular purpose. The axles are made from hardwood ekki, while all of the gears, wheels, and frame parts were constructed from birch plywood. Oiled ironwood was chosen to serve as a replacement for metal bearings wherever moving parts came together due to its durability. Other parts were constructed with random scraps that [Michael] had sitting around in the shop, such as the handlebars which were cut from an old broomstick.</p>
<p>Now that the bike is complete, [Michael] and his friend [James] are gearing up to set a wooden bike land speed world record. It should be doable, as they have calculated that the bike should hit about 31 miles per hour provided [James] can pedal fast enough. A date for the record attempt has yet to be set, but keep an eye out &#8211; it’s likely to be an entertaining show.</p>
<p>[via <a href="http://gizmodo.com/#!5796291/this-all-wood-bicycle-can-go-pretty-fast" target="_blank">Gizmodo</a>]</p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/41715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/41715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/41715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/41715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/41715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/41715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/41715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/41715/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=41715&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/04/28/wooden-bike-hopes-to-set-world-record-not-catch-fire/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mikenathanathackaday</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/04/splinterbike.jpg" medium="image">
			<media:title type="html">splinterbike</media:title>
		</media:content>
	</item>
		<item>
		<title>More bike-controlled Google-travelling</title>
		<link>http://hackaday.com/2011/01/03/more-bike-controlled-google-travelling/</link>
		<comments>http://hackaday.com/2011/01/03/more-bike-controlled-google-travelling/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 23:00:29 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[arduino hacks]]></category>
		<category><![CDATA[home hacks]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[bike computer]]></category>
		<category><![CDATA[google earth]]></category>
		<category><![CDATA[Joystick]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=32415</guid>
		<description><![CDATA[This is becoming such a popular hack we figure someone needs to come up with a name for it like Google-travelling or Google-cising (exercising with Google). It&#8217;s a bike controller for Google Earth. [Braingram] broke out his road bike, setting it up in the trainer in front of his laptop. If you already have a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=32415&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-32416" title="bike-controlled-google-travelling" src="http://hackadaycom.files.wordpress.com/2011/01/bike-controlled-google-travelling.jpg" alt="" width="470" height="400" /></p>
<p>This is becoming such a popular hack we figure someone needs to come up with a name for it like Google-travelling or Google-cising (exercising with Google). It&#8217;s <a href="http://www.instructables.com/id/Google-Bike">a bike controller for Google Earth</a>. [Braingram] broke out his road bike, setting it up in the trainer in front of his laptop. If you already have a computer with a cadence sensor this will be a snap. These measure the crank rotation using a magnet and reed switch. So as not screw up his summer biking [Braingram] spliced into the sensor while leaving it attached to the bike computer. From there it is read by an Arduino which also monitors an analog joystick attached to the handlebars. A little bit of Python scripting and you&#8217;ll be ready to go.</p>
<p>Be sure to check out some of the other variants like <a href="http://hackaday.com/2010/10/29/exercise-along-to-google-street-view/">using an exercise bike</a>, or <a href="http://hackaday.com/2009/11/19/another-stationary-bike-vr-rig/">adding a wearable display</a>.</p>
<br />Filed under: <a href='http://hackaday.com/category/arduino-hacks/'>arduino hacks</a>, <a href='http://hackaday.com/category/home-hacks/'>home hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/32415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/32415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/32415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/32415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/32415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/32415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/32415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/32415/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=32415&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/01/03/more-bike-controlled-google-travelling/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2011/01/bike-controlled-google-travelling.jpg" medium="image">
			<media:title type="html">bike-controlled-google-travelling</media:title>
		</media:content>
	</item>
		<item>
		<title>Climbing bike storage thwarts thieves?</title>
		<link>http://hackaday.com/2010/11/29/climbing-bike-storage-thwarts-thieves/</link>
		<comments>http://hackaday.com/2010/11/29/climbing-bike-storage-thwarts-thieves/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 20:30:36 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[carrier]]></category>
		<category><![CDATA[climb]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[pole]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=31240</guid>
		<description><![CDATA[If you&#8217;ve got an expensive bike and don&#8217;t mind carrying around a whole bunch of extra weight in your courier bag you&#8217;ll like this concept. A design team built a pole-climbing bike rack in about 14 days. The video after the break shows the prototyping process as well as the finished &#8220;lock&#8221; in use. It&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=31240&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-31241" title="climbing-bike-storage" src="http://hackadaycom.files.wordpress.com/2010/11/climbing-bike-storage.jpg" alt="" width="470" height="353" /></p>
<p>If you&#8217;ve got an expensive bike and don&#8217;t mind carrying around a whole bunch of extra weight in your courier bag you&#8217;ll like this concept. A design team <a href="http://www.conrad.de/ce/de/content/ti_fahrradschloss/ti_fahrradschloss">built a pole-climbing bike rack</a> in about 14 days. The video after the break shows the prototyping process as well as the finished &#8220;lock&#8221; in use. It&#8217;s a commercial for the company that employs the designers, but this is one kind of advert we don&#8217;t mind watching.</p>
<p>Square channel makes up the body of the device, with a set of Rollerblade wheels which grab a light pole and use three 12V gear motors for climbing. The controller is a wireless fob similar to those used for keyless entry on cars. In the video you can hear the cliché sound of a car alarm being set once the carrier reaches its finished height. Nice.</p>
<p><span id="more-31240"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/29/climbing-bike-storage-thwarts-thieves/"><img src="http://img.youtube.com/vi/kvc0A_cWUCU/2.jpg" alt="" /></a></span></p>
<p>[Thanks JonnieCache]</p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/31240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/31240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/31240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/31240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/31240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/31240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/31240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/31240/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=31240&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/11/29/climbing-bike-storage-thwarts-thieves/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/climbing-bike-storage.jpg" medium="image">
			<media:title type="html">climbing-bike-storage</media:title>
		</media:content>
	</item>
		<item>
		<title>AVR Programming 04: Writing code, etc.</title>
		<link>http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/</link>
		<comments>http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 22:00:55 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[ATmega168]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[avr programming]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[light]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=30193</guid>
		<description><![CDATA[Welcome back to this fourth and final installment of the series. The first three parts should have been enough to get you off the ground, but a few more learning examples wouldn&#8217;t hurt. It&#8217;s also a good time to discuss some of the other things these little chips can do. Join me after the break [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=30193&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29579" title="avr-programming-for-everyone" src="http://hackadaycom.files.wordpress.com/2010/10/avr-programming-for-everyone.jpg" alt="" width="470" height="150" /><br />
Welcome back to this fourth and final installment of the series. The first three parts should have been enough to get you off the ground, but a few more learning examples wouldn&#8217;t hurt. It&#8217;s also a good time to discuss some of the other things these little chips can do. Join me after the break to:</p>
<ul>
<li>Expand the sample code, adding features to our simple program while I challenge you to write the code yourself.</li>
<li>Discuss AVR fuse bits, how to use them, and what to watch out for</li>
<li>Touch on some of the peripherals you&#8217;ll come across in these chips</li>
</ul>
<p>As a grand flourish to the series, I&#8217;ve used the example hardware from this final part to build a bicycle tail light. Hopefully this will inspire you to create something much more clever.</p>
<p><strong>Series roadmap:</strong></p>
<ul>
<li><a title="Permanent Link to AVR Programming 01: Introduction" rel="bookmark" href="http://hackaday.com/2010/10/23/avr-programming-introduction/">AVR Programming 01: Introduction</a></li>
<li><a title="Permanent Link to AVR Programming 01: Introduction" rel="bookmark" href="http://hackaday.com/2010/10/23/avr-programming-introduction/"></a><a title="Permanent Link to AVR Programming 02: The Hardware" rel="bookmark" href="http://hackaday.com/2010/10/25/avr-programming-02-the-hardware/">AVR Programming 02: The Hardware</a></li>
<li><a title="Permanent Link to AVR Programming 02: The Hardware" rel="bookmark" href="http://hackaday.com/2010/10/25/avr-programming-02-the-hardware/"></a><a title="Permanent Link to AVR Programming 03: Reading and compiling code" rel="bookmark" href="http://hackaday.com/2010/11/05/avr-programming-03-reading-and-compiling-code/">AVR Programming 03: Reading and compiling code</a></li>
<li><a href="http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/">AVR Programming 04: Writing code</a></li>
</ul>
<p><span id="more-30193"></span></p>
<h2>Adding to the Example Hardware</h2>
<p>The example code that I&#8217;ve been working with on the last two parts of this tutorial is a bit boring. It makes one LED blink on and off at a rate of about 1 Hz. That LED was connected to the pin for PD0, so let&#8217;s start out by adding an LED and resistor to the rest of the PORT D pins for a total of 8 LEDs. We should also talk about inputs, so let&#8217;s add a switch on PC0. Here&#8217;s a schematic showing our changes:</p>
<p><strong><a href="http://hackadaycom.files.wordpress.com/2010/11/m168_led_button.png"><img class="alignnone size-large wp-image-30819" title="m168_led_button" src="http://hackadaycom.files.wordpress.com/2010/11/m168_led_button.png?w=450&#038;h=192" alt="" width="450" height="192" /></a><br />
</strong></p>
<p>I moved the original LED over to some open space on the right side of the breadboard. I&#8217;m connecting the cathode to the ground rail on the bottom, jumping the trench with a resistor, and connecting a jumper from that resistor to the Port D pins on the microcontroller. I organized the LEDs in ascending order from right to left making it easy to address them when writing code:</p>
<p><img class="alignnone size-full wp-image-30812" title="avrtut-8leds" src="http://hackadaycom.files.wordpress.com/2010/11/avrtut-8leds.jpg" alt="" width="470" height="353" /></p>
<p>If you know your <a href="http://www.google.com/images?hl=en&amp;q=resistor+color+code&amp;um=1&amp;ie=UTF-8&amp;source=univ&amp;ei=WOziTOSAB8Hsngfqr7jODg&amp;sa=X&amp;oi=image_result_group&amp;ct=title&amp;resnum=2&amp;ved=0CDUQsAQwAQ&amp;biw=1024&amp;bih=441">resistor color codes</a> you&#8217;ll notice that the Brown-Green-Red resistors I&#8217;m using are 1.5 kOhms, strangling the current to a tiny trickle for LEDs. Well, I&#8217;m using super bright LEDs, and these resistors were the first that I pulled out. They work just fine for prototyping but should be replaced with a correctly calculated value on a finished product.</p>
<p>Next I hooked up a button. Digital inputs on microcontrollers need to have a value of 0V or VCC (input voltage which is 5V in our case). If they don&#8217;t have a clear value they are said to be &#8220;floating&#8221; which can lead to false button readings and other unhappy occurences. We need to set up hardware that will force a value of 0V or 5V at all times. This turns out to be quite simple. By connect the switch from the pin to ground and a resistor from the pin to VCC (called a pull-up resistor) there will always be a very small 5V current trickling into the pin, except when an unrestricted path to ground is created by pressing the button. We don&#8217;t even need our own resistor as there&#8217;s one inside the microcontroller that we&#8217;ll take advantage of. Here&#8217;s a schematic showing what this connection, along with the internal pull-up resistor, looks like:</p>
<p><img class="alignnone size-full wp-image-30818" title="button_conn_sch" src="http://hackadaycom.files.wordpress.com/2010/11/button_conn_sch.jpg" alt="" width="470" height="240" /></p>
<p>That description is a mouthful but all we&#8217;re really doing is placing a button between PC0 and Ground. Pin 23 is PC0 on the ATmega168 and the pin right next to that (pin 22) is GND. I&#8217;ve connected a switch accordingly. In the following image please note that Pin 22 is connected with a jumper wire to the ground rail above it, but is obscured by the black wire from the push button:</p>
<p><img class="alignnone size-full wp-image-30814" title="avrtut-btn-added" src="http://hackadaycom.files.wordpress.com/2010/11/avrtut-btn-added.jpg" alt="" width="470" height="353" /></p>
<p>And finally, I want to make connections to the chip for In-System Programming. I like to do this using <a href="http://hackaday.com/2010/05/07/5x2-patch-board/">a patch board that I created</a>. This lets me use a 10-pin IDC cable for easy connection to my programmer:</p>
<p><img class="alignnone size-full wp-image-30815" title="avrtut-btn-and-isp" src="http://hackadaycom.files.wordpress.com/2010/11/avrtut-btn-and-isp.jpg" alt="" width="470" height="353" /></p>
<p>That&#8217;s it. I plan to use this hardware with several different firmware examples so double-check your wiring and then start writing code.</p>
<h2>Writing Code</h2>
<p>Time to practice writing your own code. I have come up with <a href="https://github.com/Hack-a-Day/had_AVRtut_4">four firmware examples</a> ranging in difficulty from &#8220;Hello World&#8221; to &#8220;Damn That&#8217;s Slick&#8221;. I&#8217;ll discuss each of them briefly but along the way you should try to write your own code, using my examples as&#8230; examples. The best way to learn to code is to write a small portion of code, let the compiler yell at you for messing up, and then figure out how to fix it.</p>
<p><strong>Blinking all 8 (8led_1hz)</strong></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/"><img src="http://img.youtube.com/vi/ssBfFUoLjFI/2.jpg" alt="" /></a></span>
<p>First thing&#8217;s first, can <em><strong>you</strong></em> make the <a href="https://github.com/Hack-a-Day/had_AVRtut_2">example code from Part 2</a> blink all 8 LEDs instead of just one?</p>
<p>There&#8217;s really only two things that you need to change from the original to make this happen. First, when setting up the input/output, make all of the pins on Port D outputs, then turn them all on. Second, when toggling the bits in the Interrupt Service Routine use a bitmask that affects all eight bits.</p>
<p><a href="https://github.com/Hack-a-Day/had_AVRtut_4">The source package for this part</a> of the series includes this alteration. Grab a copy of it and look at the 8led_1hz code. In it you&#8217;ll find these changes:</p>
<p><pre class="brush: cpp; wrap-lines: false;">  DDRD |= 0xFF;			//Set PortD pins as an outputs
  PORTD |= 0xFF;		//Set PortD pins high to turn on LEDs
</pre></p>
<p><pre class="brush: cpp; wrap-lines: false;">  PORTD ^= 0xFF;		//Use xor to toggle the LEDs</pre></p>
<p>As you can see, both portions of code use 0xFF as a bit mask. This is a byte containing all ones, which will manipulate every pin on the registers to which we apply it. Before I had shifted a bit using this:</p>
<pre style="padding-left:30px;">'1&lt;&lt;0'</pre>
<p>It resulted in a bit mask of 0&#215;01, protected the upper seven bits from being changed during register manipulation.</p>
<p><strong>Make the LEDs do something interesting (m168_led_effects)</strong></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/"><img src="http://img.youtube.com/vi/d-wyP7iYaWg/2.jpg" alt="" /></a></span>
<p>Now I&#8217;m going to take a big step forward in C code difficulty. But I challenge you to develop three different types of LED effects by yourself:</p>
<ul>
<li>A binary counter which counts up at 1 bit per second</li>
<li>A flasher that alternates lighting every other LED</li>
<li><a href="http://www.youtube.com/watch?v=NPAqGgYpb4A">Larson scanner</a> (a simple one, doesn&#8217;t need to use PWM)</li>
</ul>
<p>You&#8217;ll find my example code in the m168_led_effects directory. Here&#8217;s some of the new things I&#8217;m using in my code:</p>
<p style="padding-left:30px;"><strong>Definitions:</strong> I&#8217;m using definitions for common settings and for I/O pins, ports, and direction registers. These are constants that the compiler will replace with appropriate values but they make your job much easier. If you get most of the way into a project and realize you need to change some of the hardware this will make it simple to do. Need to change from Port D to Port C? No problem, change the #define and the rest of the code will still work</p>
<p style="padding-left:30px;"><strong>Delay:</strong> AVR libc has a nice delay utility called delay.h. You can see that I&#8217;ve included it at the top of the source file and also written a function called delay_ms(). This is a moderately accurate way to mark the passage of time. The drawback to using this is that you are literally wasting time when the processor could be doing other things. Still, it&#8217;s simple and if you&#8217;re new to microcontrollers you&#8217;ll probably find yourself using this frequently at first.</p>
<p>Also notable in this version of the code is my use of functions to take the complexity out of MAIN. I like to do this when I can to make program flow more readable. If you use descriptive function names it will be easy for others to see how the firmware works just by looking at main. This is also why I comment my code quite a lot. Not just for others, but so I can read it quickly if I come back to it later and don&#8217;t remember what I originally wrote the program to do.</p>
<p>Before we move on here&#8217;s a quick synopsis of how I solved the three goals:</p>
<ul>
<li>When displaying a binary counter at 1Hz I simply start Timer 2 the same way I did for the blinking LED in Part 2 of the tutorial. Each time it fires I don&#8217;t toggle the pins, but set the entire port to an 8-bit variable value while incrementing it at the same time. The ++binary_counter increments that value just before it sets Port D. It is crucial that this value be a global variable using the keyword &#8216;volatile&#8217; because it is changed by both the ISR and in the main loop. If you don&#8217;t make it volatile the compiler might optimize the code in a way that disturbs or disrupts the intended functionality.</li>
<li>Creating an alternating flasher is much the same as toggling a single LED. I set up for the effect by instantiating a variable with every-other bit as 1. When using an exclusive OR operator (XOR) on this value, all of the bits will flip. I could have set up an interrupt with a shorter delay than the 1 Hz interrupt to take care of this but for learning purposes I used a delay instead.</li>
<li>The Larson scanner is a classic bit of blinky goodness. The core function is to illuminate one LED and sweep it back and forth. To do this I just created a loop to shift the bits, waiting after each change. Once the LED on the end is lit the program leaves the loop and enters another one to shift bits the other way. The same could have been accomplished with a variable that keeps track of which direction the LED is moving, testing during each iteration.</li>
</ul>
<p>When you&#8217;ve read and understood how this code works it is time to get the button up and running.</p>
<p><strong>Make the button do something (m168_led_button)</strong></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/"><img src="http://img.youtube.com/vi/N7AJeXsk_KQ/2.jpg" alt="" /></a></span>
<p>We brought a button to the party, let&#8217;s alter our LED effects so that the button is used to change between the three possibilities. If you&#8217;ve never written code for a button input before there&#8217;s little chance you&#8217;ll be able to pull this off yourself, so open up the code in the m168_led_button folder and lets walk through it.</p>
<p style="padding-left:30px;"><strong>Debounce:</strong> Buttons often register more than one press if not handled correctly, a process called debouncing. There is a hardware fix for this, but you can learn about that on your own time. Recently, I gathered a <a href="http://hackaday.com/2010/11/09/debounce-code-one-post-to-rule-them-all/">post full of different debounce code</a>, but <a href="http://hackaday.com/2010/10/13/open-call-send-us-your-debounce-code/">the one I almost always use</a> is based on code by [Peter Dannegger]. It relies on several parts:</p>
<ul>
<li>Code to start a timer with an overflow interrupt</li>
<li>An ISR to service the timer overflow, resetting the timer for 10ms interrupts and polling the button pin.</li>
<li>A bit mask and pin definitions that identify how the buttons are hooked up</li>
<li>A function used to check if a button press has been registered</li>
<li>Code to check that function and act when a button has been pressed.</li>
</ul>
<p>The magic is in the ISR debounce code. It flips bits in a binary counter to register four successive button press readings totalling 40ms. That signals a legitimate button press and when the get_key_press function is called it will return a populated key mask. To help understand how this debounce code works, I have included a code example called button_debounce. This has been slimmed down to include only the code used to debounce. Pressing the button will toggle the LEDs.</p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/"><img src="http://img.youtube.com/vi/PjI0GsT0bVI/2.jpg" alt="" /></a></span>
<p>During the hardware setup I talked about using the internal pull-up resistors. I have to remember to set those up at the beginning of the program or the input pin will be floating. The datasheet talks about this on page 71. When a pin is set to input using the Data Direction Register, writing a high value to the Port bit for that pin will enable the pull-up resistor. From there the current status of the pin can be grabbed from the appropriate Pin register. Notice the ISR used for debouncing reads KEY_PIN, which is defined as the PINC register at the top of the source code. You don&#8217;t have to read the Pin register because the ISR is doing it for you.</p>
<p>My implementation of button debouncing in the m168_led_button code is just fine, but my use of the button is a hack. I should have used a state machine and gotten rid of the delay functions in the code. For simplicity I just littered calls to get_key_press throughout the code whenever I was trapping the program in a loop. I used the detection of a key press to return to main from the function the program is stuck in.</p>
<p>Pick this apart, writing simple code that you understand and slowly you will build the knowledge base necessary to understand this code as a whole.</p>
<p><strong>Creating something useful (m168_bike_light)</strong></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/"><img src="http://img.youtube.com/vi/FxZPDY5Kf-Y/2.jpg" alt="" /></a></span>
<p>I wanted to finish the code writing section with a useful application for our test hardware. Behold, a bicycle tail light. It has a button to scroll through several different red light patterns, and it uses sleep mode to shut off the LEDs and conserve battery power.</p>
<p>I&#8217;ve changed the program flow to use a state machine. This is a bit of a juggling act. I use an interrupt to set a flag called &#8216;timer&#8217;. The main loop constantly polls that flag, as well as the button, and acts accordingly. Whenever that flag is set the next step of the LED effect is performed.</p>
<p>Sleep mode is also used in this example. One thing to note: when in sleep mode the chip uses almost no current, conserving batteries. But the linear power regulator still burns away like crazy. For this to be useful the code should be ported to a chip that operates at low voltages. For instance, you could use a tiny13 and two AA batteries without a regulator. Adjustments would need to be made for less pins and corrected LED resistor values, but these are not difficult changes to make. Have a look at the code in the m168_bike_light folder. The comments and your hard-earned AVR knowledge will help you understand how this works. Good luck!</p>
<p>Now I&#8217;ll move on to the discuss one of the most important parts of theses microcontrollers:</p>
<h2>AVR Fuse Bits</h2>
<p>The fuse bits are a set of registers that control some core features of the AVR line of chips. You can think of them as another type of memory, programmed separately from the code that you want to execute.</p>
<p><strong>Read the datasheet</strong></p>
<p>Fuse bits for the ATmega168 are covered starting on page 285 of <a href="http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf">the datasheet</a>. You should make yourself thoroughly familiar with this information. <span style="color:#ff0000;">Incorrectly programming these registers could render your chip useless<span style="color:#ffffff;"> unless</span></span><span style="color:#ffffff;"> you have a programmer capable of High Voltage Programming (HVP).</span></p>
<p>There are three fuse bit registers on our chip, the Extended fuse byte, the High fuse byte and the Low fuse byte. All of them use inverse logic, meaning that a &#8217;1&#8242; means the corresponding feature is NOT selected. I start every project with these registers set to the factory default, information I keep in a text file with the factory fuse defaults for all the chips I work with. At the beginning of every project I try to talk to the chip using the &#8216;-v&#8217; option of AVRdude to make sure the programmer and chip are both working correctly to save time on later debugging. Here are the ATmega168 defaults:</p>
<ul>
<li>efuse: 0b11111111 (0xFF)</li>
<li>hfuse: 0b11011111 (0xDF)</li>
<li>lfuse: 0b01100010 (0&#215;62)</li>
</ul>
<p>I&#8217;ll touch on most of these features in the next section. But of particular concern are the bits that select the clock source, and the reset disable bit. If you disable the reset pin, by accident or in order to use it as an I/O pin, you will need to use HVP or debugWire to use ISP programming again. If the clock pins are changed you will need the appropriate external clock signal, or HVP for the same reason.</p>
<p>You can program the fuse bits using AVRdude. In fact, <a href="http://www.nongnu.org/avrdude/user-manual/avrdude_6.html">there&#8217;s an example in the documentation</a>. This command will reset the fuses to the factory settings:</p>
<p><pre class="brush: cpp; wrap-lines: false;">avrdude -c dragon_isp -P usb -p m168 -U efuse:w:0xff:m -U hfuse:w:0xdf:m -U lfuse:w:0x62:m</pre></p>
<h2>AVR Peripherals (A Whirlwind Tour)</h2>
<p>Take a whirlwind tour of the features available to you on this chip. This is gonna be quick, but you already have the core skills you need. Just read the datasheet and using the Internet to connect the rest of the dots.</p>
<p><strong>EEPROM memory</strong></p>
<p>Most (if not all) of the AVR chips come with Electronically Erasable Programmable Read Only Memory. This is persistent memory that stores data between resets and when there is no power to the chip. This is where data loggers store information and often contains things like text strings, font data, etc. AVR-GCC will generate an .EEP file at compile time with any EEPROM data that you use in your programs. This needs to be programmed to the chip separately from flash data.</p>
<p><strong>Timers (Regular and Watchdog)</strong></p>
<p>Timers are where it&#8217;s at in terms of functionality. They go far beyond simply measuring time, and can be used to wake the chip up from sleep mode, to generate pulse width modulation frequencies, and much more. Some chips have asyncronous timers, like Timer/Counter 2 on the ATmega168, that can use an external clock signal separate from the other timers.</p>
<p>Also not to be missed is the Watchdog timer. These timers can save money, and even lives. They are a hardware timer enabled through the fuse bits that will reset the microcontroller if not handled in software. Why would you want to do that? Because nobody writes perfect code. When using a Watchdog timer you frequently reset its counter during successful code execution. That way if your code ever hangs or gets caught in a loop the Watchdog timer will automatically reset the device, getting you out of a software-caused bind. See <a href="http://www.ganssle.com/watchdogs.htm">what [Jack Ganssle] has to say</a> about them.</p>
<p><strong>Real time counter</strong></p>
<p>I mentioned above that Timer/Counter 2 can be run asynchronously from the rest of the timer/counters. Why is that valuable? One of the uses is as a Real Time Counter (RTC). This works in conjunction with a clock crystal to keep track of the time and date.</p>
<p><strong>Hardware PWM</strong></p>
<p>Continuing with the theme of timer/counter based featured, these chips have hardware-based pulse width modulation. PWM generates a signal between 0V and VCC by turning a pin output on and off frequently. The frequency used, and the duty cycle (ratio of high versus low over one period) are set in the registers and you don&#8217;t have to think about it again until you want to change them. This is useful for a slew of things, like dimming an LED, driving a servo motor, or generating sound on a piezo.</p>
<p><strong> </strong><strong>ADC</strong></p>
<p>If you want to measure an analog value you need an Analog-to-Digital Converter. Most AVR chips have several of these with varying degrees of precision. This enables you to do things like measure light levels using a photoresistor and reading the value of a potentiometer (using it like a settings knob).</p>
<p><strong>USART</strong></p>
<p>The ATmega168 has a Universal Synchronous and Asynchronous serial Receiver and Transmitter which allows it to communicate in many different ways. This includes serial communications like USB (by taking advantage of <a href="http://www.obdev.at/products/vusb/index.html">the V-USB stack</a>), as well as chip-to-chip communication standards like SPI, I2C, and TWI.</p>
<p><strong>SPI</strong></p>
<p>The AVR family often incorporates Serial Peripheral Interface bus communications protocols into its hardware. The USART on the ATmega168 offers master SPI functionality, used to control other chips that also use the protocol via three connections; two for data one for clock.</p>
<p><strong>I2C/TWI</strong></p>
<p>The USART also offers hardware I2C and Two Wire Interface features. Like SPI these are common chip-to-chip protocols but they use just two wires; one for data and the other for a clock signal.</p>
<p><strong>Analog comparator</strong></p>
<p>The analog comparator uses two input pins to compare analog signals. Based on their relation, the chip can be set to fire interrupts if one changes value compared to the other. The two inputs can be mapped to any of the ADC pins, but only two values can be compared at one time. I&#8217;ve never used this feature and I&#8217;m basing this description purely on what I&#8217;ve read in the datasheet. Sorry!</p>
<p><strong>Lock bits</strong></p>
<p>Any code you write to these chips can be read back and stored (albeit what comes back out is machine code, the C code we&#8217;ve been writing can never be reproduced perfectly from what you get off the chip). That can then be used to program other identical chips. But there is a feature called lock bits that can protect that code. Once set, the chip cannot be read, and depending on which bits are set it may not be able to be reprogrammed. That is, until the chip has been erased, which resets these lock bits.</p>
<p><strong>JTAG, debugWire, and High Voltage Programming</strong></p>
<p>In this tutorial we&#8217;ve been using In System Programming, but there are a few other ways to program AVR chips. JTAG is a standard hardware debugging (and programming) interface that some chips have, but the ATmega168 does not. Many of these chips can use the debugWire protocol to program and debug with just one wire communicating on the reset pin. Both JTAG and debugWire protocols are configured using the fuse bits.</p>
<p>High Voltage Programming is used to rescue chips that cannot be reached using other programming methods. There are two kinds, High Voltage Parallel Programming, like the ATmega168 uses, or High Voltage Serial Programming which chips with a low-pin count use. If you disable the Reset pin or enable debugWire, or set the clock source incorrectly in the fuse settings, HVPP or HVSP should be able to reset the fuses and rescue the &#8220;bricked&#8221; chip.</p>
<p><strong>Power and Sleep</strong></p>
<p>Microcontrollers operate so quickly there is often just wasted time as they scroll the infinite loop waiting for an interrupt to happen. If you are operating under battery power this just wastes juice. By using the power saving and sleep modes batteries can last longer. This is accomplished by turning off power hungry peripherals like the ADC, and shutting down the processor when not needed by putting it to sleep. They&#8217;re a bit tricky to understand, but often worth your while</p>
<h2>Conclusion</h2>
<p>That&#8217;s it really. I&#8217;ve had a great time writing about this. Fiddling with microcontrollers is my favorite hobby and I hope it has become yours as well. These are really very simple concepts that grow in complexity as you pile them atop each other. Just compare the original Part 2 source code with the bicycle tail light code. But that&#8217;s the fun of it. This is the inventor&#8217;s equivalent of a choose your own adventure novel. So come up with a challenge and see where it takes you!</p>
<h2>Follow Me</h2>
<p><a href="http://twitter.com/szczys">@szczys</a></p>
<h2>Resources</h2>
<p>Part 4 Firmware package: <a href="https://github.com/Hack-a-Day/had_AVRtut_4">Github repository</a></p>
<p>Atmel AVR <a href="http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf">ATmega168 Datasheet</a> (PDF)</p>
<p><a href="http://www.nongnu.org/avr-libc/user-manual/">AVR Libc manual</a></p>
<div id="_mcePaste" class="mcePaste" style="position:absolute;left:-10000px;top:1364px;width:1px;height:1px;"><a href="http://www.ganssle.com/watchdogs.htm">http://www.ganssle.com/watchdogs.htm</a></div>
<br />Filed under: <a href='http://hackaday.com/category/how-to/'>how-to</a>, <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/30193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/30193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/30193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/30193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/30193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/30193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/30193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/30193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=30193&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/11/19/avr-programming-04-writing-code-etc/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/10/avr-programming-for-everyone.jpg" medium="image">
			<media:title type="html">avr-programming-for-everyone</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/m168_led_button.png?w=450" medium="image">
			<media:title type="html">m168_led_button</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/avrtut-8leds.jpg" medium="image">
			<media:title type="html">avrtut-8leds</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/button_conn_sch.jpg" medium="image">
			<media:title type="html">button_conn_sch</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/avrtut-btn-added.jpg" medium="image">
			<media:title type="html">avrtut-btn-added</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/11/avrtut-btn-and-isp.jpg" medium="image">
			<media:title type="html">avrtut-btn-and-isp</media:title>
		</media:content>
	</item>
		<item>
		<title>Exercise along to Google Street View</title>
		<link>http://hackaday.com/2010/10/29/exercise-along-to-google-street-view/</link>
		<comments>http://hackaday.com/2010/10/29/exercise-along-to-google-street-view/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 18:01:59 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[home hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[exercise]]></category>
		<category><![CDATA[stationary]]></category>
		<category><![CDATA[street view]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29902</guid>
		<description><![CDATA[As part of a Master&#8217;s Thesis [Lette Moloney] made this exercise bike control Google Street View. The hardware setup is quite rudimentary, two hall effect sensors mounted next to each other detect a magnet that was hot-glued to the crank. When the magnet passes the sensors an Arduino establishes if it was a forward or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29902&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29903" title="street-view-exercise-bike" src="http://hackadaycom.files.wordpress.com/2010/10/street-view-exercise-bike.jpg" alt="" width="470" height="374" /></p>
<p>As part of a Master&#8217;s Thesis [Lette Moloney] <a href="http://lettesblog.wordpress.com/2010/10/28/escapism-pedal-through-google-streetview-on-a-stationary-bike/">made this exercise bike control Google Street View</a>. The hardware setup is quite rudimentary, two hall effect sensors mounted next to each other detect a magnet that was hot-glued to the crank. When the magnet passes the sensors an Arduino establishes if it was a forward or backward stroke based on which sensor was tripped first. From there a keystroke is issued to <a href="http://maps.google.com/help/maps/streetview/">Google Street View</a> to move the virtual location accordingly.</p>
<p>One thing we didn&#8217;t expect until we saw the video (embedded after the break) is that traversing street view is not a smooth experience. It&#8217;s more of a slide show as you exercise. Not a big deal since the hardware setup can be reused with different virtual stimuli. One thing that comes to mind is attaching a camera to the handlebars of your bike and recording your favorite rides during the warm months so that you can replay them during your indoor winter training. Of course that&#8217;s going to require some coding to marry the Arduino data to the speed of the video playback but we want to see it done anyway. Wow, image a database that would allow folks to share point-of-view videos of their rides&#8230; it&#8217;s the only way we&#8217;d ever get to see what it&#8217;s like to climb your way up <a href="http://en.wikipedia.org/wiki/Alpe_d'Huez">Alpe_d&#8217;Huez</a>.</p>
<p>We saw a slew of these stationary bike hacks a while back. If this wets your appetite, check in on <a href="http://hackaday.com/2009/11/19/another-stationary-bike-vr-rig/">one with a wearable display</a>, another that <a href="http://hackaday.com/2009/11/11/biking-through-google-street-view/">also uses Street View</a>, or <a href="http://hackaday.com/2009/12/11/remote-bike-mountain/">pedaling to the top of a miniature mountain</a>.</p>
<p><span id="more-29902"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/10/29/exercise-along-to-google-street-view/"><img src="http://img.youtube.com/vi/DrUp6oKOABc/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/home-hacks/'>home hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29902/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29902&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/29/exercise-along-to-google-street-view/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/10/street-view-exercise-bike.jpg" medium="image">
			<media:title type="html">street-view-exercise-bike</media:title>
		</media:content>
	</item>
		<item>
		<title>Tanks treads for your next robot</title>
		<link>http://hackaday.com/2010/10/26/tanks-treads-for-your-next-robot/</link>
		<comments>http://hackaday.com/2010/10/26/tanks-treads-for-your-next-robot/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 16:00:38 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[robots hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[chain]]></category>
		<category><![CDATA[tank]]></category>
		<category><![CDATA[tread]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29754</guid>
		<description><![CDATA[If you ever wanted to incorporate tank treads into one of your build you should check out this guide. The method shown above is our favorite, which uses rubber fuel line hose and #10 machine bolts to hold together two lengths of hollow-pin roller chain. You can see the drive sprocket is keyed into the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29754&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29755" title="OLYMPUS DIGITAL CAMERA" src="http://hackadaycom.files.wordpress.com/2010/10/building-tank-treads-e1288103375145.jpg" alt="" width="470" height="353" /></p>
<p>If you ever wanted to incorporate tank treads into one of your build <a href="http://www.rctankcombat.com/articles/track-systems/">you should check out this guide</a>. The method shown above is our favorite, which uses rubber fuel line hose and #10 machine bolts to hold together two lengths of hollow-pin roller chain. You can see the drive sprocket is keyed into the outer length of chain but the wheels that distribute the vehicle&#8217;s weight rest on the rubber tubing. You&#8217;ll also find details on building hinged track, molded track, plastic conveyor track, treadmill track, and bicycle chain construction. This should cut down on development time when you finally get around to making that <a href="http://hackaday.com/2010/08/31/wearable-controller-for-your-paintball-tank/">paintball tank</a>.</p>
<p>[Thanks BoKu]</p>
<br />Filed under: <a href='http://hackaday.com/category/robots-hacks/'>robots hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29754/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29754&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/26/tanks-treads-for-your-next-robot/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/10/building-tank-treads-e1288103375145.jpg" medium="image">
			<media:title type="html">OLYMPUS DIGITAL CAMERA</media:title>
		</media:content>
	</item>
		<item>
		<title>Building a recumbent trike from old parts</title>
		<link>http://hackaday.com/2010/10/12/building-a-recumbent-trike-from-old-parts/</link>
		<comments>http://hackaday.com/2010/10/12/building-a-recumbent-trike-from-old-parts/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 19:19:08 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[bicycle]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[recumbent]]></category>
		<category><![CDATA[trike]]></category>
		<category><![CDATA[welding]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29242</guid>
		<description><![CDATA[This recumbent trike was built using parts from three salvaged bikes and without welding. These bikes are a bit easier on the back and neck than the traditional riding position. This one also allows for a shorter pedal crank which was a concern for the creator, [Barry Millman]. Not only did he do a fantastic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29242&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29243" title="recumbent-trike-from-old-bikes" src="http://hackadaycom.files.wordpress.com/2010/10/recumbent-trike-from-old-bikes-e1286900789484.jpg" alt="" width="470" height="353" /></p>
<p>This recumbent trike was built using parts from three salvaged bikes and without welding. These bikes are a bit easier on the back and neck than the traditional riding position. This one also allows for a shorter pedal crank which was a concern for the creator, [Barry Millman]. Not only did he do a fantastic job of making the thing, but <a href="http://www.greatuserdocs.com/trike0.htm">he shared the project in verbose detail</a>.</p>
<p>It&#8217;s a good build. It won&#8217;t win a prize for light-weight design as it includes a big chunk of plywood. But it is worth the weight hit if welding is not an option. For your viewing pleasure you&#8217;ll find a short parking lot test-drive of the finished recumbent after the break.</p>
<p>Oh, and if you want a more dangerous cycling build, try this <a href="http://hackaday.com/2010/06/23/another-take-on-a-bicycle-built-for-two/">over-under tandem</a>.</p>
<p><span id="more-29242"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/10/12/building-a-recumbent-trike-from-old-parts/"><img src="http://img.youtube.com/vi/Exc0whaZuoI/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29242&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/12/building-a-recumbent-trike-from-old-parts/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/10/recumbent-trike-from-old-bikes-e1286900789484.jpg" medium="image">
			<media:title type="html">recumbent-trike-from-old-bikes</media:title>
		</media:content>
	</item>
		<item>
		<title>Add supercaps to your exercise routine</title>
		<link>http://hackaday.com/2010/10/08/add-supercaps-to-your-exercise-routine/</link>
		<comments>http://hackaday.com/2010/10/08/add-supercaps-to-your-exercise-routine/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 18:00:44 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[classic hacks]]></category>
		<category><![CDATA[ATmega128]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[exercise]]></category>
		<category><![CDATA[super capacitor]]></category>
		<category><![CDATA[supercap]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29102</guid>
		<description><![CDATA[Many exercise machines generate electricity as you pedal or climb in order to run the on-board electronics. Unfortunately if you stop or even slow down too much the juice will die and your exercise program will reset. Wanting to improve on this gotcha, [Mike] cracked open his exercise bike and added some super capacitors. On [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29102&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29103" title="supercaps-in-exercise-bike" src="http://hackadaycom.files.wordpress.com/2010/10/supercaps-in-exercise-bike-e1286552748988.jpg" alt="" width="470" height="350" /></p>
<p>Many exercise machines generate electricity as you pedal or climb in order to run the on-board electronics. Unfortunately if you stop or even slow down too much the juice will die and your exercise program will reset. Wanting to improve on this gotcha, [Mike] <a href="http://grieg.gotdns.com/blog/?p=261">cracked open his exercise bike and added some super capacitors</a>.</p>
<p>On the circuit board he found an ATmega128 was in charge of the user interface. He probed the board a little bit and couldn&#8217;t find how it was connected to the power regulators. After some additional snooping he found it has its own SOIC regulator separate from the ones that run the display and peripherals. He takes us through the calculations he made before choosing his parts. What he ended up with is a set of three supercaps in series that add about two minutes of juice before the levels drop and the chip resets. The design of the board helped a lot as the high-load electronics (like the LCD screen) are on a separate power bus than the processor.</p>
<br />Filed under: <a href='http://hackaday.com/category/classic-hacks/'>classic hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29102&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/08/add-supercaps-to-your-exercise-routine/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mike Szczys</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/10/supercaps-in-exercise-bike-e1286552748988.jpg" medium="image">
			<media:title type="html">supercaps-in-exercise-bike</media:title>
		</media:content>
	</item>
		<item>
		<title>Quadbike: bigger is better</title>
		<link>http://hackaday.com/2010/09/14/quadbike-bigger-is-better/</link>
		<comments>http://hackaday.com/2010/09/14/quadbike-bigger-is-better/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 23:32:58 +0000</pubDate>
		<dc:creator>Jakob Griffith</dc:creator>
				<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[big dog]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[burning man]]></category>
		<category><![CDATA[cycle]]></category>
		<category><![CDATA[lawn chair]]></category>
		<category><![CDATA[quad]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=28213</guid>
		<description><![CDATA[[Tom Wilson] has finished his latest human powered quadcycle. The BigDog, as its called, seats 4 persons in lawn chairs who pedal to their destination. We say latest, for [Tom] also made a slightly smaller version called The DogSled. Some improvements include being taller (8 feet total), larger (11 feet by 6 feet), and surprisingly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=28213&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-28214" title="My question stems, how do you get on it? I mean, its 8 feet tall! Sure you could lug around a small ladder, but really. " src="http://hackadaycom.files.wordpress.com/2010/09/dscn2529.jpg" alt="" width="470" height="330" /></p>
<p>[Tom Wilson] has finished his latest human powered quadcycle. <a href="http://www.thirstybeachlandscaping.com/quadbike/page11.html">The BigDog</a>, as its called, seats 4 persons in lawn chairs who pedal to their destination. We say latest, for [Tom] also made a slightly smaller version called <a href="http://www.thirstybeachlandscaping.com/quadbike/index.html">The DogSled</a>. Some improvements include being taller (8 feet total), larger (11 feet by 6 feet), and surprisingly lighter (over half the weight, bringing it in to 450 pounds). The build process is just as impressive as the bike itself; using pneumatic disk brakes to golf cart axles to even drainage pipe, its a perfect fit for <a href="http://www.burningman.com/">burning man</a>. Catch a video after the divide.</p>
<p>[Thanks Mowcius]</p>
<p><span id="more-28213"></span></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/09/14/quadbike-bigger-is-better/"><img src="http://img.youtube.com/vi/exz9EduZNLI/2.jpg" alt="" /></a></span>
<br />Filed under: <a href='http://hackaday.com/category/transportation-hacks/'>transportation hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/28213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/28213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/28213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/28213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/28213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/28213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/28213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/28213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=28213&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/09/14/quadbike-bigger-is-better/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jakob Griffith</media:title>
		</media:content>

		<media:content url="http://hackadaycom.files.wordpress.com/2010/09/dscn2529.jpg" medium="image">
			<media:title type="html">My question stems, how do you get on it? I mean, its 8 feet tall! Sure you could lug around a small ladder, but really. </media:title>
		</media:content>
	</item>
	</channel>
</rss>
