<?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>Miha Valencic &#187; development</title>
	<atom:link href="http://www.mihavalencic.com/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mihavalencic.com</link>
	<description>Solving IT Challenges</description>
	<lastBuildDate>Tue, 25 Oct 2011 06:32:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Netduino &#8211; the beginning</title>
		<link>http://www.mihavalencic.com/2011/01/20/netduino-beginning/</link>
		<comments>http://www.mihavalencic.com/2011/01/20/netduino-beginning/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 00:02:18 +0000</pubDate>
		<dc:creator>miha</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[Netduino]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fritzing]]></category>
		<category><![CDATA[LED]]></category>

		<guid isPermaLink="false">http://www.mihavalencic.com/?p=279</guid>
		<description><![CDATA[I&#8217;ve received Netduino Plus yesterday. After playing with the on-board LED and button switch, I tried something else today. Since I don&#8217;t have a background in electronics, I googled a bit, asked around and connected LED, a couple of resistors and a transistor (BC108C) to control the external LED with the digital output of a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mihavalencic.com/wp-content/uploads/2011/01/netduino.jpg"><img src="http://www.mihavalencic.com/wp-content/uploads/2011/01/netduino.jpg" alt="netduino" title="netduino" width="359" height="270" class="alignnone size-full wp-image-286" /></a><br />
I&#8217;ve received <a href="http://www.netduino.com/netduinoplus/specs.htm">Netduino Plus</a> yesterday. After playing with the on-board LED and button switch, I tried something else today. Since I don&#8217;t have a background in electronics, I googled a bit, asked around and connected LED, a couple of resistors and a transistor (BC108C) to control the external LED with the digital output of a Netduino.<br />
The project goal is simple enough for a seasoned electronics guy, but for me, it is quite a challenge:</p>
<ul>
<li>Function as a <a href="http://www.eberle.de/product.aspx?id=2340">regular thermostat</a></li>
<li>Which can be controlled remotely via SMS as well:
<ul>
<li>to check current temperature on location</li>
<li>to set desired temperature on location</li>
<li>to switch power on or off for the oil boiler (heating furnace) and water pumps</li>
<li>to alert via SMS when the temperature drops below a defined threshold</li>
</ul>
</li>
</ul>
<p>The <a href="http://www.netduino.com">Netduino</a>/<a href="http://www.arduino.cc/">Arduino</a> boards are  amazing in that they offer a high level language to control them and create your stuff. You can develop &#038; debug with Visual Studio in case of Netduino boards using the familiar interface and software development skills. There are <a href="http://www.sparkfun.com/categories/103">tons of shields</a> (addons, plugins) available for those boards as well. I&#8217;m planning on integrating real time clock, digital temperature sensor and a cellular shield (GSM functionality) and a graphical LCD next. Baby steps.</p>
<h2>So, how did I wire the external LED?</h2>
<p>First, I had to learn some basics:</p>
<ol>
<li>You have to limit current for the LED, otherwise it will burn</li>
<li>You have to drop the voltage, or the LED will burn</li>
</ol>
<p>You can limit current by using resistors. I used the 5V pin on the Netduino, and LED needs only 2.5V, so I had to halve the voltage and limit current at the same time. You can do this simply by using two resistors. Smart people call this <a href="http://en.wikipedia.org/wiki/Voltage_divider">voltage divider</a>. First, I calculated the maximum current that is allowed for the LED, and that is 20mA. Given the 5V voltage and formula V = R*I, the resistor comes out to 5V / 0.02A = 250&#8486; (Ohm). Given that, I now needed to lower the voltage, which in my case is simple. The formula for voltage divider is Vout = Vin * R1 / (R1 + R2). Now that I know that R1 + R2 should be 250&#8486; it is easy to calculate that R1 = R2 = 125 Ohm. I actually used 120&#8486; resistors as I didn&#8217;t have 125&#8486; ones.<br />
So, the LED was lit, but I wanted to control it via software, so I needed a &#8220;switching&#8221; mechanism. I asked around used NPN transistor for that. I connected the LED output to collector of a transistor, and connected the emitor part of the transistor to ground. Now, we need to tell the transistor to &#8220;open up&#8221;. I figured I&#8217;ll just connect the digital output to base of transistor, but friendly guys on a Slovenian <a href="http://www.elektronik.si/phpBB2/viewtopic.php?t=24113">electronics forum suggested</a> that I use a resistor in between. So I did.<br />
The end result? A program, which turns the LED on whenever I press the button. The final schema looks something like this:<br />
<img src="http://www.mihavalencic.com/wp-content/uploads/2011/01/blinking_bb.png" alt="Blinking netduino with external LED" title="Blinking netduino with external LED" width="412" height="518" class="alignnone size-full wp-image-289" /><br />
This image was made with <a href="http://fritzing.org/">Fritzing</a> which looks like a very promising project as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mihavalencic.com/2011/01/20/netduino-beginning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>After YSlow, now Page Speed from Google</title>
		<link>http://www.mihavalencic.com/2009/06/05/after-yslow-now-page-speed-from-google/</link>
		<comments>http://www.mihavalencic.com/2009/06/05/after-yslow-now-page-speed-from-google/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 21:36:36 +0000</pubDate>
		<dc:creator>miha</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.mihavalencic.com/?p=191</guid>
		<description><![CDATA[Page Speed is an YSlow alternative for testing and optimizing websites. I tested it only briefly on Firefox 3.5b4 (officialy, it does not support beta Firefox releases, but you can always unpack the XPI and change the maxversion attribute. Both YSlow and Page Speed require the excellent Firebug extension, which is an essential tool for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/speed/page-speed/">Page Speed</a> is an <a href="http://developer.yahoo.com/yslow/">YSlow</a> alternative for testing and optimizing websites. I tested it only briefly on Firefox 3.5b4 (officialy, it does not support beta Firefox releases, but you can always unpack the XPI and change the <em>maxversion</em> attribute.</p>
<p>Both YSlow and Page Speed require the excellent Firebug extension, which is an essential tool for web developers. If you don&#8217;t know YSlow or Page Speed yet, now is the time to get acquainted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mihavalencic.com/2009/06/05/after-yslow-now-page-speed-from-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

