<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stigern.Net</title>
	<atom:link href="http://stigern.net/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://stigern.net/blog</link>
	<description>my little blog</description>
	<lastBuildDate>Sat, 21 Apr 2012 20:27:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Update: Pings 1.2</title>
		<link>http://stigern.net/blog/?p=404&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-pings-1-2</link>
		<comments>http://stigern.net/blog/?p=404#comments</comments>
		<pubDate>Sat, 21 Apr 2012 20:27:43 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[adress]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[ms]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[pings]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=404</guid>
		<description><![CDATA[A simple and easy to use network ping software, 100% freeware! Simply add hosts into a list, and the program will ping each host, great for monitoring several hosts. You can also adjust max delay time before a host is considered as down, also increase or decrease ping interval. News in 1.2: - New: File, [...]]]></description>
			<content:encoded><![CDATA[<p>A simple and easy to use network ping software, 100% freeware!</p>
<p>Simply add hosts into a list, and the program will ping each host, great for monitoring several hosts. You can also adjust max delay time before a host is considered as down, also increase or decrease ping interval.</p>
<p>News in 1.2:</p>
<p><em>- New: File, New option.</em><br />
<em>- New: Shows average delay.</em><br />
<em>- New: Uptime in percentage.</em><br />
<em>- New: Option to remove host after specified failed pings.</em><br />
<em>- Bugfix: duplicate ip possible.</em><br />
<em>- Bugfix: Several small adjustments &amp; bugfixes.</em></p>
<p><img class="alignnone" src="http://stigern.net/images/2012/pings12.PNG" alt="" width="587" height="614" /></p>
<p><a href="http://stigern.net/forum/download/file.php?id=53" target="_blank">DOWNLOAD Pings 1.2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=404</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stigerns Minecraft Server</title>
		<link>http://stigern.net/blog/?p=395&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stigerns-minecraft-server</link>
		<comments>http://stigern.net/blog/?p=395#comments</comments>
		<pubDate>Mon, 12 Mar 2012 19:41:13 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[bukkit]]></category>
		<category><![CDATA[dynmap]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[stigern]]></category>
		<category><![CDATA[survival]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=395</guid>
		<description><![CDATA[We are a few guys playing on my minecraft server and wish new players welcome! Server is located in Norway, it’s limited to 30 players atm. It&#8217;s a realism server, so nothing will be spawned. Whitelist is not enabled, but we run permissionsEX. So that anyone new can join to have a look. If you [...]]]></description>
			<content:encoded><![CDATA[<p>We are a few guys playing on my minecraft server and wish new players welcome! Server is located in Norway, it’s limited to 30 players atm.</p>
<p>It&#8217;s a realism server, so nothing will be spawned.</p>
<p>Whitelist is not enabled, but we run permissionsEX. So that anyone new can join to have a look. If you want to join please write a littlebit about you in this forum post: <a href="http://stigern.net/forum/viewtopic.php?f=8&amp;t=3">http://stigern.net/forum/viewtopic.php?f=8&amp;t=3</a></p>
<p>&nbsp;</p>
<p><img class="alignnone" src="http://stigern.net/images/animals.png" alt="" width="300" height="202" /></p>
<p><strong>Common sense is our main rule!</strong></p>
<p>We use the following plugins with bukkit:<br />
<em>PermissionsEX (WorldGuard, WorldEdit, ChatManager)</em><br />
<em> LWC</em><br />
<em> Multiple Homes (Personal homes to tp to)</em><br />
<em> DynMap &amp; DynMap WorldGuard</em><br />
<em> ChopTree (More realistic chopping down trees)</em><br />
<em> MineBackup</em></p>
<p>Map has been reset only a couple of days ago.</p>
<p><strong>Rules:</strong><br />
1. No Stealing &amp; Griefing<br />
2. Do not harass or disrespect members.<br />
3. Do not lit forest on fire, if you need to. Ask a Mod or Admin for permission and plan it wisely.<br />
4. No Cheats(noclip, x-ray, item spawner, etc).<br />
5. No Random Attacking. PVP is only allowed if both parts agrees.<br />
6. Chop down a tree? Please plant a few new, unless it&#8217;s in a thick forest.<br />
7. Random building without any reason isn&#8217;t allowed.(ex dirt houses)<br />
8. Respect others creations, do not build only 1x block from their houses etc.<br />
9. Use roads and connect, if you build close to a existing road.</p>
<p><strong>Server specs:</strong><br />
Core2Duo E8400 @3Ghz<br />
8GB Ram<br />
750GB HDD<br />
70/10 MBit Connection<br />
Uptime 24/7<br />
Server has been around for over 2 years.</p>
<p>Max players 20-30, we are still looking for new players!</p>
<p>Server adress: <strong>stigern.dyndns.org</strong><br />
OR 95.34.9.193<br />
Default port 25565.</p>
<p>Map at <a href="http://stigern.dyndns.org:8123/" target="_blank">stigern.dyndns.org:8123</a></p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=395</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basefields &#8211; Players vs AI, conquer all fields</title>
		<link>http://stigern.net/blog/?p=393&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=basefields-players-vs-ai-conquer-all-fields</link>
		<comments>http://stigern.net/blog/?p=393#comments</comments>
		<pubDate>Sun, 11 Mar 2012 14:01:06 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Freeware Games]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[rts]]></category>
		<category><![CDATA[simulation]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[studio]]></category>
		<category><![CDATA[visual]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=393</guid>
		<description><![CDATA[I&#8217;m working on a little rts-game. The idea for now: You got a grid 5&#215;5 with &#8220;fields&#8221; that can be bought and built into a base. Each base contains farms, food, soldiers, cannons. Farms give food for the soldiers, food can also be sold which is the main income atm. There are also citizens, which [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a little rts-game.</p>
<p>The idea for now:</p>
<p>You got a grid 5&#215;5 with &#8220;fields&#8221; that can be bought and built into a base. Each base contains farms, food, soldiers, cannons. Farms give food for the soldiers, food can also be sold which is the main income atm. There are also citizens, which generate income from each field.</p>
<p>Give it a try and see if you can beat the AI.</p>
<p><img class="alignnone" src="http://s15.postimage.org/sob797nxn/screenshot03.jpg" alt="" width="640" height="349" /></p>
<p><a href="http://stigern.net/forum/download/file.php?id=34" target="_blank"><strong>Download Basefields 0.3</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=393</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pings 1.1 Network Pinger</title>
		<link>http://stigern.net/blog/?p=382&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pings-1-0-network-pinger</link>
		<comments>http://stigern.net/blog/?p=382#comments</comments>
		<pubDate>Thu, 08 Mar 2012 12:58:07 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[adress]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[ms]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[pings]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=382</guid>
		<description><![CDATA[A simple and easy to use network ping software, 100% freeware! Simply add hosts into a list, and the program will ping each host, great for monitoring several hosts. You can also adjust max delay time before a host is considered as down, also increase or decrease ping interval. Update: Pings 1.1 is done, changelog [...]]]></description>
			<content:encoded><![CDATA[<p>A simple and easy to use network ping software, 100% freeware!</p>
<p>Simply add hosts into a list, and the program will ping each host, great for monitoring several hosts. You can also adjust max delay time before a host is considered as down, also increase or decrease ping interval.</p>
<p>Update: Pings 1.1 is done, changelog from 1.0:</p>
<p>- Stability issues fixed<br />
- Major improvement in performance (Asynchronous ping)<br />
- Ability to run on Synchronized pings too<br />
- Save &amp; Open your hosts list<br />
- GUI rework<br />
- Always on top option<br />
- Color themes</p>
<p><img class="alignnone" title="Pings 1.1" src="http://stigern.net/images/2012/pings11.PNG" alt="" width="476" height="442" /></p>
<p><strong><a href="http://stigern.net/forum/download/file.php?id=33" target="_blank">Download Pings 1.1</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=382</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad quality shield bought on eBay</title>
		<link>http://stigern.net/blog/?p=376&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bad-quality-electronics-bought-on-ebay</link>
		<comments>http://stigern.net/blog/?p=376#comments</comments>
		<pubDate>Thu, 29 Dec 2011 18:06:11 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[auction]]></category>
		<category><![CDATA[bad]]></category>
		<category><![CDATA[board]]></category>
		<category><![CDATA[bread]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[seller]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=376</guid>
		<description><![CDATA[I was looking for some cheap shields for my Arduino board, and stumbled across a very inexpensive proto shield. A well known seller with good reputation had it laying around for only 7,65 $, so it couldn&#8217;t be that bad. Well, after a couple of weeks it arrived in the mail. And here are a [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for some cheap shields for my Arduino board, and stumbled across a very inexpensive proto shield. A well known seller with good reputation had it laying around for only 7,65 $, so it couldn&#8217;t be that bad.</p>
<p>Well, after a couple of weeks it arrived in the mail. And here are a few things I noticed:</p>
<p><img class="alignnone" src="http://stigern.net/images/2011/badqual1.jpg" alt="" width="500" height="408" /><br />
Looks like it&#8217;s rusted and kind of old?</p>
<p><img class="alignnone" src="http://stigern.net/images/2011/badqual2.jpg" alt="" width="500" height="206" /><br />
Not even close to nice solderings&#8230;</p>
<p><img class="alignnone" src="http://stigern.net/images/2011/badqual3.jpg" alt="" width="500" height="372" /><br />
Some plastic is melted off? <img src='http://stigern.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Well, its not worth that much and it actually works, but for how long?</p>
<p>Whats most annoying is how the seller can say that its Quality and New!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=376</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHT11 Library for Arduino 1.0</title>
		<link>http://stigern.net/blog/?p=373&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dht11-library-for-arduino-1-0</link>
		<comments>http://stigern.net/blog/?p=373#comments</comments>
		<pubDate>Fri, 23 Dec 2011 04:34:12 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[1.0]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[board]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[dht11]]></category>
		<category><![CDATA[dht22]]></category>
		<category><![CDATA[duemilanove]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[hum]]></category>
		<category><![CDATA[latest]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[mega]]></category>
		<category><![CDATA[modifiy]]></category>
		<category><![CDATA[temp]]></category>
		<category><![CDATA[uno]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=373</guid>
		<description><![CDATA[DHT11 is a cheap and easy to use temperature and humidity sensor. But since it&#8217;s digital and only uses one pin there is a great library for it! Of course it has some problems compiling on Arduino 1.0 and the one I found on the arduino.cc playground had problems. So I modified it, and put [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://stigern.net/images/2011/dht11.jpg" alt="" width="545" height="332" /></p>
<p>DHT11 is a cheap and easy to use temperature and humidity sensor. But since it&#8217;s digital and only uses one pin there is a great library for it!</p>
<p>Of course it has some problems compiling on Arduino 1.0 and the one I found on the arduino.cc playground had problems. So I modified it, and put both the library and the example in a nice and easy to unzip package. The example sends data on serial back to the pc, so it looks like this when posting results:</p>
<p><img class="alignnone" src="http://stigern.net/images/2011/dht11read.JPG" alt="" width="255" height="199" /></p>
<p>Credit goes to the arduino playground for the library and example code.</p>
<p><a href="http://stigern.net/forum/download/file.php?id=9" target="_blank">Download Arduino DHT11 Sensor Library</a></p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=373</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: C# Communicating with Arduino over Serial</title>
		<link>http://stigern.net/blog/?p=349&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-c-communicating-with-arduino-over-serial</link>
		<comments>http://stigern.net/blog/?p=349#comments</comments>
		<pubDate>Mon, 19 Dec 2011 18:13:16 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[communation]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[sharp]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=349</guid>
		<description><![CDATA[In this tutorial I&#8217;ll try to show you how to easily tell an arduino what to do from a C# program using serial communication. The only thing the C# program does is send a byte to the arduino, and the arduino program will then set pin 13 to HIGH or LOW. Lets start with the [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I&#8217;ll try to show you how to easily tell an arduino what to do from a C# program using serial communication. The only thing the C# program does is send a byte to the arduino, and the arduino program will then set pin 13 to <strong>HIGH</strong> or <strong>LOW</strong>.</p>
<p>Lets start with the C# sourcecode, it&#8217;s written in C# Express 2010 which you can download for free <a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express" target="_blank">here</a>. Get the C# project files:</p>
<p><a href="http://stigern.net/forum/download/file.php?id=7" target="_blank">Download CSharpEasySerialSource.zip</a></p>
<p><img class="alignnone" title="Easy Serial" src="http://stigern.net/images/2011/EasySerial.jpg" alt="" width="296" height="201" /></p>
<p>I tried to comment the code so that it should explain most of the stuff going on. But it&#8217;s pretty basic, you select the current comport then hit Connect. If you selected the correct port that the arduino is using it should now be connected. The textbox only takes numbers, writing text there will only result in it being converted to bytes.</p>
<p>When you click Send it will try to send the contents of the textbox to the arduino. In my example code I used &#8220;0&#8243; and &#8220;1&#8243; for turning off an on the LED. Lets look at the Ardunio example:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-collapsed"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: none;"><pre class="cpp" style="font-family:monospace;"><span class="kw4">void</span> setup<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
  Serial.<span class="me1">begin</span><span class="br0">&#40;</span>9600<span class="br0">&#41;</span><span class="sy4">;</span>
  <span class="co1">// Define the led pin as output</span>
  pinMode<span class="br0">&#40;</span>13, OUTPUT<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
<span class="kw4">void</span> loop<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
  <span class="co1">// Read data from serial communication</span>
  <span class="kw1">if</span> <span class="br0">&#40;</span>Serial.<span class="me1">available</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy1">&gt;</span> 0<span class="br0">&#41;</span> <span class="br0">&#123;</span>
  <span class="kw4">int</span> b <span class="sy1">=</span> Serial.<span class="me1">read</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy4">;</span>
  <span class="co1">// Note, I made it so that it's more sensitive to 0-40% load.</span>
  <span class="co1">// Since thats where it's usually at when using the computer as normal.</span>
<span class="kw1">if</span> <span class="br0">&#40;</span>b <span class="sy1">==</span> 1<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
  digitalWrite<span class="br0">&#40;</span>13, HIGH<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
<span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>b <span class="sy1">==</span> 0<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
  digitalWrite<span class="br0">&#40;</span>13, LOW<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
Serial.<span class="me1">flush</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div>
<p>What the program does it&#8217;s listening on the serial port. And when it receives a &#8220;1&#8243; pin 13 goes HIGH, and if it receives &#8221;0&#8243; it goes LOW. Pin 13 is in most cases a LED thats on the arduino board, so you only need a bare arduino to test it. And if you don&#8217;t know any C# and just want to use the program to control a arduino I&#8217;ve created a zip file containing only the .exe file for the program:</p>
<p><a href="http://stigern.net/forum/download/file.php?id=8" target="_blank">Download CSharpEasySerial.zip</a></p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/CEYNXhO11r4" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=349</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Arduino, LEDs that blinks to the Music!</title>
		<link>http://stigern.net/blog/?p=332&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=arduino-leds-that-blinks-to-the-music</link>
		<comments>http://stigern.net/blog/?p=332#comments</comments>
		<pubDate>Sat, 17 Dec 2011 08:24:59 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[beat]]></category>
		<category><![CDATA[blink]]></category>
		<category><![CDATA[disco]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[mic]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=332</guid>
		<description><![CDATA[I always wanted to make something out of the microphone sensor I got, it&#8217;s just been laying in a compartment-box until recently when I got the idea of a music beat blinker. Basically it just reads the analog value from the mic and converts it to a 0-1023 value, but since the microphone sensor I [...]]]></description>
			<content:encoded><![CDATA[<p>I always wanted to make something out of the microphone sensor I got, it&#8217;s just been laying in a compartment-box until recently when I got the idea of a music beat blinker.</p>
<p><a href="http://stigern.net/images/2011/arduinobeatshd.jpg" rel="lightbox[332]" title="Arduino Beats"><img class="alignnone" title="Arduino Beats" src="http://stigern.net/images/2011/arduinobeats.jpg" alt="" width="300" height="254" /></a></p>
<p>Basically it just reads the analog value from the mic and converts it to a 0-1023 value, but since the microphone sensor I got is meant for 12 volts, it only ranges from 0 &#8211; 5-600 on 5 volts. But it works just as good, only it&#8217;s not as sensitive as it should be. When playing music that is never a problem hehe.</p>
<p><img class="alignnone" src="http://stigern.net/images/2011/explanation.jpg" alt="" width="200" height="213" /></p>
<p>The microphone sensor I use is one I found on eBay some time ago, just search for &#8220;Arduino Sound Sensor Module&#8221; they cost around 5$. And are very easy to use, only ground it and feed it with 5 volts and stick the output to a analog input on the Arduino. I&#8217;ll also post the program code for the Arduino, it&#8217;s the same thats used in the video below. If you want to make something like this yourself using my example, you only need 5 LEDs or more. And just wire them to the digital pins 2-5, and of course the mic to analog 0. Code example can be found in the bottom of this article.</p>
<p>Here is a video showing the LEDs blinking to the music.</p>
<p><iframe src="http://www.youtube.com/embed/1lAyXiVFdZc?rel=0&amp;hd=1" frameborder="0" width="562" height="317"></iframe></p>
<p>Program code example:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-collapsed"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: none;"><pre class="cpp" style="font-family:monospace;"><span class="kw4">int</span> micValue <span class="sy1">=</span> <span class="nu0">0</span><span class="sy4">;</span> <span class="co1">// Store the readings here.</span>
<span class="kw4">void</span> setup<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="co1">// Settings the pins for output to leds.</span>
pinMode<span class="br0">&#40;</span>2, OUTPUT<span class="br0">&#41;</span><span class="sy4">;</span>
pinMode<span class="br0">&#40;</span>3, OUTPUT<span class="br0">&#41;</span><span class="sy4">;</span>
pinMode<span class="br0">&#40;</span>4, OUTPUT<span class="br0">&#41;</span><span class="sy4">;</span>
pinMode<span class="br0">&#40;</span>5, OUTPUT<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw4">void</span> loop<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="co1">// Lets read from the mic</span>
micValue <span class="sy1">=</span> analogRead<span class="br0">&#40;</span>0<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
<span class="co1">// Then choose what leds to turn</span>
<span class="co1">// on and off.</span>
<span class="kw1">if</span> <span class="br0">&#40;</span>micValue <span class="sy1">&gt;</span> 410<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>2, HIGH<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
<span class="br0">&#125;</span>
<span class="kw1">else</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>2, LOW<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw1">if</span> <span class="br0">&#40;</span>micValue <span class="sy1">&gt;</span> 520<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>3, HIGH<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
<span class="br0">&#125;</span>
<span class="kw1">else</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>3, LOW<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw1">if</span> <span class="br0">&#40;</span>micValue <span class="sy1">&gt;</span> 580<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>4, HIGH<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
<span class="br0">&#125;</span>
<span class="kw1">else</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>4, LOW<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw1">if</span> <span class="br0">&#40;</span>micValue <span class="sy1">&gt;</span> 610<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>5, HIGH<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
<span class="br0">&#125;</span>
<span class="kw1">else</span>
<span class="br0">&#123;</span>
digitalWrite<span class="br0">&#40;</span>5, LOW<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="br0">&#125;</span></pre></div></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=332</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cheap arduino nano from DX!</title>
		<link>http://stigern.net/blog/?p=274&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cheap-arduino-nano-from-dx</link>
		<comments>http://stigern.net/blog/?p=274#comments</comments>
		<pubDate>Thu, 15 Dec 2011 05:05:25 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[cheap]]></category>
		<category><![CDATA[dealextreme]]></category>
		<category><![CDATA[modified]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[v3]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=274</guid>
		<description><![CDATA[Looking for yet another cheap &#38; tiny arduino? For only 16.90$ you get a Arduino Nano V3 clone from dealextreme! Ever since modified electronics stopped making the pico I&#8217;ve been looking for another arduino in the same price range and size, and now dx got just the right one. - Digital I/O Pins: 12 (D2~D13) [...]]]></description>
			<content:encoded><![CDATA[<p>Looking for yet another cheap &amp; tiny arduino?</p>
<p><img class="alignnone" title="Arduino Nano V3" src="http://stigern.net/images/2011/nanov31.jpg" alt="" width="350" height="244" /></p>
<p>For only <strong>16.90</strong>$ you get a <strong><a href="http://www.dealextreme.com/p/arduino-nano-v3-0-81877" target="_blank">Arduino Nano V3</a></strong> clone from dealextreme!<br />
Ever since modified electronics stopped making the pico I&#8217;ve been looking for another arduino in the same price range and size, and now dx got just the right one.</p>
<p><em>- Digital I/O Pins: 12 (D2~D13)</em><br />
<em>- Analog Input Pins: 8 (A0~A7)</em><br />
<em>- TTL serial data receive and transmit pins: RX/TX</em><br />
<em>- PWM Output Pins: 6 (D3/D5/D6/D9/D10/D11)</em><br />
<em>- Microcontroller: Atmel Atmega328P-AU</em><br />
<em>- Small mini-B USB for programming and serial monitor (cable included)</em><br />
<em>- Supports external 5V~12V DC power supply or 9V battery</em><br />
<em>- ICSP header for direct program download</em><br />
<em>- Cable length: 108cm</em></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=274</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ultrasonic HC-SR04 Sensor</title>
		<link>http://stigern.net/blog/?p=253&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ultrasonic-hc-sr04-sensor</link>
		<comments>http://stigern.net/blog/?p=253#comments</comments>
		<pubDate>Tue, 13 Dec 2011 21:12:14 +0000</pubDate>
		<dc:creator>Stigern</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[1.0]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[cheap]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[hc]]></category>
		<category><![CDATA[hc-sr04]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[sonar]]></category>
		<category><![CDATA[ultrasonic]]></category>

		<guid isPermaLink="false">http://stigern.net/blog/?p=253</guid>
		<description><![CDATA[I&#8217;ve stumbled by this neat little sonar sensor on eBay a few days ago, I&#8217;ve had some bad experiences with other similiar ultrasonic sensors so I was kind of skeptic to this one. But for the low price I couldn&#8217;t resist. Anyhow, it turned out to be a great sensor. It&#8217;s accurate down to 1 cm, which is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve stumbled by this neat little sonar sensor on eBay a few days ago, I&#8217;ve had some bad experiences with other similiar ultrasonic sensors so I was kind of skeptic to this one. But for the low price I couldn&#8217;t resist. Anyhow, it turned out to be a great sensor. It&#8217;s accurate down to 1 cm, which is perfect and in most cases more than enough. You get it for around 5$ on eBay.</p>
<p><img class="alignnone" title="HC-SR04" src="http://www.stigern.net/images/hc-sr04.jpg" alt="" width="320" height="245" /></p>
<p>&nbsp;</p>
<p>Only problem I ran into when using it with arduino was the library, got some nasty compiling errors. So I changed a few lines in the library and made it work with Arduino 1.0 and older arduino IDEs.</p>
<p><strong><a href="http://stigern.net/forum/download/file.php?id=6" target="_blank">Download HC-SR04 Library for Arduino 1.0</a></strong></p>
<p><img class="alignnone" src="http://img7.imageshack.us/img7/9834/img20111203184610.jpg" alt="" width="320" height="240" /></p>
<p>Also wrote a little example for using it with a serial display:</p>
<p>&nbsp;</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-collapsed"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://stigern.net/blog/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: none;"><pre class="cpp" style="font-family:monospace;"><span class="co2">#include &lt;SoftwareSerial.h&gt;</span>
<span class="co2">#include &quot;Ultrasonic.h&quot;</span>
Ultrasonic ultrasonic<span class="br0">&#40;</span>12,13<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
SoftwareSerial mySerial<span class="br0">&#40;</span>5,4<span class="br0">&#41;</span><span class="sy4">;</span>
&nbsp;
<span class="kw4">void</span> setup<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
mySerial.<span class="me1">begin</span><span class="br0">&#40;</span>9600<span class="br0">&#41;</span><span class="sy4">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw4">void</span> loop<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
mySerial.<span class="me1">print</span><span class="br0">&#40;</span><span class="st0">&quot;Distance: &quot;</span><span class="br0">&#41;</span><span class="sy4">;</span>
mySerial.<span class="me1">print</span><span class="br0">&#40;</span>ultrasonic.<span class="me1">Ranging</span><span class="br0">&#40;</span>CM<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy4">;</span>
mySerial.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot; Cm.&quot;</span><span class="br0">&#41;</span><span class="sy4">;</span>
delay<span class="br0">&#40;</span>250<span class="br0">&#41;</span><span class="sy4">;</span>
mySerial.<span class="me1">print</span><span class="br0">&#40;</span><span class="st0">&quot;?f&quot;</span><span class="br0">&#41;</span><span class="sy4">;</span> <span class="co1">// Clear display.</span>
<span class="br0">&#125;</span></pre></div></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://stigern.net/blog/?feed=rss2&#038;p=253</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

