<?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; switch</title>
	<atom:link href="http://hackaday.com/tag/switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackaday.com</link>
	<description>Fresh hacks every day</description>
	<lastBuildDate>Fri, 10 Feb 2012 10:21:59 +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; switch</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>Fix broken buttons on your ASUS computer monitors</title>
		<link>http://hackaday.com/2012/01/19/fix-broken-buttons-on-your-asus-computer-monitors/</link>
		<comments>http://hackaday.com/2012/01/19/fix-broken-buttons-on-your-asus-computer-monitors/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:01:11 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[repair hacks]]></category>
		<category><![CDATA[Asus]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[stuck]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[vw202]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=65727</guid>
		<description><![CDATA[One of the perks of writing for Hackaday is that we often find hacks that we&#8217;ve been meaning to do ourselves. Here&#8217;s one that will let us fix our borked ASUS computer monitor buttons. [Silviu] has the same monitor we do, an ASUS VW202, and had the same problem of stuck buttons. We already cracked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=65727&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-65728" title="fixing-broken-monitor-buttons" src="http://hackadaycom.files.wordpress.com/2012/01/fixing-broken-monitor-buttons-e1326907279930.jpg" alt="" width="470" height="230" /></p>
<p>One of the perks of writing for Hackaday is that we often find hacks that we&#8217;ve been meaning to do ourselves. Here&#8217;s one that will let us fix our borked ASUS computer monitor buttons. [Silviu] has the same monitor we do, an ASUS VW202, and had the same problem of stuck buttons. We already cracked ours open and realized that the buttons are not easily replaced (you&#8217;ve got to source the right one). We just unstuck the offender and vowed not to press that button again, but [Silviu] actually figured out <a href="http://www.sgvulcan.com/fixing-a-self-pressing-button-on-an-asus-vw202sr-monitor/">how to disassemble and repair the PCB mount switches</a>.</p>
<p>As with most consumer electronics these days the worst part of the process is getting the monitor&#8217;s case apart. The plastic bezel has little spring tabs all around it that must be gently pried apart. Once the PCB which hosts the buttons was removed, he took the metal housing off of the broken switch. Inside he found that a bit of metal particulate (leftovers from manufacturing?) were causing the problem. A quick cleaning with a cotton swab removed the debris and got the tactile switch working again.</p>
<br />Filed under: <a href='http://hackaday.com/category/repair-hacks/'>repair hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/65727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/65727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/65727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/65727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/65727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/65727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/65727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/65727/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=65727&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2012/01/19/fix-broken-buttons-on-your-asus-computer-monitors/feed/</wfw:commentRss>
		<slash:comments>10</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/fixing-broken-monitor-buttons-e1326907279930.jpg" medium="image">
			<media:title type="html">fixing-broken-monitor-buttons</media:title>
		</media:content>
	</item>
		<item>
		<title>Tiny audio switcher eliminates repetitive plug swapping</title>
		<link>http://hackaday.com/2011/12/09/tiny-audio-switcher-eliminates-repetitive-plug-swapping/</link>
		<comments>http://hackaday.com/2011/12/09/tiny-audio-switcher-eliminates-repetitive-plug-swapping/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 16:01:48 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[musical hacks]]></category>
		<category><![CDATA[pcs hacks]]></category>
		<category><![CDATA[ATtiny13A]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[FT232R]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=62979</guid>
		<description><![CDATA[[Phil] uses both his computer’s speakers and a set of headphones while working at his desk, but he was growing tired of constantly having to remove the headset from his sound card in order to insert the speaker plug. He’s been meaning to rig something up to make it easier to switch outputs, but never [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62979&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-62981" title="usb-audio-switcher" src="http://hackadaycom.files.wordpress.com/2011/12/usb-audio-switcher.jpg" alt="usb-audio-switcher" width="470" height="342" /></p>
<p>[Phil] uses both his computer’s speakers and a set of headphones while working at his desk, but he was growing tired of constantly having to remove the headset from his sound card in order to insert the speaker plug. He’s been meaning to <a href="http://jumperone.com/2011/12/usb-audio-multiplexer/" target="_blank">rig something up</a> to make it easier to switch outputs, but never seemed to get around to it until he recently saw <a href="http://hackaday.com/2011/11/15/audio-output-selection-courtesy-of-the-internet/" target="_blank">this LAN-enabled audio switcher we featured.</a></p>
<p>His USB-controlled switch features a single audio input and two audio outputs, which he mounted on a nicely done homemade double-sided PCB. The switch can be toggled using any terminal program, sending commands to the on-board ATtiny13A via an FT232R USB to serial UART chip.</p>
<p>The switch’s operation is really quite simple, merely requiring [Phil] to type in the desired audio channel into the terminal. The ATiny and a small relay do the rest, directing the audio to the proper output.</p>
<br />Filed under: <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>, <a href='http://hackaday.com/category/musical-hacks/'>musical hacks</a>, <a href='http://hackaday.com/category/pcs-hacks/'>pcs hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/62979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/62979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/62979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/62979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/62979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/62979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/62979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/62979/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=62979&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/12/09/tiny-audio-switcher-eliminates-repetitive-plug-swapping/feed/</wfw:commentRss>
		<slash:comments>30</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/12/usb-audio-switcher.jpg" medium="image">
			<media:title type="html">usb-audio-switcher</media:title>
		</media:content>
	</item>
		<item>
		<title>Most useless machine upgrade &#8212; now with a button!</title>
		<link>http://hackaday.com/2011/08/07/most-useless-machine-upgrade-now-with-a-button/</link>
		<comments>http://hackaday.com/2011/08/07/most-useless-machine-upgrade-now-with-a-button/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 21:55:34 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[misc hacks]]></category>
		<category><![CDATA[7400]]></category>
		<category><![CDATA[most useless machine]]></category>
		<category><![CDATA[nand]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=51680</guid>
		<description><![CDATA[There&#8217;s a soft spot in our hearts for pointless projects, as long as they&#8217;re well executed. [Bertho] really hit the mark with his take on the most useless machine. We&#8217;ve seen several renditions of this concept, most of them hinging on a box that will turn a mechanical switch off whenever you turn it on. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=51680&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-51681" title="most-useless-machine-with-a-button" src="http://hackadaycom.files.wordpress.com/2011/08/most-useless-machine-with-a-button-e1312751485942.jpg" alt="" width="470" height="353" /></p>
<p>There&#8217;s a soft spot in our hearts for pointless projects, as long as they&#8217;re well executed. [Bertho] really hit the mark with <a href="http://www.vagrearg.org/?p=psm">his take on the most useless machine</a>. We&#8217;ve seen several renditions of this concept, most of them hinging on <a href="http://hackaday.com/2009/12/30/simplest-most-useless-machine/">a box that will turn a mechanical switch off whenever you turn it on</a>. But this take uses a push button to activate a switch flipping mechanism on another part of the machine.</p>
<p>You can see the drive gears in the image above. The final gear has a small bar which flips a switch to one side or the other. The circuit does this without the need of a microcontroller. A 7400 series NAND gate chip, some passive components, and two mechanical relays are all it takes. At each push of the button, the logic chip trips one of the relays to trigger the appropriate motor direction based on the current state of that switch. You can press the button during movement, but all that will do is delay the inevitable flip of the switch.</p>
<br />Filed under: <a href='http://hackaday.com/category/misc-hacks/'>misc hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/51680/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/51680/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/51680/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/51680/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/51680/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/51680/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/51680/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/51680/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=51680&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/08/07/most-useless-machine-upgrade-now-with-a-button/feed/</wfw:commentRss>
		<slash:comments>10</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/08/most-useless-machine-with-a-button-e1312751485942.jpg" medium="image">
			<media:title type="html">most-useless-machine-with-a-button</media:title>
		</media:content>
	</item>
		<item>
		<title>IP-based engine remote enable switch</title>
		<link>http://hackaday.com/2011/04/17/ip-based-engine-remote-enable-switch/</link>
		<comments>http://hackaday.com/2011/04/17/ip-based-engine-remote-enable-switch/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 19:08:22 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[security hacks]]></category>
		<category><![CDATA[transportation hacks]]></category>
		<category><![CDATA[anti-theft]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[zigbee]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=40641</guid>
		<description><![CDATA[[Mariano] owns a late 90’s Jeep Wrangler, and had no idea just how easy it was to steal. Unfortunately for him, the guy who made off with his Jeep was well aware of the car’s vulnerabilities. The problem lies in the ignition &#8211; it can be broken out with a screwdriver, after which, the car [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=40641&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-40642" title="remote_enable_switch" src="http://hackadaycom.files.wordpress.com/2011/04/remote_enable_switch.jpg" alt="remote_enable_switch" width="470" height="353" /></p>
<p>[Mariano] owns a late 90’s Jeep Wrangler, and had no idea just how easy it was to steal. Unfortunately for him, the guy who made off with his Jeep was well aware of the car’s vulnerabilities. The problem lies in the ignition &#8211; it can be broken out with a screwdriver, after which, the car can be started with a single finger. How’s that for security?</p>
<p>[Mariano] decided that he would take matters into his own hands and <a href="http://mc1322x.devl.org/projects/coap-fob.md" target="_blank">add a remote-controlled switch to his car</a> in order to encourage the next would-be thief to move on to an easier target. He describes his creation as a “remote kill” switch, though it’s more of a “remote enable” switch, enabling the engine when he wants to start the car rather than killing it on command.</p>
<p>The switch system is made up of two pieces &#8211; a server inside the car’s engine bay, and a remote key fob. The server and the fob speak to one another using IPv6 over 802.15.4 (the same standard used by ZigBee modules). Once the server receives a GET request from the key fob, it authenticates the user with a 128-bit AES challenge/response session, allowing the car to be started.</p>
<p>It is not the simplest way of adding a remote-kill switch to a car, but we like it. Unless the next potential car thief digs under the hood for a while, we’re pretty sure [Mariano’s] car will be safe for quite some time.</p>
<br />Filed under: <a href='http://hackaday.com/category/security-hacks/'>security 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/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/40641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/40641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/40641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/40641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/40641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/40641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/40641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/40641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=40641&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/04/17/ip-based-engine-remote-enable-switch/feed/</wfw:commentRss>
		<slash:comments>25</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/remote_enable_switch.jpg" medium="image">
			<media:title type="html">remote_enable_switch</media:title>
		</media:content>
	</item>
		<item>
		<title>Batman inspired hidden light switch</title>
		<link>http://hackaday.com/2011/02/14/batman-inspired-hidden-light-switch/</link>
		<comments>http://hackaday.com/2011/02/14/batman-inspired-hidden-light-switch/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 17:02:24 +0000</pubDate>
		<dc:creator>Mike Nathan</dc:creator>
				<category><![CDATA[home hacks]]></category>
		<category><![CDATA[wireless hacks]]></category>
		<category><![CDATA[batman]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=34920</guid>
		<description><![CDATA[[Chris] over at the New Hobbyist sent in his latest creation, a wireless light switch hidden within a statue bust. While shopping around for another project, he came across a wireless relay that can can be used to switch a standard 120v AC load. He bought the part without a project in mind, but inspiration [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=34920&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-34922" title="hidden_switch" src="http://hackadaycom.files.wordpress.com/2011/02/hidden_switch.jpg" alt="hidden_switch" width="450" height="409" /></p>
<p>[Chris] over at the New Hobbyist sent in his latest creation, <a href="http://www.thenewhobbyist.com/2011/02/wireless-light-switch-or-bust/" target="_blank">a wireless light switch hidden within a statue bust</a>. While shopping around for another project, he came across a wireless relay that can can be used to switch a standard 120v AC load. He bought the part without a project in mind, but inspiration quickly struck. Some of you young’uns might not remember the original Batman television series, but [Chris] certainly does. To access the Bat Cave, Bruce Wayne had to flip a secret switch located inside a bust of William Shakespeare that adorned his desk. While he doesn’t have a secret door to activate, [Chris] couldn’t think of any better way to switch on the lights in his man cave. He found a similar-looking bust of Beethoven and got to chopping his head off.</p>
<p>He fabricated a small mount for a push button, hiding the battery powered remote underneath, and an old 12v wall wart was repurposed to drive the wireless receiver. While not overly complicated, this is definitely a fun project and could make for a neat light switch in a kid’s room. Interested in some more Batman inspired hacks? Be sure to check out <a href="http://hackaday.com/2009/09/29/batcave-style-entrance-on-a-budget/" target="_blank">this Bat Cave-style entrance switch</a> from a few years back.</p>
<p>Keep reading to see a video of his hidden light switch in action.</p>
<p><span id="more-34920"></span><span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/02/14/batman-inspired-hidden-light-switch/"><img src="http://img.youtube.com/vi/BFTzlHkIDGQ/2.jpg" alt="" /></a></span></p>
<br />Filed under: <a href='http://hackaday.com/category/home-hacks/'>home hacks</a>, <a href='http://hackaday.com/category/wireless-hacks/'>wireless hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/34920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/34920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/34920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/34920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/34920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/34920/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/34920/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/34920/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=34920&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/02/14/batman-inspired-hidden-light-switch/feed/</wfw:commentRss>
		<slash:comments>7</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/02/hidden_switch.jpg" medium="image">
			<media:title type="html">hidden_switch</media:title>
		</media:content>
	</item>
		<item>
		<title>Touch sensors: overview, theory, and construction</title>
		<link>http://hackaday.com/2011/02/04/touch-sensors-overview-theory-and-construction/</link>
		<comments>http://hackaday.com/2011/02/04/touch-sensors-overview-theory-and-construction/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 20:30:07 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[peripherals hacks]]></category>
		<category><![CDATA[ac]]></category>
		<category><![CDATA[resistive]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[touch sensor]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=34230</guid>
		<description><![CDATA[This collection of touch sensor information should be of interest to anyone who liked the simple touch sensor post from Thursday. That was a resistive touch sensor and is covered in detail along with AC hum sensors that trigger based on induced current from power lines around you, and capacitive touch switches like we&#8217;ve seen [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=34230&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-34231" title="ac-hum-touch-switch" src="http://hackadaycom.files.wordpress.com/2011/02/ac-hum-touch-switch-e1296843439693.jpg" alt="" width="470" height="232" /></p>
<p><a href="http://pcbheaven.com/wikipages/How_a_Touch_Button_works/?p=0">This collection of touch sensor information</a> should be of interest to anyone who liked the <a href="http://hackaday.com/2011/02/03/34077/">simple touch sensor post</a> from Thursday. That was a resistive touch sensor and is covered in detail along with AC hum sensors that trigger based on induced current from power lines around you, and capacitive touch switches <a href="http://hackaday.com/2009/09/28/capacitive-buttons-control-all-life/">like we&#8217;ve seen in past hacks</a>. Each different concept is discussed and clearly illustrated like the slide above. [Giorgos Lazaridis] has also put together individual posts that build and demonstrate the circuits. We&#8217;ve embedded his resistive sensor demo video after the break and linked to all three example circuits.</p>
<p><span id="more-34230"></span>Resistive touch sensor video:</p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2011/02/04/touch-sensors-overview-theory-and-construction/"><img src="http://img.youtube.com/vi/zNmN_iaJuN0/2.jpg" alt="" /></a></span>
<ul>
<li><a href="http://pcbheaven.com/circuitpages/Resistance_Touch_Button">Resistive touch sensor circuit</a></li>
<li><a href="http://pcbheaven.com/circuitpages/AC_Hum_Touch_Button">AC hum circuit</a></li>
<li><a href="http://pcbheaven.com/circuitpages/PIC_Frequency_Change_Touch_Button">Capacitive touch circuit</a></li>
</ul>
<p>[Thanks Giorgos and Ben]</p>
<br />Filed under: <a href='http://hackaday.com/category/microcontrollers/'>Microcontrollers</a>, <a href='http://hackaday.com/category/peripherals-hacks/'>peripherals hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/34230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/34230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/34230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/34230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/34230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/34230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/34230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/34230/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=34230&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2011/02/04/touch-sensors-overview-theory-and-construction/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/02/ac-hum-touch-switch-e1296843439693.jpg" medium="image">
			<media:title type="html">ac-hum-touch-switch</media:title>
		</media:content>
	</item>
		<item>
		<title>Ethernet connection using capacitive coupling</title>
		<link>http://hackaday.com/2010/10/26/ethernet-connection-using-capacitive-coupling/</link>
		<comments>http://hackaday.com/2010/10/26/ethernet-connection-using-capacitive-coupling/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 15:00:58 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[misc hacks]]></category>
		<category><![CDATA[capacitive]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[magnetics]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29750</guid>
		<description><![CDATA[Wanting to save space and weight on his project build [Florin] set out to find a way to add Ethernet connectivity without the magnetics. His ill-advised first try involved directly coupling two switches, frying both in the process. After some research he found that Ethernet hardware manufacturers have considered the need for devices without the magnetics and there are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29750&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29751" title="ethernet-via-capacitive-coupling" src="http://hackadaycom.files.wordpress.com/2010/10/ethernet-via-capacitive-coupling-e1288102645958.jpg" alt="" width="470" height="353" /></p>
<p>Wanting to save space and weight on his project build [Florin] set out to find a way to <a href="http://www.youritronics.com/magnetic-less-ethernet/">add Ethernet connectivity without the magnetics</a>. His ill-advised first try involved directly coupling two switches, frying both in the process. After some research he found that Ethernet hardware manufacturers have considered the need for devices without the magnetics and there are several application notes available on the subject. [Florin] followed the information that Realtek has for their devices and learned that they can be couple capacitively. After depopulating the magnetics from a second pair of switches he wired up some resistor-capacitor networks on a breadboard and got the connecting to work.</p>
<br />Filed under: <a href='http://hackaday.com/category/misc-hacks/'>misc hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29750/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29750&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/26/ethernet-connection-using-capacitive-coupling/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/ethernet-via-capacitive-coupling-e1288102645958.jpg" medium="image">
			<media:title type="html">ethernet-via-capacitive-coupling</media:title>
		</media:content>
	</item>
		<item>
		<title>Waterproof DIY momentary-push switch</title>
		<link>http://hackaday.com/2010/10/20/waterproof-diy-momentary-push-switch/</link>
		<comments>http://hackaday.com/2010/10/20/waterproof-diy-momentary-push-switch/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 19:34:30 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[peripherals hacks]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[copper foil]]></category>
		<category><![CDATA[momentary push]]></category>
		<category><![CDATA[paintball]]></category>
		<category><![CDATA[scope]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29527</guid>
		<description><![CDATA[[Patman2700] has a nice scope for his paintball gun that uses a red dot instead of cross-hairs. The problem is that he kept forgetting to turn it off which ended up running the batteries down frequently. His solution to the problem was to get rid of the toggle switch used to turn it on and replace [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29527&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29528" title="diy-contact-switch" src="http://hackadaycom.files.wordpress.com/2010/10/diy-contact-switch.jpg" alt="" width="500" height="375" /></p>
<p>[Patman2700] has a nice scope for his paintball gun that uses a red dot instead of cross-hairs. The problem is that he kept forgetting to turn it off which ended up running the batteries down frequently. His solution to the problem was to get rid of the toggle switch used to turn it on and replace it will <a href="http://www.instructables.com/id/How-To-Make-a-Free-Tactical-Pressure-Switch/">a home-made momentary push button switch</a>. Now he presses the switch to aim and doesn&#8217;t waste juice when he&#8217;s running around, trying not to get pelted with paint.</p>
<p>Since this is used outside he wanted it to be water-tight. The switch is built using materials we&#8217;ve seen in <a href="http://hackaday.com/2010/10/05/build-a-simple-switch/">previous diy switches</a>; adhesive-backed copper sheets for conductors, foam to keep them separated until pressed, and plastic as a support. Copper is applied to the plastic base, with a ring of foam separating the base from the second layer of copper. When squeezed, the two layers of copper come in contact to complete the circuit. To make it work a bit better [Patman2700] added a dab of solder in the center of the bottom copper layer so there is less distance between conductors, and used extra foam to build up a bump in the center of the assembly for a better &#8216;button&#8217; feel. The whole thing is encased in shrink-wrap with the seams sealed with super glue to keep moisture at bay.</p>
<br />Filed under: <a href='http://hackaday.com/category/peripherals-hacks/'>peripherals hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29527/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29527&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/20/waterproof-diy-momentary-push-switch/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/diy-contact-switch.jpg" medium="image">
			<media:title type="html">diy-contact-switch</media:title>
		</media:content>
	</item>
		<item>
		<title>Open Call: send us your Debounce code</title>
		<link>http://hackaday.com/2010/10/13/open-call-send-us-your-debounce-code/</link>
		<comments>http://hackaday.com/2010/10/13/open-call-send-us-your-debounce-code/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 20:11:32 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[HackIt]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[debounce]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=29271</guid>
		<description><![CDATA[If you&#8217;ve ever designed an embedded system with at least one button you&#8217;ve had to deal with button debouncing. This is also know as contact bounce, a phenomenon where a button press can be registered as multiple button presses if not handled correctly. One way to take care of this is with a hardware filter built from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29271&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-29272" title="debounce-waveform" src="http://hackadaycom.files.wordpress.com/2010/10/debounce-waveform.jpg" alt="" width="470" height="244" /></p>
<p>If you&#8217;ve ever designed an embedded system with at least one button you&#8217;ve had to deal with button debouncing. This is also know as <a href="http://en.wikipedia.org/wiki/Debounce#Contact_bounce">contact bounce</a>, a phenomenon where a button press can be registered as multiple button presses if not handled correctly. One way to take care of this is with a hardware filter built from a resistor-capacitor setup, or by using a couple of NAND gates. We find that [Jack Ganssle] put together the most comprehensive and <a href="http://www.ganssle.com/debouncing.htm">approachable look at contact bounce</a> which you should read through if you want to learn more.</p>
<p>We&#8217;re interested in software solutions for debouncing buttons. This seems to be <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=33821">one of the most common forum questions</a> but it can be hard to find answers in the form of reliable code examples. Do you have debounce code that you depend on in every application? Are you willing to share it with the world? We&#8217;d like to gather as many examples as possible and publish them in one-post-to-rule-them-all.</p>
<h2>Send your debounce code to: <a href="mailto:debounce@hackaday.com">debounce@hackaday.com</a></h2>
<p>Here&#8217;s some guidelines to follow:</p>
<ul>
<li><strong>Please only include debounce code.</strong> Get rid of other unrelated functions/etc.</li>
<li><strong>You should send C code.</strong> If you want to also send an assembly code version that&#8217;s fine, but it must be supplementary to the C code.</li>
<li><strong>Please comment your code.</strong> This will help others understand and use it. You may be tempted to explain the code in your email but this info is best placed in the code comments</li>
<li><strong>Cite your sources.</strong> If you adapted this code from someone else&#8217;s please include a note about that in the code comments.</li>
</ul>
<p>As an example we&#8217;ve included one of our favorite sets of debounce code after the break. Please note how it follows the guidelines listed above.</p>
<p><span id="more-29271"></span></p>
<p><pre class="brush: cpp; wrap-lines: false;">/*--------------------------------------------------------------------------
10/13/2010: Button debounce code by Mike Szczys

based on &quot;danni debounce&quot; code by Peter Dannegger:
http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;p=189356#189356

This code detects and debounces button presses. It is tailored for use with
AVR microcontrollers but I've adapted it for other architectures easily and
successfully. It can be modified to use all eight bits on the same port
for up to eight buttons.

The interrupt service routine (ISR) at the bottom uses binary counter
variables (ct0 and ct1) to check the buttons once every 10ms until 40ms has
passed. If the button registeres the first and last times it reads it as
a keypress. There is no functionality in this code for detecting a held
button.
--------------------------------------------------------------------------*/

// F_CPU used by debounce to calculate 10ms interrupts
#define F_CPU 1200000

#include &lt;avr/io.h&gt;
#include &lt;avr/interrupt.h&gt;

//define pins used by buttons
#define KEY_DDR		DDRB
#define KEY_PORT	PORTB
#define KEY_PIN		PINB
#define KEY0		1	//Button on PB1
#define KEY1		2	//Button on PB2

//Debounce variables
unsigned char debounce_cnt = 0;
volatile unsigned char key_press;
unsigned char key_state;

/*--------------------------------------------------------------------------
  Prototypes
--------------------------------------------------------------------------*/
unsigned char get_key_press( unsigned char key_mask );
void init_timers(void);
void init_io(void);

/*--------------------------------------------------------------------------
  FUNC: 10/13/10 - Used to read debounced button presses
  PARAMS: A keymask corresponding to the pin for the button you with to poll
  RETURNS: A keymask where any high bits represent a button press
--------------------------------------------------------------------------*/
unsigned char get_key_press( unsigned char key_mask )
{
  cli();			// read and clear atomic !
  key_mask &amp;= key_press;	// read key(s)
  key_press ^= key_mask;	// clear key(s)
  sei();			// enable interrupts
  return key_mask;
}

/*--------------------------------------------------------------------------
  FUNC: 10/13/10 - Sets and starts a system timer
  PARAMS: NONE
  RETURNS: NONE
--------------------------------------------------------------------------*/
void init_timers(void)
{
  cli();			// read and clear atomic !
  //Timer0 for buttons
  TCCR0B |= 1&lt;&lt;CS02 | 1&lt;&lt;CS00;	//Divide by 1024
  TIMSK0 |= 1&lt;&lt;TOIE0;		//enable timer overflow interrupt
  sei();			// enable interrupts
}

/*--------------------------------------------------------------------------
  FUNC: 10/13/10 - Initialize input and output registers
  PARAMS: NONE
  RETURNS: NONE
--------------------------------------------------------------------------*/
void init_io(void)
{
  //Setup Buttons
  KEY_DDR &amp;= ~((1&lt;&lt;KEY0) | (1&lt;&lt;KEY1));	//Set pins as input
  KEY_PORT |= (1&lt;&lt;KEY0) | (1&lt;&lt;KEY1);	//enable pull-up resistors
}

/*--------------------------------------------------------------------------
  FUNC: 10/13/10 - Main
--------------------------------------------------------------------------*/
int main(void)
{
  init_timers();	//start the timer
  init_io();		//setup the buttons

  for (;;) //loop forever
  {
    if( get_key_press( 1&lt;&lt;KEY0 ))
    {
      //KEY0 press detected. Do something here
    }

    if (get_key_press( 1&lt;&lt;KEY1 ))
    {
      //KEY1 press detected. Do something here
    }
  }
}

//--------------------------------------------------------------------------
ISR(TIM0_OVF_vect)           // interrupt every 10ms
{
  static unsigned char ct0, ct1;
  unsigned char i;

  //TCNT0 is where TIMER0 starts counting. This calculates a value based on
  //the system clock speed that will cause the timer to reach an overflow
  //after exactly 10ms
  TCNT0 = (unsigned char)(signed short)-(((F_CPU / 1024) * .01) + 0.5);   // preload for 10ms interrupts

  i = key_state ^ ~KEY_PIN;    // key changed ?
  ct0 = ~( ct0 &amp; i );          // reset or count ct0
  ct1 = ct0 ^ (ct1 &amp; i);       // reset or count ct1
  i &amp;= ct0 &amp; ct1;              // count until roll over ?
  key_state ^= i;              // then toggle debounced state
  key_press |= key_state &amp; i;  // 0-&gt;1: key press detect
}</pre></p>
<p>[Photo credit: <a href="http://www.ganssle.com/debouncing.htm">Jack Ganssle</a>]</p>
<br />Filed under: <a href='http://hackaday.com/category/hackit/'>HackIt</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/29271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/29271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/29271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/29271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/29271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/29271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/29271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/29271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=29271&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/13/open-call-send-us-your-debounce-code/feed/</wfw:commentRss>
		<slash:comments>75</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/debounce-waveform.jpg" medium="image">
			<media:title type="html">debounce-waveform</media:title>
		</media:content>
	</item>
		<item>
		<title>Build a simple switch</title>
		<link>http://hackaday.com/2010/10/05/build-a-simple-switch/</link>
		<comments>http://hackaday.com/2010/10/05/build-a-simple-switch/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 21:00:57 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[peripherals hacks]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[copper]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[velcro]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=28968</guid>
		<description><![CDATA[Forget hacking an easy button, grab a couple of those outdated CD-Rs and build your own switch for that next project. This was developed with handicapped accessibility in mind; assembled easily with common products and it&#8217;s fairly robust. In fact, our junk box has everything you need except the adhesive backed copper foil. Combine two [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=28968&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-28970" title="a-simple-switch" src="http://hackadaycom.files.wordpress.com/2010/10/a-simple-switch-e1286293732487.jpg" alt="" width="470" height="353" /></p>
<p>Forget hacking an easy button, grab a couple of those outdated CD-Rs and <a href="http://www.instructables.com/id/CD-Switch">build your own switch</a> for that next project. This was developed with handicapped accessibility in mind; assembled easily with common products and it&#8217;s fairly robust. In fact, our junk box has everything you need except the adhesive backed copper foil. Combine two old CD&#8217;s, covered in copper on facing sides, separated by two strips of Velcro to separate the conductors. When pressure is applied, one CD flexes to make contact with the other and complete the circuit. So easy, yet we never thought of it. We&#8217;ll add it to our list of <a href="http://hackaday.com/2010/02/27/two-input-devices-made-with-common-items/">homebrew input devices</a>.</p>
<p>[Thanks Michael]</p>
<br />Filed under: <a href='http://hackaday.com/category/peripherals-hacks/'>peripherals hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/28968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/28968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/28968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/28968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/28968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/28968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/28968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/28968/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=28968&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/10/05/build-a-simple-switch/feed/</wfw:commentRss>
		<slash:comments>27</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/a-simple-switch-e1286293732487.jpg" medium="image">
			<media:title type="html">a-simple-switch</media:title>
		</media:content>
	</item>
		<item>
		<title>My what a large capacitor bank you have</title>
		<link>http://hackaday.com/2010/07/18/my-what-a-large-capacitor-bank-you-have/</link>
		<comments>http://hackaday.com/2010/07/18/my-what-a-large-capacitor-bank-you-have/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 20:18:44 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[capacitor]]></category>
		<category><![CDATA[coil gun]]></category>
		<category><![CDATA[pneumatic]]></category>
		<category><![CDATA[rail gun]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=26199</guid>
		<description><![CDATA[[Daniel Eindhoven] put together this 11,344 Joule capacitor bank that he says would be perfect for weapons such as a rail gun, coil gun, or electrothermal-chemical gun. He machined a couple of aluminum plates to act as a positive and negative bus. The two are separated by a denuded sheet of PCB (making us wonder [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=26199&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-26200" title="capacitor-bank" src="http://hackadaycom.files.wordpress.com/2010/07/capacitor-bank-e1279467694888.jpg" alt="" width="470" height="353" /></p>
<p>[Daniel Eindhoven] put together this <a href="http://www.megavolts.nl/en/projecten/geweren/160-condensator-bank-113kj-bij-350v">11,344 Joule capacitor bank</a> that he says would be perfect for weapons such as <a href="http://hackaday.com/2010/01/01/making-a-rail-gun-again/">a rail gun</a>, <a href="http://hackaday.com/2010/05/17/final-projects-wifi-coil-gun-turret/">coil gun</a>, or electrothermal-chemical gun. He machined a couple of aluminum plates to act as a positive and negative bus. The two are separated by a denuded sheet of PCB (making us wonder how <a href="http://www.megavolts.nl/images/stories/projecten/condensatorbank11,3kj/constructie/CIMG2123.JPG">he got the copper to peel off like that</a>). Once charged there&#8217;s the little problem of how to discharge the system without getting bit, which [Daniel] solved by <a href="http://www.megavolts.nl/en/projecten/geweren/158-hoog-vermogen-pneumatische-schakelaar">building a pneumatic switch</a>. We didn&#8217;t find the test-fire footage very interesting but we did embed the demonstration of his switch after the break.</p>
<p><span id="more-26199"></span></p>
<span style="text-align:center; display: block;"><a href="http://hackaday.com/2010/07/18/my-what-a-large-capacitor-bank-you-have/"><img src="http://img.youtube.com/vi/mCX0RQm0nsk/2.jpg" alt="" /></a></span>
<p>[Thanks Kurt via <a href="http://hackedgadgets.com/2010/07/16/113-kilojoule-capacitor-bank/">Hacked Gadgets</a>]</p>
<br />Filed under: <a href='http://hackaday.com/category/news/'>news</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/26199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/26199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/26199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/26199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/26199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/26199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/26199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/26199/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=26199&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/07/18/my-what-a-large-capacitor-bank-you-have/feed/</wfw:commentRss>
		<slash:comments>43</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/07/capacitor-bank-e1279467694888.jpg" medium="image">
			<media:title type="html">capacitor-bank</media:title>
		</media:content>
	</item>
		<item>
		<title>That light switch is disgusting!</title>
		<link>http://hackaday.com/2010/07/15/that-light-switch-is-disgusting/</link>
		<comments>http://hackaday.com/2010/07/15/that-light-switch-is-disgusting/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 17:07:50 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[misc hacks]]></category>
		<category><![CDATA[creepy]]></category>
		<category><![CDATA[disgusting]]></category>
		<category><![CDATA[hair]]></category>
		<category><![CDATA[ooze]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=26116</guid>
		<description><![CDATA[[Katrin Baumgarten] has fourteen switches that are made to gross you out. From a button that retreats into its hole as your finger approaches, to a mysterious goo-oozing faceplate, to a hairy housing that gets aroused as your try to flip it on, the intrigue is enough to get you to try out the next [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=26116&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-26117" title="disgusting-switches" src="http://hackadaycom.files.wordpress.com/2010/07/disgusting-switches-e1279211874698.jpg" alt="" width="470" height="313" /></p>
<p>[Katrin Baumgarten] has fourteen <a href="http://katrinbaumgarten.de/project/my-work/">switches that are made to gross you out</a>. From a button that retreats into its hole as your finger approaches, to a mysterious goo-oozing faceplate, to a hairy housing that gets aroused as your try to flip it on, the intrigue is enough to get you to try out the next creepy node in the network. There&#8217;s a clip of several different switches after the break and if that&#8217;s not enough she&#8217;s got more on <a href="http://vimeo.com/user4215300">her Vimeo channel</a>.</p>
<p><span id="more-26116"></span><div class='embed-vimeo' style='text-align:center;'><iframe src='http://player.vimeo.com/video/13361854' width='400' height='300' frameborder='0'></iframe></div></p>
<br />Filed under: <a href='http://hackaday.com/category/misc-hacks/'>misc hacks</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/26116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/26116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/26116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/26116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/26116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/26116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/26116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/26116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=26116&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/07/15/that-light-switch-is-disgusting/feed/</wfw:commentRss>
		<slash:comments>18</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/07/disgusting-switches-e1279211874698.jpg" medium="image">
			<media:title type="html">disgusting-switches</media:title>
		</media:content>
	</item>
		<item>
		<title>Unlocking the crippled potential of an unmanaged switch</title>
		<link>http://hackaday.com/2010/05/26/unlocking-the-crippled-potential-of-an-unmanaged-switch/</link>
		<comments>http://hackaday.com/2010/05/26/unlocking-the-crippled-potential-of-an-unmanaged-switch/#comments</comments>
		<pubDate>Wed, 26 May 2010 21:00:03 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[misc hacks]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[ATmega88]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[RTL8366SB]]></category>
		<category><![CDATA[sprite_tm]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[TL-SG1005D]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=24440</guid>
		<description><![CDATA[[Sprite_TM] outgrew the features of the cheap unmanaged TL-SG1005D switch he was using on his home network. Instead of buying a new and much more costly switch he cracked the cheap one open and found that the RTL8366SB chip inside possessed the ability to work harder but was crippled for sale as a low-end model. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=24440&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-24441" title="dumb-switch-managed-switch" src="http://hackadaycom.files.wordpress.com/2010/05/dumb-switch-managed-switch.jpg" alt="" width="470" height="413" /></p>
<p>[Sprite_TM] outgrew the features of the cheap unmanaged TL-SG1005D switch he was using on his home network. Instead of buying a new and much more costly switch <a href="http://spritesmods.com/?art=rtl8366sb">he cracked the cheap one open</a> and found that the RTL8366SB chip inside possessed the ability to work harder but was crippled for sale as a low-end model. It wasn&#8217;t as easy as that <a href="http://hackaday.com/2010/03/31/update-50mhz-to-100mhz-scope-conversion/">oscilloscope firmware upgrade</a> we saw a while back. He had to add an AVR ATmega88 to send I2C commands to the switch. Turns out that the I2C protocol wasn&#8217;t standard and after much head scratching he found some Linux drivers for the chipset that gave him enough info to send the configuration commands he needed. Now he&#8217;s go the managed switch he needed for his VLAN for the cost of a microcontroller and some wire.</p>
<br />Filed under: <a href='http://hackaday.com/category/misc-hacks/'>misc hacks</a>, <a href='http://hackaday.com/category/news/'>news</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/24440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/24440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/24440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/24440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/24440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/24440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/24440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/24440/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=24440&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/05/26/unlocking-the-crippled-potential-of-an-unmanaged-switch/feed/</wfw:commentRss>
		<slash:comments>29</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/05/dumb-switch-managed-switch.jpg" medium="image">
			<media:title type="html">dumb-switch-managed-switch</media:title>
		</media:content>
	</item>
		<item>
		<title>Update: IR controlled lighting</title>
		<link>http://hackaday.com/2010/04/26/update-ir-controlled-lighting/</link>
		<comments>http://hackaday.com/2010/04/26/update-ir-controlled-lighting/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 18:00:54 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[classic hacks]]></category>
		<category><![CDATA[home hacks]]></category>
		<category><![CDATA[dimmer]]></category>
		<category><![CDATA[infrared]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[pic]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=23473</guid>
		<description><![CDATA[[Muris] is back with another infrared controlled lighting hack. When we checked in with him last year he was showing off an IR controlled dimmer module. Now he&#8217;s back with this device that is CFL friendly. Because standard CFL bulbs are not dimmer compatible he&#8217;s adapted the project away from dimming and toward switching. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=23473&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-23474" title="Dual channel IR lighting control" src="http://hackadaycom.files.wordpress.com/2010/04/dual-channel-ir-control-e1272297119733.jpg" alt="" width="470" height="319" /></p>
<p>[Muris] is back with <a href="http://www.elektronika.ba/753/dual-channel-ir-remote-control-v1/">another infrared controlled lighting hack</a>. When we checked in with him last year he was showing off <a href="http://hackaday.com/2009/02/07/ir-controlled-light-dimmer/">an IR controlled dimmer module</a>. Now he&#8217;s back with this device that is CFL friendly. Because standard CFL bulbs are not dimmer compatible he&#8217;s adapted the project away from dimming and toward switching. The new design still uses an infrared remote but now it can turn two devices on and off again or toggle between them. Our favorite part of the build is that the PIC based device can learn the codes of whichever remote you choose, rather than having to rely on one specific type of remote.</p>
<br />Filed under: <a href='http://hackaday.com/category/classic-hacks/'>classic 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/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/23473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/23473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/23473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/23473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/23473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/23473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/23473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/23473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=23473&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/04/26/update-ir-controlled-lighting/feed/</wfw:commentRss>
		<slash:comments>11</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/04/dual-channel-ir-control-e1272297119733.jpg" medium="image">
			<media:title type="html">Dual channel IR lighting control</media:title>
		</media:content>
	</item>
		<item>
		<title>Powering a switch via PoE</title>
		<link>http://hackaday.com/2010/01/26/powering-a-switch-via-poe/</link>
		<comments>http://hackaday.com/2010/01/26/powering-a-switch-via-poe/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 23:00:08 +0000</pubDate>
		<dc:creator>Mike Szczys</dc:creator>
				<category><![CDATA[classic hacks]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[PoE]]></category>
		<category><![CDATA[power over ethernet]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://hackaday.com/?p=21110</guid>
		<description><![CDATA[[Kajer] was doing some work with IP phones that use Power over Ethernet. While trying to get this to work with a network switch he decided to use PoE to power the switch itself. The best thing about this is he managed to shoehorn all of the necessary bits into the stock case. Those bits [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=21110&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-21111" title="PoE-powered-switch" src="http://hackadaycom.files.wordpress.com/2010/01/poe-powered-switch.jpg" alt="" width="470" height="353" /></p>
<p>[Kajer] was doing some work with IP phones that use Power over Ethernet. While trying to get this to work with a network switch he decided to <a href="http://www.hackb.us/kajer/PoE_Hack/">use PoE to power the switch itself</a>. The best thing about this is he managed to shoehorn all of the necessary bits into the stock case. Those bits include a bridge rectifier, transistor, resistor, and a 5v power supply. Along the way he discovered he can now power the switch off of USB if he wishes.</p>
<br />Posted in classic hacks  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hackadaycom.wordpress.com/21110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hackadaycom.wordpress.com/21110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hackadaycom.wordpress.com/21110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hackadaycom.wordpress.com/21110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hackadaycom.wordpress.com/21110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hackadaycom.wordpress.com/21110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hackadaycom.wordpress.com/21110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hackadaycom.wordpress.com/21110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hackaday.com&amp;blog=4779443&amp;post=21110&amp;subd=hackadaycom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hackaday.com/2010/01/26/powering-a-switch-via-poe/feed/</wfw:commentRss>
		<slash:comments>34</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/01/poe-powered-switch.jpg" medium="image">
			<media:title type="html">PoE-powered-switch</media:title>
		</media:content>
	</item>
	</channel>
</rss>
