<?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>DanielAndrade.net &#187; Hardware</title>
	<atom:link href="http://www.danielandrade.net/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danielandrade.net</link>
	<description>Daniel Andrade Tech Stuff</description>
	<lastBuildDate>Sat, 19 Nov 2011 10:39:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>DIY: Home UBUNTU NAS Server</title>
		<link>http://www.danielandrade.net/2011/08/29/diy-home-ubuntu-nas-server/</link>
		<comments>http://www.danielandrade.net/2011/08/29/diy-home-ubuntu-nas-server/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 18:25:00 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=528</guid>
		<description><![CDATA[Back in 2003, I used to connect my computer on the my old 32&#8242; TV, those huge and heavy TVs, to watch stuff from the internet, at that time, eMule [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://i.imgur.com/1M8EL.jpg" alt="" /></p>
<p>Back in 2003, I used to connect my computer on the my old 32&#8242; TV, those huge and heavy TVs, to watch stuff from the internet, at that time, eMule was ruling the p2p community (can&#8217;t talk about USENET right? :} ). Then  in 2008 I decided to build a better <a href="http://www.danielandrade.net/2008/02/29/how-i-built-my-htpc/">HTPC</a> (Home Theater PC), a full dedicated computer connected to my TV, with good MotherBoard/VGA/SoundBoard, well, a good computer, with gaming capacities. It was good while it lasted, but you know, it was huge black box below my TV, bit noisy, but it did the job.</p>
<p>Early this year, I got a 2TB Lacie Network Space 2, which is a simple NAS Server, and a WD Plus Live. The WD PLUS LIVE is nothing more than a small computer with an operating system to playback videos and music. He has no storage, so it should you have to plug a thumb-drive, external hard drive on it or connect to the network, which will give access to shared files over the network, in my case, files are stored at the Network Space 2 connected to the router. When I bought the WD, I was impressed with the image quality, and how he can play heavy files without any choke. I watched the Band of Brothers show recently co-directed by Tom Hanks and Steven Spielberg in FULL HD 1920×1080 , where files were like 7GB for episode of 50-60 minutes. I played all over the network, and it worked perfectly. </p>
<p>Anyway, my Lacie NAS stopped working, some problem with the file system, but the HD was still working great.  There is a way to re-format the Lacie&#8217;s file system, but it&#8217;s a pain in the as*. So that&#8217;s when I decided to build a real NAS Server, running UBUNTU and using that Network Space&#8217;s hard drive and another 1TB driving that was laying around. I based my NAS on the <a href="http://paulstamatiou.com/diy-200-dollar-pc">DIY 200U$ PC from Paul Stamatiou</a>, I don&#8217;t even know if he still has his own NAS, but I&#8217;m really enjoin mine.</p>
<h2>Hardware</h2>
<p><img src="http://i.imgur.com/JScwe.jpg" alt="" /></p>
<p>For the hardware, I ended up with a fanless MiniITX motherboard <a href="http://www.intel.com/content/www/us/en/motherboards/desktop-motherboards/desktop-board-di510mo.html">Intel D510MO</a>, which has a Atom processor, Gigabit ethernet (all my home network is Gigabit, so it does make a difference). I am also using a 2GB 800Mhz Kingston RAM memory, and both two SATA connectors. The MOBO has up to seven 2.0 USB and one mini PCI Express, in case I want to add more SATA drives in the future.</p>
<p>As I told before, I am using a 2TB HD from my old NAS, and also a 1TB HD that I had, so ≈ 3TB, good enough for now&#8230; for now!</p>
<p>Power supply, well, just got a regular one, but another good solution would be a tiny power supply, for example the <a href="http://www.mini-box.com/s.nl/it.A/id.417/.f">picoPSU</a>.</p>
<h2>Building the case</h2>
<p><img src="http://i.imgur.com/Gj4KH.jpg" alt="" /></p>
<p><img src="http://i.imgur.com/KucS8.jpg" alt="" /></p>
<p><img src="http://i.imgur.com/qby9u.jpg" alt="" /></p>
<p>As the MOBO is fanless, I don&#8217;t think it would be a good idea to let it locked in a box somewhere in my apartment, so I decided to build a acrylic case and leave the sides open for air circulation.<br />
You just need to get a drill, make some holes and you are done.</p>
<h2>Software</h2>
<p><strong>O/S</strong></p>
<p><img src="http://i.imgur.com/KzN9W.png" alt="" align="left"/> There is nothing better then Linux for any kind of server, and my distro of choice is UBUNTU, quick to install, easy to configure get it running smooth.</p>
<p>For installing it, you could use a USB stick with ubuntu on it, and set to install from the stick, and you are good to go.</p>
<p>When UBUNTU was installed, internet started working right away and there was no extra driver needed, just what I like about this distro.</p>
<p>You may want to update the packs from your server. I like using the Terminal, you can do it simply by typing: </p>
<p>[cc lang="bash"]sudo apt-get update[/cc]<br />
[cc lang="bash"]sudo apt-get upgrade[/cc]</p>
<p></p>
<p><strong>Torrenting</strong></p>
<p><img src="http://i.imgur.com/ebngF.png" alt="" width="75px" align="left"/>For downloading stuff from the internet, such as my Linux distribution, I like using torrent, the best p2p protocol ever!<br />
I like leaving torrent open 24/7, and my choice for this task is <strong>Transmission-daemon</strong>, it runs on the background, I can access it using any Browser, iPhone using a app called <strong>iControlBits</strong> or even using a super cool and multiplatform GUI called <strong>Transmission-Gui</strong>. </p>
<p><a href="http://www.webupd8.org/2009/12/setting-up-transmission-remote-gui-in.html">You can check HERE for a detailed tutorial on how to set the daemon + Gui</a>.</p>
<p><strong>Backups</strong></p>
<p><del datetime="2011-08-30T03:38:30+00:00">For backups, I am using <a href="http://www.superflexible.com/">Super Flexible File Synchronizer</a>, and backing up my files via SFTP.<br />
</del></p>
<p>For backup I use SSH and RSYNC via terminal. It&#8217;s simple, light weight and funcional, you don&#8217;t need to use ShareWare software for this, and the way I&#8217;m doing it, you can even backup to your server through the internet.</p>
<p>I am not using any RAID to clone my disks because one is 1TB and the other is 2TB, the second reason is that  I don&#8217;t really need to backup all data on that disks. My main concern is Documents and Pictures, especially pictures! So these are the files I save on both drives. What i&#8217;ve done is, I always sync my files to one folder on the NAS via SFTP, then with RSYNC and Cron, everyday at 3AM, it checks if files are the same, otherwise they sync both HDs. Maybe not the best ou easiest way, but it works.</p>
<p>Next month I will move to Italy for one semester, and I know I will take many Gigs of pics. University&#8217;s internet connection will probably be fast, so I will backup everything from there to my NAS Server. So if something goes wrong with my files there, I will still be able to access them from home. </p>
<p>So, for backing up my photos via SSH to the NAS, I always want to make an exact copy of the files on my Macbook, so the code below does the job.<br />
You can remove the <strong>-e &#8216;ssh -p 224&#8242;</strong> part if your SSH uses the default port 22. And my server IP is <strong>192.168.1.104</strong>, you should change to your IP.</p>
<p>[cc lang="bash"]rsync -av &#8211;update &#8211;delete -e &#8216;ssh -p 224&#8242; /home/path/to/folders user@192.168.1.104:/home/path/on/SERVER/[/cc]</p>
<p><strong>Webmin</strong></p>
<p>Webmin is a great application to help you manage your server. I use it to create FTP users, manage crons and much more.</p>
<p>&#8220;Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.&#8221; Text from <a href="http://www.webmin.com/">Webmin&#8217;s website</a>. There you can find all information on how to install/configure it.</p>
<p>You should take a look!</p>
<p><strong>Apache/Mysql/PHP/PHPMyAdmin</strong></p>
<p>I like building websites, I usually run websites on my own computer before launching it to the world. But I am enjoying more creating websites and accessing them from my NAS Servers. </p>
<p>To install all this, just time on terminal:</p>
<p>[cc lang="bash"] sudo apt-get install apache2 mysql-server-5.1 php5 php5-mysql php5-cli[/cc]</p>
<p>Your default home folder will be <strong>/var/www</strong></p>
<p><strong>FTP</strong></p>
<p>Right now I am using <strong>proftpd</strong> to run all my ftp file transfers (but today I usually just transfer files over <strong>SSH</strong>). You can use <strong><a href="http://www.webmin.com/">WEBMIN</a></strong> to handle the FTP, or you can follow many tutorials found on the internet. For example <a href="http://ubuntuforums.org/showthread.php?t=79588">THIS</a>.</p>
<p><strong>SSH</strong></p>
<p>To install SSH on your server, just use this:</p>
<p>[cc lang="bash"]sudo apt-get install openssh-server[/cc]</p>
<p>A good thing to do is to change your default SSH port, it can help on the security of your server. For that, edit the config file:<br />
[cc lang="c"]gksu gedit /etc/ssh/sshd_config[/cc] where it says <strong>PORT 22</strong>, change to something like <strong>PORT 224</strong>.</p>
<p><strong>Subsonic &#8211; Free Music Streamer</strong></p>
<p><img src="http://i.imgur.com/AESgwl.jpg" alt="" /></p>
<p>OMG, I wish I knew this software before, it AMAZING! Check the description from their website, I&#8217;m highlighting what I think amazing:</p>
<p>&#8220;<em>Subsonic is a free, web-based media streamer, <strong>providing ubiquitous access to your music</strong>. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.</p>
<p><strong><a href="http://www.subsonic.org/">Subsonic</a></strong> is designed to <strong>handle very large music collections (hundreds of gigabytes)</strong>. Although optimized for MP3 streaming, it works for any audio or video format that can stream over HTTP, for instance AAC and OGG. By using transcoder plug-ins,<strong> Subsonic supports on-the-fly conversion and streaming of virtually any audio format,</strong> including WMA, FLAC, APE, Musepack, WavPack and Shorten.</p>
<p><strong>If you have constrained bandwidth, you may set an upper limit for the bitrate of the music streams. Subsonic will then automatically resample the music to a suitable bitrate.</strong></p>
<p>In addition to being a streaming media server, Subsonic works very well as a local jukebox. The intuitive web interface, as well as search and index facilities, are optimized for efficient browsing through large media libraries. Subsonic also comes with an integrated Podcast receiver, with many of the same features as you find in iTunes.</em>&#8221;</p>
<p>Here is what I am doing, when I am home, I simply use the browser to access all my songs. As it re-sample the music files on-the-fly, I created a user that I use when I&#8217;m not home, re-sampling files to 128kbps. And when I accessing via my iPhone&#8217;s 3G network, it goes down to 64kbps (slow 3G!!!).</p>
<p>On my phone, I am using a App called <a href="http://itunes.apple.com/us/app/isub-music-streamer/id362920532?mt=8">iSub</a>, you can configure different bit-rates if you are using Wireless or 3G, and it also caches all songs played. So I don&#8217;t need to sync songs with my iphone no more, I just listen to songs on Subsonic and then shuffle them when I on the road. I am impressed, you should check it out!</p>
<p>To have it up and running, there are plenty of information on the website!</p>
<p><strong>Now you have some pictures of the server up and running:</strong></p>
<p><img src="http://i.imgur.com/y7irN.jpg" alt="" /></p>
<p><img src="http://i.imgur.com/dUcqL.jpg" alt="" /></p>
<p>If you enjoy this post, or has something to say,<br />
just leave a commend below.</p>
<p>Thanks for reading <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/08/29/diy-home-ubuntu-nas-server/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Dotklok + LM35 Temperature Sensor</title>
		<link>http://www.danielandrade.net/2011/04/10/dotklok-lm35-temperature-sensor/</link>
		<comments>http://www.danielandrade.net/2011/04/10/dotklok-lm35-temperature-sensor/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 04:24:18 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=486</guid>
		<description><![CDATA[I got my Dotklok up and running some days ago, I am really enjoying it on my room. But I want to do more with it. Too bad right now [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.danielandrade.net/wp-content/uploads/2011/04/DSC_1160.jpg" alt="" /></p>
<p>I got my <a href="http://www.technoetc.net/dotklok/">Dotklok</a> up and running some days ago, I am really enjoying it on my room.<br />
But I want to do more with it. Too bad right now I don&#8217;t have much time to play with electronics and build cool things.</p>
<p>Anyway, today I decided to spend some time learning the Dotklok&#8217;s code and add a temperature sensor to it. The result was really cool, and now I am sharing the bit of code I added to the clock.</p>
<p>To make it work in your clock, you must add a new effect called<strong> temperature();</strong> in the <strong><em>switch</em></strong> area, then in<br />
time animations, add the code below. And for the hardware, I used a LM35 Temperature Sensor connected in <strong>5V, GND,</strong> and <strong>AD3</strong>, but can use any AD available, just change the code afterwards.</p>
<p>Here is the code, but you can check the <a href="http://pastebin.com/raw.php?i=ergXRMtB">RAW</a> file too.<br />
[cc lang="c"]</p>
<p>// temperature()<br />
// Temperature Sensor + Clock &#8211; by Daniel Spillere Andrade &#8211; www.DanielAndrade.net<br />
// Should Change the Temperature Only when minutes change, to prevent floating on temperature<br />
// Based on http://www.danielandrade.net/2008/07/05/temperature-sensor-arduino/ &#8211; Daniel Spillere Andrade &#8211; daniel [a] danielandrade.net</p>
<p>void temperature(){</p>
<p>  ht1632_clear();</p>
<p>  plot(0,0,1); plot(0,15,1); plot(23,15,1); plot(23,0,1);</p>
<p>  //Draw Dots and Temperature</p>
<p>  plot(7,3,1);<br />
  plot(7,5,1);<br />
  plot(16,3,1);<br />
  plot(16,5,1);</p>
<p>  plot(13,9,1);<br />
  plot(13,10,1);<br />
  plot(14,9,1);<br />
  plot(14,10,1);</p>
<p>  // Drawing the &#8216;C&#8217;, it&#8217;s ugly I know <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
  for(int i=16;i&lt;19;i++){<br />
    for(int j=9;j&lt;14;j++){<br />
          if(j==9 || j==13) { plot (i,j,1);}<br />
          else { plot(16,j,1); }<br />
    }<br />
  }</p>
<p>  int temppin = 3; // Define LM35 PIN<br />
  int tempval; // Temperature Read Variable</p>
<p>  tempval = ( 5.0 * analogRead(temppin) * 100.0) / 1024.0; //Makes the first read</p>
<p>  /* TIME LOOP */<br />
  do{</p>
<p>    time_now = RTC.now();</p>
<p>    if( ( time_now.minute() != time_prev.minute() ) ){<br />
    if( !power_up &#038;&#038; midnight_random() )  return;</p>
<p>        tempval = 0;<br />
        for(int i=0;i< =9;i++){<br />
          tempval = tempval + (( 5.0 * analogRead(temppin) * 100.0) / 1024.0); // Reads the Variable and converts to Celsius<br />
          delay(100);                                                           // tempf = (tempval * 9)/ 5 + 32; to converts to fahrenheit<br />
        }<br />
       tempval = tempval/10;</p>
<p>    }<br />
      // Here starts the code. <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
      // Draw Temperature, only when minute changes!</p>
<p>      putchar_3x5(5,9,(tempval%100)/10);<br />
      putchar_3x5(9,9,tempval%10);</p>
<p>      //Draw Time<br />
      putchar_3x5(0,2,(time_now.hour()%100)/10);<br />
      putchar_3x5(3,2,time_now.hour()%10);<br />
      putchar_3x5(9,2,time_now.minute()/10);<br />
      putchar_3x5(12,2,time_now.minute()%10);<br />
      putchar_3x5(18,2,time_now.second()/10);<br />
      putchar_3x5(21,2,time_now.second()%10);</p>
<p>      time_prev = time_now;</p>
<p>    /* CHECK BUTTONS, return if necessary */<br />
    if( change_animation() )  return;</p>
<p>    while( PAUSE &#038;&#038; b5.isPressed( )); // pause mode for photos</p>
<p>  } while(1);</p>
<p>}</p>
<p>[/cc]</p>
<p>Some more pics and video.</p>
<p><img src="http://www.danielandrade.net/wp-content/uploads/2011/04/DSC_1161.jpg" alt="" /><br />
<img src="http://www.danielandrade.net/wp-content/uploads/2011/04/DSC_1166.jpg" alt="" /></p>
<p></p>
<p><iframe title="YouTube video player" width="600" height="368" src="http://www.youtube.com/embed/onRPV3Oqt8Y?hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>What do you think?<br />
If you modify the code, don&#8217;t forget to share! </p>
<p>Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/04/10/dotklok-lm35-temperature-sensor/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Arduino + Sound Sensor</title>
		<link>http://www.danielandrade.net/2011/04/09/arduino-sound-sensor/</link>
		<comments>http://www.danielandrade.net/2011/04/09/arduino-sound-sensor/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 01:04:21 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=484</guid>
		<description><![CDATA[I got a sound sensor on Ebay some days ago, and decided to give it a try! Really simple, just made a code to light up the led when the [...]]]></description>
			<content:encoded><![CDATA[<p>I got a sound sensor on Ebay some days ago, and decided to give it a try!<br />
Really simple, just made a code to light up the led when the volume was higher the ambient sound.</p>
<p>Just for fun! <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><iframe title="YouTube video player" width="600" height="368" src="http://www.youtube.com/embed/fOlStxYiVqs?hd=1" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/04/09/arduino-sound-sensor/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using Arduino to calculate Quadratic function</title>
		<link>http://www.danielandrade.net/2011/04/04/using-arduino-to-calculate-quadratic-function/</link>
		<comments>http://www.danielandrade.net/2011/04/04/using-arduino-to-calculate-quadratic-function/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 04:32:43 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=471</guid>
		<description><![CDATA[This is a simple and quick code I made for teach variables with arduino programming, where we enter the variable numbers a, b, c in and we get the answer [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple and quick code I made for teach variables with arduino programming,<br />
where we enter the variable numbers <strong>a, b, c</strong> in<br />
<img src="http://www.danielandrade.net/wp-content/uploads/eq2grau.png" alt="" /><br />
 and we get the answer using the<strong> Serial Monitor.</strong>.</p>
<p>I won&#8217;t get in details about this code, it&#8217;s quite straightforward. But if you have any question, just ask! <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[cc lang="c"]</p>
<p>/* Bhaskara Calculator<br />
   Daniel Spillere Andrade &#8211; www.danielandrade.net<br />
   Simple code showing how to use arduino to calculate Quadratic function.</p>
<p>   X =>   [-b +- sqrt( b^2 - 4ac)] / 2a</p>
<p>   Change the a, b and c to get the result via Serial Monitor<br />
*/<br />
int a = 1;<br />
int b = -10;<br />
int c = 25;<br />
float delta, result1, result2;</p>
<p>#include &#8220;math.h&#8221; // Math!</p>
<p>void setup() { </p>
<p>     Serial.begin(9600);</p>
<p>     // Calculte delta<br />
     // b^2 &#8211; 4 * a * c</p>
<p>     delta = pow(b,2) &#8211; 4 * a * c;</p>
<p>     // Analize delta</p>
<p>     if(delta&lt;0) {<br />
       Serial.print(&#8220;DELTA=&#8221;);Serial.println(delta);<br />
       Serial.println(&#8220;Delta < 0, can't calculate!");<br />
       // Ends the program<br />
     }</p>
<p>     else if (delta==0) {<br />
       Serial.println("Delta = 0, we can calculate!!!");</p>
<p>        result1 = result2 = (-b) / (2 * a); </p>
<p>        Serial.print("X1=X2="); Serial.println(result1);</p>
<p>     }</p>
<p>     else if (delta>0) {</p>
<p>       // X1 != X2</p>
<p>       delta = sqrt(delta);</p>
<p>       Serial.print(&#8220;DELTA=&#8221;);Serial.println(delta);<br />
       Serial.println(&#8220;Delta > 0, we can calculate&#8221;);</p>
<p>        result1 = (-b + delta) / (2 * a);<br />
        result2 = (-b &#8211; delta) / (2 * a);</p>
<p>        Serial.print(&#8220;X1=&#8221;); Serial.println(result1);<br />
        Serial.print(&#8220;X2=&#8221;); Serial.println(result2);<br />
     }</p>
<p>    //Done</p>
<p>}</p>
<p>void loop() { } </p>
<p>[/cc]</p>
<p> <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/04/04/using-arduino-to-calculate-quadratic-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My HTPC 2.0</title>
		<link>http://www.danielandrade.net/2011/04/02/htpc-2-0/</link>
		<comments>http://www.danielandrade.net/2011/04/02/htpc-2-0/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 04:02:14 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[htpc]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=457</guid>
		<description><![CDATA[Long ago, I wrote How I Made my HTPC at my place. Time passes and things change. End of year has arrived, Christmas and everything, so I decided to upgrade [...]]]></description>
			<content:encoded><![CDATA[<p>	<img src="http://danielandrade.net/wp-content/uploads/mediacenter2/001.jpg" alt="" /></p>
<p>	Long ago, I wrote <a href="http://www.danielandrade.net/2008/02/29/how-i-built-my-htpc/"> How I Made my HTPC </a> at my place. Time passes and things change. End of year has arrived, Christmas and everything, so I decided to upgrade my system to a more efficient and cheaper one. The new choices were using a <a href="http://en.wikipedia.org/wiki/Network-attached_storage"> <strong> NAS </strong> </a> (Network Attached Storage) allowing all files can be accessed from any machine connected to the network, in this case I am using <a href="http://www.lacie.com/us/products/product.htm?pid=11492"> Lacie Network Space 2 </a> 2TB storage. A Gigabit router <strong> TP-LINK </strong>, so far I&#8217;m very happy with this router, although. A media player <a href="http://www.amazon.com/Western-Digital-Media-Player-WDBABX0000NBK-NESN/dp/B003MVZ60I"> WD-PLUS Live </a> that has an embedded Linux and play videos in various formats, even <strong> FullHD </strong>, and access online content like YouTube and some radios.</p>
<p>	 <strong>Media Center</strong>:</p>
<p>	<img src="http://danielandrade.net/wp-content/uploads/mediacenter2/002.jpg" alt="" /></p>
<p>	I will begin showing every part it:</p>
<p>	<strong> Lacie Network Space 2 &#8211; 2TB </strong></p>
<p>	<img src="http://danielandrade.net/wp-content/uploads/mediacenter2/lacie-networkspace.jpg" alt="" /></p>
<p>	A <strong> NAS </strong> very powerful, relatively inexpensive and with a storage space for my current needs for backup and media like movies and TV shows.</p>
<p>	The <strong> NAS </strong> has a good web interface, and you can even download torrents while your computer is OFF. It uses only 6W in standby mode and 12W in active mode.</p>
<p>	You can manage your files via the Finder (I believe the Nautilus or Windows Explorer as well). Or the way I prefer, via <strong> FTP </strong>. Testing the speed via FTP I got around 30MB/s, really good for a ARM processor.</p>
<p>	There is the possibility of hacking the device and get full SSH access, but as I do everything I need from my <strong> Macbook&#8217;s </strong> terminal or via the WDLIVE&#8217;s <strong> SSH </strong>, there is to change the hardware or the NAS.</p>
<p>	Besides being able to access files over the network, there is also the possibility of obtaining your files by <strong> USB cable  </strong>, but you will not have access to all files. When you configure your <strong> Lacie </strong>, you determine how much space is used as a network storage, and <strong> USB storage </strong>, which does not make much sense to me, but that can be some limitation on hardware / software.</p>
<p>	Another peculiarity of this<strong> NAS </strong> is an extra USB port, where you can plug a thumb-drive or other storage device and access it from any computer in the house or even the Internet, since the <strong> Network Space 2 </strong> comes with the option to be accessed from anywhere on the Internet, through services like <a href="http://www.dyndns.com/"> <strong> DYNDNS </strong> </a>.</p>
<p>	If you&#8217;re thinking of buying an external hard drive that don&#8217;t need to be small and portable, I find interesting in making some research about the NAS option, which is very good and practical.</p>
<p>	Backups, backups, backups &#8230; I don&#8217;t live without them! You shouldn&#8217;t either!<br />
	Can not stand the idea of losing all my precious photos, so one of my priorities with a Storage System is the safety of my backups, which are made weekly using the <strong> Super Flexible  Syncronize </strong> software, equivalent to <strong> SyncBack </strong> on a Windows PC. What I like about this program is the ability to update only what has changed.</p>
<p>	<strong> WD PLUS LIVE </strong></p>
<p>	<img src="http://danielandrade.net/wp-content/uploads/mediacenter2/005.jpg" alt="" /></p>
<p>	The <strong> WD PLUS LIVE </strong> is nothing more than a small computer with an operating system to playback videos and music. He has no storage, so it should you have to plug a thumb-drive, external hard drive on it or connect to the network, which will give access to shared files over the network, in my case, files are stored at the <strong> Network Space 2 </strong> connected to the router. When I bought the WD, I was impressed with the image quality, and how he can play heavy files without any choke. I watched the <strong> Band of Brothers </strong> show recently co-directed by <strong>Tom Hanks </strong> and <strong> Steven Spielberg </strong> in <strong> FULL HD 1920&#215;1080 , where files were like</strong><strong> 7GB </strong> for episode of 50-60 minutes. I played all over the network, and it worked perfectly.</p>
<p>	<img src="http://danielandrade.net/wp-content/uploads/mediacenter2/003.jpg" alt="" /></p>
<p>	<strong> The Hack: </strong><br />
	The <strong> WD PLUS LIVE </strong> is very powerful, but it can be much more. A boy named <strong> B-RAD </strong>, has compiled a new firmware for the product by increasing its possibilities infinitely. You can access the media player <strong> via SSH </strong> and may use it to download files, torrents, unpack large files,<strong> FTP server  </strong>, to access IRC (and stay connected 24 / 7 ) and anything that a computer can do via <strong>SSH  </strong>, so the imagination is the limit!<br />
	This new <strong> FIRMWARE </strong> you find <a href="http://b-rad.cc/"> HERE </a>.</p>
<p>	Thanks for reading.<br />
	Daniel</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/04/02/htpc-2-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moodlamp Mod</title>
		<link>http://www.danielandrade.net/2011/04/02/moodlamp-mod/</link>
		<comments>http://www.danielandrade.net/2011/04/02/moodlamp-mod/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 03:21:29 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=455</guid>
		<description><![CDATA[I made some modifications in one of my projects, my moodlamp, where I mounted it in a CTRL huge key. I&#8217;m planning on releasing all the project as Open Hardware/Source, [...]]]></description>
			<content:encoded><![CDATA[<p>I made some modifications in one of my projects, my moodlamp, where I mounted it in a CTRL huge key.</p>
<p>I&#8217;m planning on releasing all the project as Open Hardware/Source, but due my lack time, it&#8217;s not on my website yet!<br />
Would you like to take a look at this project??<br />
<iframe title="YouTube video player" width="600" height="368" src="http://www.youtube.com/embed/O9s8RNPZ_CA?hd=1" frameborder="0" allowfullscreen></iframe></p>
<p> <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/04/02/moodlamp-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My DotKlok</title>
		<link>http://www.danielandrade.net/2011/03/27/my-dotklok/</link>
		<comments>http://www.danielandrade.net/2011/03/27/my-dotklok/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 22:54:54 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=441</guid>
		<description><![CDATA[Hey, I got so exited about the DotKlok that I decided to build my own! As it&#8217;s quite difficult to buy one from here (I live in Florianópolis &#8211; Brazil), [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://i.imgur.com/xMg3Bl.jpg" alt="" /></p>
<p>Hey, I got so exited about the <a href="http://www.technoetc.net/dotklok/"><strong>DotKlok</strong></a> that I decided to build my own! As it&#8217;s quite difficult to buy one from here (I live in <a href="http://en.wikipedia.org/wiki/Florian%C3%B3polis">Florianópolis &#8211; Brazil</a>), and to pay U$150 for the Kit wouldn&#8217;t work for me&#8230; So I want to build a good looking clock for my room, which I only have my computer and mobile as clock.</p>
<p>First of all, I needed to buy the 24&#215;16 Led Display from <a href="http://www.sureelectronics.net/goods.php?id=1136">Sure Electronics</a>, which I found for a good price at eBay (little cheaper then buying from the Website). </p>
<p>I just got back from the gym when the board arrived from the post office, as you can see by my face:<br />
<img src="http://i.imgur.com/1spPKl.jpg" alt="" /></p>
<p>Then I got the PCB from <a href="http://dorkbotpdx.org/wiki/pcb_order">Dorkbotpdx</a>, which came really fast and with really good quality, as you can see in the image below, and the board is dark purple, really cool!!</p>
<p><img src="http://i.imgur.com/4f7UAl.jpg" alt="" />    </p>
<p><strong>So here is the clock working:</strong><br />
<iframe title="YouTube video player" width="600" height="368" src="http://www.youtube.com/embed/R6XBluSYotQ?hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>My next step is to add a LM35 temperature sensor to it and learn the code so I can make my own effects. I will also disable some effects that it&#8217;s too hard to read like in more code, not really useful.</p>
<p>If you want to build your own, you should check <a href="http://www.technoetc.net/dotklok/">http://www.technoetc.net/dotklok/</a> for instructions, code, design and everything else you may need.</p>
<p>Keep posted for my new mods for this amazing clock.<br />
Thanks <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/03/27/my-dotklok/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Femtoduino: an ultrasmall arduino board</title>
		<link>http://www.danielandrade.net/2011/02/19/femtoduino-an-ultrasmall-arduino-board/</link>
		<comments>http://www.danielandrade.net/2011/02/19/femtoduino-an-ultrasmall-arduino-board/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 23:29:20 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=434</guid>
		<description><![CDATA[This is amazing, perfect for those times when your have to create another board just to hold the atmega µC. I am looking forward to use this tiny board in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://img.photobucket.com/albums/v107/tigerbr/Image426.jpg" alt="" /></p>
<p>This is amazing, perfect for those times when your have to create another board just to hold the atmega µC. I am looking forward to use this tiny board in some project in a near future. Congrats to Varesano for the project.</p>
<p><iframe title="YouTube video player" width="600" height="368" src="http://www.youtube.com/embed/w-TVLYRprAI?hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>You can check his project <a href="http://www.varesano.net/projects/hardware/Femtoduino">HERE</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/02/19/femtoduino-an-ultrasmall-arduino-board/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino-Based Digital Clock</title>
		<link>http://www.danielandrade.net/2011/02/16/arduino-based-digital-clock/</link>
		<comments>http://www.danielandrade.net/2011/02/16/arduino-based-digital-clock/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 10:56:00 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Howto]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=432</guid>
		<description><![CDATA[Wow, this is amazing! DOTKLOK is an open-source, hackable, Arduino-based digital clock that displays a series of unique time-telling animations. DOTKLOK: Game Time from The Latest Artists on Vimeo. DOTKLOK [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, this is amazing! DOTKLOK is an open-source, hackable, Arduino-based digital clock that displays a series of unique time-telling animations. </p>
<p><iframe src="http://player.vimeo.com/video/19947676" width="400" height="300" frameborder="0"></iframe>
<p><a href="http://vimeo.com/19947676">DOTKLOK: Game Time</a> from <a href="http://vimeo.com/latestartists">The Latest Artists</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>DOTKLOK is an open-source, hackable, Arduino-based digital clock that displays a series of unique time-telling animations. The passing of time is depicted with numbers and abstract/geometric patterns such as Morse code and minimal analog clock faces, and includes animations inspired by classic video games such as Pong, Tetris, Pacman, and Space Invaders.</p>
<p>You can buy the kit for U$150.00 and it assembled for U$200.00<br />
for me&#8230; I think I will build one, hell yeah I&#8217;m going to build one, just love it!!!</p>
<p>You can check more information from <a href="http://www.aomalley.org/dotklok/">dotklok&#8217;s</a> website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/02/16/arduino-based-digital-clock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Hardware Definition 1.0 Released</title>
		<link>http://www.danielandrade.net/2011/02/10/open-hardware-definition-1-0/</link>
		<comments>http://www.danielandrade.net/2011/02/10/open-hardware-definition-1-0/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 17:21:11 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/?p=401</guid>
		<description><![CDATA[It&#8217;s finally here, a document that will help us to define what Open Hardware is, and to spread the idea. Open Software have been around for a long time, Open [...]]]></description>
			<content:encoded><![CDATA[<div align="center"><img src="http://img.photobucket.com/albums/v107/tigerbr/oh-3-100.png" alt="" /><img src="http://img.photobucket.com/albums/v107/tigerbr/oh-2-100.png" alt="" /><img src="http://img.photobucket.com/albums/v107/tigerbr/oh-1-100.png" alt="" />
</div>
<p>It&#8217;s finally here, a document that will help us to define what Open Hardware is, and to spread the idea. Open Software have been around for a long time, Open Hardware is still beginning, but already have a really big community out there, including me. I will add the logo to my next projects for sure!</p>
<p><strong> Now, to move forward, please HELP:</strong></p>
<ul>
<li><a href="http://freedomdefined.org/OSHW">Endorse the definition</a>, post your feedback on version 1.0 on the <a href="http://www.openhardwaresummit.org/forum/viewforum.php?f=5&#038;sid=9d995b02de9ffc094160f3fc69eb539d">forum</a> and the <a href="http://www.openhardwaresummit.org/mailing-list/">mailing list</a> as we work towards a 1.1 update in the next few weeks / months.</li>
<li><a href="http://www.openhardwaresummit.org/oshw-logo-v1-0/">Take a look at the logos</a> we are considering for “open source hardware”, give feedback or submit your own logo on the <a href="http://www.openhardwaresummit.org/forum/viewforum.php?f=5&#038;sid=9d995b02de9ffc094160f3fc69eb539d">forum</a>, in the thread LOGO.</li>
<li>Show your support of the OSHW Definition by <a href="http://www.openhardwaresummit.org/apply-oshw-definition">applying the definition to your work/project/website</a></li>
</ul>
<p><em>    <strong>This is a very important step in propelling our movement forward. PLEASE FORWARD FAR AND WIDE.</strong></em></p>
<p>And now, the definition:</p>
<p><strong>Open Source Hardware (OSHW) Statement of Principles 1.0</strong><br />
Open source hardware is hardware whose design is made publicly available so that anyone can study, modify, distribute, make and sell the design or hardware based on that design. The hardware’s source, the design from which it is made, is available in the preferred format for making modifications to it. Ideally, open source hardware uses readily-available components and materials, standard processes, open infrastructure, unrestricted content, and open-source design tools to maximize the ability of individuals to make and use hardware. Open source hardware gives people the freedom to control their technology while sharing knowledge and encouraging commerce through the open exchange of designs.</p>
<p><strong>Open Source Hardware (OSHW) Definition 1.0</strong><br />
OSHW Draft Definition 1.0 is based on the Open Source Definition for Open Source Software and draft OSHW definition 0.5. The definition is derived from the Open Source Definition, which was created by Bruce Perens and the Debian developers as the Debian Free Software Guidelines. Videos and Documentation of the Opening Hardware workshop which kicked off the below definition are available here. Please join the conversation about the definition here</p>
<p><strong>Introduction</strong><br />
Open Source Hardware (OSHW) is a term for tangible artifacts — machines, devices, or other physical things — whose design has been released to the public in such a way that anyone can make, modify, distribute, and use those things. This definition is intended to help provide guidelines for the development and evaluation of licenses for Open Source Hardware.<br />
It is important to note that hardware is different from software in that physical resources must always be committed for the creation of physical goods. Accordingly, persons or companies producing items (“products”) under an OSHW license have an obligation not to imply that such products are manufactured, sold, warrantied, or otherwise sanctioned by the original designer and also not to make use of any trademarks owned by the original designer.</p>
<p>The distribution terms of Open Source Hardware must comply with the following criteria:</p>
<p><strong>1. Documentation</strong><br />
The hardware must be released with documentation including design files, and must allow modification and distribution of the design files. Where documentation is not furnished with the physical product, there must be a well-publicized means of obtaining this documentation for no more than a reasonable reproduction cost, preferably downloading via the Internet without charge. The documentation must include design files in the preferred format for making changes, for example the native file format of a CAD program. Deliberately obfuscated design files are not allowed. Intermediate forms analogous to compiled computer code — such as printer-ready copper artwork from a CAD program — are not allowed as substitutes. The license may require that the design files are provided in fully-documented, open format(s).</p>
<p><strong>2. Scope</strong><br />
The documentation for the hardware must clearly specify what portion of the design, if not all, is being released under the license.</p>
<p><strong>3. Necessary Software</strong><br />
If the licensed design requires software, embedded or otherwise, to operate properly and fulfill its essential functions, then the license may require that one of the following conditions are met:<br />
a) The interfaces are sufficiently documented such that it could reasonably be considered straightforward to write open source software that allows the device to operate properly and fulfill its essential functions. For example, this may include the use of detailed signal timing diagrams or pseudocode to clearly illustrate the interface in operation.<br />
b) The necessary software is released under an OSI-approved open source license.</p>
<p><strong>4. Derived Works</strong><br />
The license shall allow modifications and derived works, and shall allow them to be distributed under the same terms as the license of the original work. The license shall allow for the manufacture, sale, distribution, and use of products created from the design files, the design files themselves, and derivatives therof.</p>
<p><strong>5. Free redistribution</strong><br />
The license shall not restrict any party from selling or giving away the project documentation. The license shall not require a royalty or other fee for such sale. The license shall not require any royalty or fee related to the sale of derived works.</p>
<p><strong>6. Attribution</strong><br />
The license may require derived documents, and copyright notices associated with devices, to provide attribution to the licensors when distributing design files, manufactured products, and/or derivatives thereof. The license may require that this information be accessible to the end-user using the device normally, but shall not specify a specific format of display. The license may require derived works to carry a different name or version number from the original design.</p>
<p><strong>7. No Discrimination Against Persons or Groups</strong><br />
The license must not discriminate against any person or group of persons.</p>
<p><strong>8. No Discrimination Against Fields of Endeavor</strong><br />
The license must not restrict anyone from making use of the work (including manufactured hardware) in a specific field of endeavor. For example, it must not restrict the hardware from being used in a business, or from being used in nuclear research.</p>
<p><strong>9. Distribution of License</strong><br />
The rights granted by the license must apply to all to whom the work is redistributed without the need for execution of an additional license by those parties.</p>
<p><strong>10. License Must Not Be Specific to a Product</strong><br />
The rights granted by the license must not depend on the licensed work being part of a particular product. If a portion is extracted from a work and used or distributed within the terms of the license, all parties to whom that work is redistributed should have the same rights as those that are granted for the original work.</p>
<p><strong>11. License Must Not Restrict Other Hardware or Software</strong><br />
The license must not place restrictions on other items that are aggregated with the licensed work but not derivative of it. For example, the license must not insist that all other hardware sold with the licensed item be open source, nor that only open source software be used external to the device.</p>
<p><strong>12. License Must Be Technology-Neutral</strong><br />
No provision of the license may be predicated on any individual technology, specific part or component, material, or style of interface or use thereof.</p>
<p><strong>Afterword</strong><br />
The signatories of this Open Source Hardware definition recognize that the open source movement represents only one way of sharing information. We encourage and support all forms of openness and collaboration, whether or not they fit this definition.</p>
<p><strong>Licenses and Hardware</strong><br />
In promoting Open Hardware, it is important not to unintentionally deceive designers regarding the extent to which their licenses actually can control their designs. Under U.S. law, and law in many other places, copyright does not apply to electronic designs. Patents do. The result is that an Open Hardware license can in general be used to restrict the plans but probably not the manufactured devices or even restatements of the same design that are not textual copies of the original. The applicable section of copyright law is 17.102(b), which says:</p>
<p>In no case does copyright protection for an original work of authorship extend to any idea, procedure, process, system, method of operation, concept, principle, or discovery, regardless of the form in which it is described, explained, illustrated, or embodied in such work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2011/02/10/open-hardware-definition-1-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

