<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2" -->
<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/"
	>

<channel>
	<title>DanielAndrade.net</title>
	<link>http://www.danielandrade.net</link>
	<description>Daniel Andrade Tech Stuff</description>
	<pubDate>Sat, 13 Mar 2010 15:15:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>
	<language>en</language>
			<item>
		<title>Working with LEDs and Resistors</title>
		<link>http://www.danielandrade.net/2010/03/13/working-with-leds-and-resistors/</link>
		<comments>http://www.danielandrade.net/2010/03/13/working-with-leds-and-resistors/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 14:56:57 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Engineering]]></category>

		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Howto]]></category>

		<category><![CDATA[Hardware]]></category>

		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2010/03/13/working-with-leds-and-resistors/</guid>
		<description><![CDATA[The objective of this text is to help you to understand how Resistors work and use it in it&#8217;s most simple use, as a current limiter. If you want to know more about resistors and leds, check Here and Here.

RESISTORS:
The resistor is a passive component that is opposed to the electrical current dissipating heat, the [...]]]></description>
			<content:encoded><![CDATA[<p>The objective of this text is to help you to understand how Resistors work and use it in it&#8217;s most simple use, as a current limiter. If you want to know more about resistors and leds, check <a href="http://en.wikipedia.org/wiki/Light-emitting_diode">Here</a> and <a href="http://en.wikipedia.org/wiki/Resistor">Here</a>.</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/RBG-LED.jpg" alt="" /></p>
<p><strong>RESISTORS:</strong></p>
<p>The resistor is a passive component that is opposed to the electrical current dissipating heat, the higher the resistor value, the lower the current. This effect is called electrical resistance, while the component resistor is popularly known as resistance.</p>
<p><strong>Resistance:</strong> is the property of a material to oppose the flow of electric current and dissipate power. Unit: Ω (Ohm).</p>
<p><strong>Resistor</strong>: A component specifically designed to have resistance.</p>
<p><strong>Utilities of resistors:</strong></p>
<ul>
<li>Limiting the current that flows in a circuit</li>
<li>Control the loading speed of a capacitor.</li>
<li>To make current and voltage dividers.</li>
<li>Transforming energy into heat (Joule effect).</li>
</ul>
<p>When applying a voltage in a resistor, it creates a current that passes through it. The relation between the voltage and the current defines the electrical resistance:</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/frmulas.jpg" alt="" /></p>
<p>It&#8217;s a physical law and, therefore, will always work for any type of electronic circuit.</p>
<p>If the Voltage is directly proportional to I (R = constant), we have the famous OHM&#8217;s law.</p>
<p>Most of the resistors used in electronic obey this law, ohmic resistors. Among them are the cluster of carbon resistors, metal film and carbon film.</p>
<p>Practicing - Leds and resistors</p>
<p>To light up a  LED we need to limit the current that flows through it, for that we use resistors. If the current that flows through it is higher than recommended, there is a high risk of burning the component. </p>
<p>The video below show&#8217;s a led being burned:</p>
<p><strong><em>Video Soon</em></strong></p>
<p>The recommended current and voltage between the terminals of the LED depends on the chosen type (color, diameter, shape, etc.). For more details, take a look on the datasheet.</p>
<p>The higher the current, higher will be the light intensity and lower the LED&#8217;s life.</p>
<p>Building the circuit:</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/Circuit-resistor_LED.jpg" alt="" /></p>
<p><strong>To light a LED we need:</strong></p>
<ul>
<li>1 Led</li>
<li>1 Resistor (ohmic)</li>
<li>Power Supply (here we will use 5V and 12V)</li>
</ul>
<p>So which resistor to use?</p>
<p>Now we are  going to see which resistor to use, using the Kirchoff`s Circuit Laws.<br />
They are physical laws, will always be valid for any circuit.</p>
<p>We will use a red LED, when that should work with around 1.7V.<br />
The recommended current for an LED is between 10 mA and 20 mA.<br />
Here we will make the math to use only 10mA.</p>
<p>Using a 5V power supply, we have by Kirchhoff&#8217;s Voltage Law</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/2-1.jpg" alt="" /><br />
<img src="http://img.photobucket.com/albums/v107/tigerbr/3-2.jpg" alt="" /></p>
<p>With this, we show that you only can insert the resistor after of before the LED.</p>
<p>By Ohm`s Law:</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/4-1.jpg" alt="" /></p>
<p>Therefore:</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/5-1.jpg" alt="" /></p>
<p>Now calculating the resistor for 10mA:</p>
<p>Pela Lei de OHM:</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/6.jpg" alt="" /></p>
<p>Due to the associated error with each resistor and the available values on the market<br />
we will take approximate values.</p>
<p>In this case we do not make approximations of the resistor value<br />
because it&#8217;s commercially available.</p>
<p>For a voltage of 12V,  R = 1 030 Ω, then we will use 1KΩ.</p>
<p>This article was written by Lucas G. Carli ( lucasgcarli [a] gmail dot com ) - Undergraduate in Electric Engineering</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Working%20with%20LEDs%20and%20Resistors&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2010%2F03%2F13%2Fworking-with-leds-and-resistors%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Working with LEDs and Resistors";
		a2a_linkurl="http://www.danielandrade.net/2010/03/13/working-with-leds-and-resistors/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2010/03/13/working-with-leds-and-resistors/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Speeding Up a DC Engine with Magnets</title>
		<link>http://www.danielandrade.net/2010/03/13/speeding-up-a-dc-engine-with-magnets/</link>
		<comments>http://www.danielandrade.net/2010/03/13/speeding-up-a-dc-engine-with-magnets/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 14:33:06 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Engineering]]></category>

		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Mods]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2010/03/13/speeding-up-a-dc-engine-with-magnets/</guid>
		<description><![CDATA[Electromagnetism is fun!





    
    
		a2a_linkname="Speeding Up a DC Engine with Magnets";
		a2a_linkurl="http://www.danielandrade.net/2010/03/13/speeding-up-a-dc-engine-with-magnets/";
						    
    

	]]></description>
			<content:encoded><![CDATA[<p>Electromagnetism is fun!</p>
<p><object width="500" height="375">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4923678&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4923678&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="375"></embed></object></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Speeding%20Up%20a%20DC%20Engine%20with%20Magnets&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2010%2F03%2F13%2Fspeeding-up-a-dc-engine-with-magnets%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Speeding Up a DC Engine with Magnets";
		a2a_linkurl="http://www.danielandrade.net/2010/03/13/speeding-up-a-dc-engine-with-magnets/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2010/03/13/speeding-up-a-dc-engine-with-magnets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building an Breathalyzer with MQ-3 and Arduino</title>
		<link>http://www.danielandrade.net/2010/03/07/building-an-breathalyzer-with-mq-3-and-arduino/</link>
		<comments>http://www.danielandrade.net/2010/03/07/building-an-breathalyzer-with-mq-3-and-arduino/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 06:45:52 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Engineering]]></category>

		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2010/03/07/building-an-breathalyzer-with-mq-3-and-arduino/</guid>
		<description><![CDATA[During the First Meeting of Electronic Arts in Florianópolis, we built a Breathalyzer using the Alcohol Gas Sensor MQ-3 and a Arduino Board to use in the last day of the meeting, in which we gave a party. You can see a quick video two posts below. Last days I received many emails asking for [...]]]></description>
			<content:encoded><![CDATA[<p>During the First Meeting of Electronic Arts in Florianópolis, we built a Breathalyzer using the Alcohol Gas Sensor MQ-3 and a Arduino Board to use in the last day of the meeting, in which we gave a party. You can see a quick video two posts below. Last days I received many emails asking for the code or how to make one, so I decided to build the sensor again, take pictures/videos and make a tutorial showing how you can make one, so here it is.</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/08880-03-L.jpg" alt="" /></p>
<p><strong>Parts Needed:</strong></p>
<ul>
<li><a href="http://www.arduino.cc">Arduino Board</a></li>
<li>10x 5mm LEDs (Green, Yellow and Red)</li>
<li>100KΩ Potentiometer (to calibrate the sensor)</li>
<li>10x ≈ 220Ω Resistor (anything between 220Ω and 470Ω is OK)</li>
<li>BreadBoard</li>
<li><a href="http://www.sparkfun.com/datasheets/Sensors/MQ-3.pdf">MQ-3 Sensor from Sparkfun</a></li>
</ul>
<p>Here are some pictures from the building process:</p>
<p><a href="http://www.flickr.com/photos/pasteler0/4412448667/" title="IMG_3025 by Daniel Spillere Andrade, on Flickr"><img src="http://farm3.static.flickr.com/2630/4412448667_a348e762bf.jpg" width="500" height="375" alt="IMG_3025" /></a></p>
<p><a href="http://www.flickr.com/photos/pasteler0/4413216684/" title="IMG_3028 by Daniel Spillere Andrade, on Flickr"><img src="http://farm5.static.flickr.com/4058/4413216684_4c4740c933.jpg" width="500" height="375" alt="IMG_3028" /></a></p>
<p><a href="http://www.flickr.com/photos/pasteler0/4413216780/" title="IMG_3029 by Daniel Spillere Andrade, on Flickr"><img src="http://farm3.static.flickr.com/2754/4413216780_ff3718162c_o.jpg" width="500" height="375" alt="IMG_3029" /></a></p>
<p><a href="http://www.flickr.com/photos/pasteler0/4413216962/" title="IMG_3030 by Daniel Spillere Andrade, on Flickr"><img src="http://farm5.static.flickr.com/4057/4413216962_5e075a5ce2.jpg" width="500" height="375" alt="IMG_3030" /></a></p>
<p><a href="http://www.flickr.com/photos/pasteler0/4413217396/" title="IMG_3042 by Daniel Spillere Andrade, on Flickr"><img src="http://farm3.static.flickr.com/2733/4413217396_6b23480690.jpg" width="500" height="375" alt="IMG_3042" /></a></p>
<p><a href="http://www.flickr.com/photos/pasteler0/4412449851/" title="IMG_3047 by Daniel Spillere Andrade, on Flickr"><img src="http://farm5.static.flickr.com/4053/4412449851_a23134986f.jpg" width="375" height="500" alt="IMG_3047" /></a></p>
<p><object width="500" height="281">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9975062&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9975062&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="281"></embed></object></p>
<p>To make the LEDs work, I have connected them in sequence using the Digital Pins 2 till 11 (ten LEDs total). Remember to use a resistor between 220Ω and 470Ω for each LED, like shown on the picture below: </p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/LEDs.gif" alt="" /></p>
<p>To connect the sensor, you have to connect one of the H pin to +5V Supply (use an external power supply for that, it may be too much current for the arduino) and the other one to Ground.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9320616275015294";
/* 336x280, criado 07/03/10 */
google_ad_slot = "0625259150";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Pin B (any of them) you connect to Ground. And the A pin (also any of them) you connect to the 100KΩ potentiometer as shown on the picture below. In the same pin where you are connecting the pin A, you need to connect a wire to the Analog/Digital Converter in Arduino, that is where you are going to read the Alcohol information.</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/POR.gif" alt="" /></p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/MQ-3.gif" alt="" /></p>
<p>This is a quick and easy DIY project, but if you have any problem building it, please feel free to post questions!</p>
<p><a href="http://danielandrade.net/files/breathanalyzer.pde">You can DOWNLOAD the .PDE file HERE</a>.</p>
<div class="codesnip-container" >/*</p>
<p>@ Code for interfacing Alcohol Gas Sensor MQ-3 with Arduino<br />
@ Code by Daniel Spillere Andrade and Daniel Amato Zabotti<br />
@ daniel@danielandrade.net / danielzabotti@gmail.com<br />
@     www.DanielAndrade.net</p>
<p>*/</p>
<p>const int analogPin = 0;    // the pin that the potentiometer is attached to<br />
const int ledCount = 10;    // the number of LEDs in the bar graph</p>
<p>int ledPins[] = {<br />
  10,9,8,7,6,5,4,3,2,1 // Here we have the number of LEDs to use in the BarGraph<br />
  };   </p>
<p>void setup() {</p>
<p>  for (int thisLed = 0; thisLed < ledCount; thisLed++) {<br />
    pinMode(ledPins[thisLed], OUTPUT);<br />
  }}</p>
<p>void loop() {<br />
  //This is the code to light up LED's<br />
  int sensorReading = analogRead(analogPin);</p>
<p>  int ledLevel = map(sensorReading, 500, 1023, 0, ledCount);</p>
<p>  for (int thisLed = 0; thisLed < ledCount; thisLed++) {</p>
<p>    if (thisLed < ledLevel) {<br />
      digitalWrite(ledPins[thisLed], HIGH);<br />
    }</p>
<p>    else {<br />
      digitalWrite(ledPins[thisLed], LOW);<br />
    }  }}</p></div>
<p>And now, have a great drinking!!!</p>
<p>Remember, if you gonna drive, don&#8217;t drink,<br />
but if you do, call me! <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
<a href="http://www.flickr.com/photos/pasteler0/4413217774/" title="IMG_3052 by Daniel Spillere Andrade, on Flickr"><img src="http://farm5.static.flickr.com/4029/4413217774_2dd50be546.jpg" width="500" height="375" alt="IMG_3052" /></a></code></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Building%20an%20Breathalyzer%20with%20MQ-3%20and%20Arduino&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2010%2F03%2F07%2Fbuilding-an-breathalyzer-with-mq-3-and-arduino%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Building an Breathalyzer with MQ-3 and Arduino";
		a2a_linkurl="http://www.danielandrade.net/2010/03/07/building-an-breathalyzer-with-mq-3-and-arduino/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2010/03/07/building-an-breathalyzer-with-mq-3-and-arduino/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Campus Party Brazil</title>
		<link>http://www.danielandrade.net/2010/01/27/campus-party-brazil/</link>
		<comments>http://www.danielandrade.net/2010/01/27/campus-party-brazil/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 18:48:31 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2010/01/27/campus-party-brazil/</guid>
		<description><![CDATA[Hi everyone, I am blogging live from the CampusParty Brazil 2k10 in São Paulo - Brazil, it&#8217;s something like a Lan Party but full of presentations, concerts and of course downloading&#8230; We have here a 10GB BandWidth internet, and there&#8217;s a TV screen showing the bandwidth consumption, and we haven&#8217;t used more then 3GB at [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everyone, I am blogging live from the <a href="http://www.campus-party.com.br/">CampusParty Brazil 2k10</a> in São Paulo - Brazil, it&#8217;s something like a Lan Party but full of presentations, concerts and of course downloading&#8230; We have here a 10GB BandWidth internet, and there&#8217;s a TV screen showing the bandwidth consumption, and we haven&#8217;t used more then 3GB at the same time. (I&#8217;m trying my best to beat the record). Another thing that I found cool is that someone started a DC++ Servers, and there&#8217;s around 400 people connected to it sharing stuff fullspeed, soon my 500Gb Lacie Drive, that I brought with me empty will be full.</p>
<p>In case you are somewhere around the world and would like to download stuff from us, connect to the DC++ Hub <strong>cp2010.no-ip.org</strong> and download at a great speed.</p>
<p><object width="500" height="281">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9026513&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9026513&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="281"></embed></object></p>
<p>Today morning there was some people doing Arduino projects, DIY stuff, Open Sorce presentations and much more.<a href="http://tv.campus-party.org/"> You can check LiveStreaming from the Campus Party Here.</a></p>
<p>Yesterday <a href="http://en.wikipedia.org/wiki/Kevin_Mitnick">Kevin Mitnick</a> was here giving a presentation about the <strong>art of deception</strong>, what a presentation, really good! If you would like to watch it, I am uploading it too, it&#8217;s worth it!</p>
<p><object width="500" height="283">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9026034&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9026034&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="283"></embed></object></p>
<p>Also I am uploading my pictures to my <a href="http://www.flickr.com/photos/pasteler0/sets/72157623287174656/">Flickr acc</a>.</p>
<p>Take care all, I will check my downloads now! <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Campus%20Party%20Brazil&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2010%2F01%2F27%2Fcampus-party-brazil%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Campus Party Brazil";
		a2a_linkurl="http://www.danielandrade.net/2010/01/27/campus-party-brazil/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2010/01/27/campus-party-brazil/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I Meeting of Electronic Arts</title>
		<link>http://www.danielandrade.net/2010/01/21/i-meeting-of-electronic-arts/</link>
		<comments>http://www.danielandrade.net/2010/01/21/i-meeting-of-electronic-arts/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 13:56:55 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Engineering]]></category>

		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Arduino]]></category>

		<category><![CDATA[Flickr]]></category>

		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2010/01/21/i-meeting-of-electronic-arts/</guid>
		<description><![CDATA[It happened last week, starting on Monday 11th January and finishing on Friday the 15th, the I Meeting of Electronic Arts, where people from many differet places of Brazil came to see what was going on. Our first idea was a meeting (de)constructive, build, hack, modify, learn, teach, freedom of knowledge. Several workshops were presented, [...]]]></description>
			<content:encoded><![CDATA[<p>It happened last week, starting on Monday 11th January and finishing on Friday the 15th, the <strong>I Meeting of Electronic Arts</strong>, where people from many differet places of Brazil came to see what was going on. Our first idea was a meeting (de)constructive, build, hack, modify, learn, teach, freedom of knowledge. Several workshops were presented, <strong>Basic Electronics</strong>, <strong>Processing</strong>, <strong>PureData</strong>, and others (the videos of the presentations will be distributed when people finish editing).</p>
<p>On Tuesday night we made a walking trip crossing the dunes till we find Joaquina&#8217;s beach. After swiming in the cold waters, we walked back on a thick rain, amazing, it was long ago since the last time I walked on the rain wanting it!</p>
<p>We learned/teched a lot in this event, one thing that we&#8217;ve noticed is that creative minds work much better after midnight. There was no point planning anything for the morning because no one could wake up before 11h.</p>
<p>On Thursday night a party was organized, where we put in for a test some projects developed during the event, for example a <strong>Breathalyzer</strong> using a <strong><a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8880">Alcohol Gas Sensor MQ-3</a></strong> sensor, LEDs and an Arduino. By the way, never seen so many arduinos in one place, in different sizes and colors, beautiful!</p>
<p>You can check some pictures from my Flickr:<br />
<object width="400" height="300">
<param name="flashvars" value="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Fpasteler0%2Fsets%2F72157623204928412%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Fpasteler0%2Fsets%2F72157623204928412%2F&#038;set_id=72157623204928412&#038;jump_to="></param>
<param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param>
<param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&#038;lang=en-us&#038;page_show_url=%2Fphotos%2Fpasteler0%2Fsets%2F72157623204928412%2Fshow%2F&#038;page_show_back_url=%2Fphotos%2Fpasteler0%2Fsets%2F72157623204928412%2F&#038;set_id=72157623204928412&#038;jump_to=" width="400" height="300"></embed></object></p>
<p>Here is also a Video from the <strong>Breathalyzer</strong> (I will make a post on how you can make one after the Campus Party next week)</p>
<p><object width="500" height="281">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=8817656&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=8817656&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="281"></embed></object></p>
<p>Some more videos can be found on my <strong><a href="http://vimeo.com/danielandrade/videos">Vimeo</a></strong>.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=I%20Meeting%20of%20Electronic%20Arts&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2010%2F01%2F21%2Fi-meeting-of-electronic-arts%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="I Meeting of Electronic Arts";
		a2a_linkurl="http://www.danielandrade.net/2010/01/21/i-meeting-of-electronic-arts/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2010/01/21/i-meeting-of-electronic-arts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Longest Way 1.0 by Christoph Rehage</title>
		<link>http://www.danielandrade.net/2009/12/31/the-longest-way-10-by-christoph-rehage/</link>
		<comments>http://www.danielandrade.net/2009/12/31/the-longest-way-10-by-christoph-rehage/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 16:12:42 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2009/12/31/the-longest-way-10-by-christoph-rehage/</guid>
		<description><![CDATA[Christoph Rehage had an idea of going by foot from Beijin to Germany. He took some shots on his way and afther the trip, made a video. I saw this today and got amazed, so I decided to share with you guys.




also I want to you all to have a Happy New Year and a [...]]]></description>
			<content:encoded><![CDATA[<p>Christoph Rehage had an idea of going by foot from Beijin to Germany. He took some shots on his way and afther the trip, made a video. I saw this today and got amazed, so I decided to share with you guys.</p>
<p><object width="500" height="281">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4636202&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4636202&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="281"></embed></object></p>
<p>also I want to you all to have a <strong>Happy New Year</strong> and a great 2k10!!! </p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=The%20Longest%20Way%201.0%20by%20Christoph%20Rehage%20&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2009%2F12%2F31%2Fthe-longest-way-10-by-christoph-rehage%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="The Longest Way 1.0 by Christoph Rehage ";
		a2a_linkurl="http://www.danielandrade.net/2009/12/31/the-longest-way-10-by-christoph-rehage/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2009/12/31/the-longest-way-10-by-christoph-rehage/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10 Cool things to do in OSX Terminal</title>
		<link>http://www.danielandrade.net/2009/12/21/10-cool-things-to-do-in-osx-terminal/</link>
		<comments>http://www.danielandrade.net/2009/12/21/10-cool-things-to-do-in-osx-terminal/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 16:02:20 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[apple]]></category>

		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2009/12/21/10-cool-things-to-do-in-osx/</guid>
		<description><![CDATA[The thing that made me buy mac is that it has a OS based on Unix, and programs like Photoshop and Microsoft Office (not a big OpenOffice fan yet). Like a good nerd, I can&#8217;t live without my beloved terminal, which makes my life easier. In this post I will show some commands so you [...]]]></description>
			<content:encoded><![CDATA[<p>The thing that made me buy mac is that it has a OS based on Unix, and programs like Photoshop and Microsoft Office (not a big OpenOffice fan <strong>yet</strong>). Like a good nerd, I can&#8217;t live without my beloved terminal, which makes my life easier. In this post I will show some commands so you can have fun on mac&#8217;s terminal. Hope you like it, and if you have any other ideas, please comment on the post!</p>
<p><strong>1. Twitter Update</strong></p>
<ul>
Nothing more geek than updating your twitter from terminal. Just change the <em>user</em> e <em>pass</em> from the code. Way cool.</p>
<div class="codesnip-container" >curl -u user:pass -d status=&#8221;Tweeting from the shell&#8221; http://twitter.com/statuses/update.xml</div>
</ul>
<p><strong>2. Sing songs</strong></p>
<ul>
Release your creativity, sing along.</p>
<div class="codesnip-container" >sudo osascript -e &#8217;say &#8220;Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo&#8221; using &#8220;Cellos&#8221;&#8216;</div>
</ul>
<p><strong>3. Download from a unstable server</strong></p>
<ul>
You know, sometimes you are downloading a big file, but it keeps failing, and you always have to hit RESUME. Your problems are over, with this code, if the download stops suddenly, it will automatically restart. This code have a 15kbps speed limit, delete <em>&#8211;limit-rate 15k</em> to remove the speed limit.</p>
<div class="codesnip-container" >while ! curl -C - -O &#8211;limit-rate 15k <strong>file-address-goes-here</strong>; do sleep 10; done</div>
</ul>
<p><strong>4. Secure SSH Tunnel</strong></p>
<ul>
This is very important if you are using a public/open wireless connection. If you want to access your bank information or online shopping, making sure no one is stealing your information, then SSH Tunneling is the solution. You can find more information <a href="http://polishlinux.org/apps/ssh-tunneling-to-bypass-corporate-firewalls/">HERE</a>.</p>
<div class="codesnip-container" >ssh -D 8080 -f -C -q -N myuser@myserver.com</div>
<p><strong>From</strong>: <a href="http://paulstamatiou.com/">Stammy</a></ul>
<p><strong>5. Real-time view of a running processes</strong></p>
<ul>
To know what is running on your computer, how much memory and processing, just hit:</p>
<div class="codesnip-container" >top</div>
</ul>
<p><strong>6. Resize pictures</strong></p>
<ul>
One quick way to resize pictures in a batch is using a simple program called SIPS. In this example, I&#8217;m resizing all pictures <strong>.JPG</strong> to a 500 pixels width. For more information, type on terminal <strong>man sips</strong></p>
<div class="codesnip-container" >sips &#8211;resampleWidth 500 *.JPG</div>
</ul>
<p><strong>7. Build a fast and simple HTTPD server</strong></p>
<ul>
If you want to start a simple HTTPD server on the 8080 port, go to the folder you want to show and use the command:</p>
<div class="codesnip-container" >python -m SimpleHTTPServer 8080</div>
</ul>
<p><strong>8. Kill a process</strong></p>
<ul>
When using <strong>top</strong>, you have access to the processes ID, and if they are using too much RAM (for example), you can kill it.</p>
<div class="codesnip-container" >killall firefox</div>
<div class="codesnip-container" >kill 234</div>
</ul>
<p><strong>9. Watch Star Wars Episode IV</strong></p>
<ul>
No comments on this one <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="codesnip-container" >telnet towel.blinkenlights.nl</div>
</ul>
<p><strong>10. Show hidden files (those with . in front of the name) in Finder</strong></p>
<ul>
<div class="codesnip-container" >defaults write com.apple.finder AppleShowAllFiles TRUE</div>
</ul>
<p>Thanks for readying.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=10%20Cool%20things%20to%20do%20in%20OSX%20Terminal&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2009%2F12%2F21%2F10-cool-things-to-do-in-osx-terminal%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="10 Cool things to do in OSX Terminal";
		a2a_linkurl="http://www.danielandrade.net/2009/12/21/10-cool-things-to-do-in-osx-terminal/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2009/12/21/10-cool-things-to-do-in-osx-terminal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rare Earth Magnets</title>
		<link>http://www.danielandrade.net/2009/10/01/rare-earth-magnets/</link>
		<comments>http://www.danielandrade.net/2009/10/01/rare-earth-magnets/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 02:56:07 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Engineering]]></category>

		<category><![CDATA[Videos]]></category>

		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2009/10/01/rare-earth-magnets/</guid>
		<description><![CDATA[This is a totally random movie I shot this morning after receiving some Magnets from DealExtreme. Tomorrow I will measure the force of this magnets with a &#8220;Gaussimeter&#8221;, then let you guys know.





    
    
		a2a_linkname="Rare Earth Magnets";
		a2a_linkurl="http://www.danielandrade.net/2009/10/01/rare-earth-magnets/";
						    
    

	]]></description>
			<content:encoded><![CDATA[<p>This is a totally random movie I shot this morning after receiving some Magnets from DealExtreme. Tomorrow I will measure the force of this magnets with a <em>&#8220;Gaussimeter&#8221;</em>, then let you guys know.</p>
<p><object width="500" height="375">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6832629&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6832629&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="375"></embed></object></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Rare%20Earth%20Magnets&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2009%2F10%2F01%2Frare-earth-magnets%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Rare Earth Magnets";
		a2a_linkurl="http://www.danielandrade.net/2009/10/01/rare-earth-magnets/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2009/10/01/rare-earth-magnets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google: 13 years in 2 min</title>
		<link>http://www.danielandrade.net/2009/08/19/google-13-years-in-2-min/</link>
		<comments>http://www.danielandrade.net/2009/08/19/google-13-years-in-2-min/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 12:59:02 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[web2.0]]></category>

		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2009/08/19/google-13-years-in-2-min/</guid>
		<description><![CDATA[Great movie!


    
    
		a2a_linkname="Google: 13 years in 2 min";
		a2a_linkurl="http://www.danielandrade.net/2009/08/19/google-13-years-in-2-min/";
						    
    

	]]></description>
			<content:encoded><![CDATA[<p>Great movie!</p>
<p><embed src='http://www.videolog.tv/ajax/codigoPlayer.php?id_video=423260&#038;relacionados=S&#038;default=S&#038;lang=PT_BR&#038;cor_fundo=000000&#038;swf=1&#038;width=424&#038;height=318' width='424' height='318' type='application/x-shockwave-flash' allowFullScreen='true' AllowScriptAccess='always'></embed></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Google%3A%2013%20years%20in%202%20min&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2009%2F08%2F19%2Fgoogle-13-years-in-2-min%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Google: 13 years in 2 min";
		a2a_linkurl="http://www.danielandrade.net/2009/08/19/google-13-years-in-2-min/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2009/08/19/google-13-years-in-2-min/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ultrasonic Range Finder with Arduino</title>
		<link>http://www.danielandrade.net/2009/07/26/ultrasonic-range-finder-with-arduino/</link>
		<comments>http://www.danielandrade.net/2009/07/26/ultrasonic-range-finder-with-arduino/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 16:52:12 +0000</pubDate>
		<dc:creator>DanielAndrade</dc:creator>
		
		<category><![CDATA[Engineering]]></category>

		<category><![CDATA[Electronics]]></category>

		<category><![CDATA[Arduino]]></category>

		<category><![CDATA[Howto]]></category>

		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.danielandrade.net/2009/07/26/ultrasonic-range-finder-with-arduino/</guid>
		<description><![CDATA[I recently got a Maxbotix LV-EZ4 Ultrasonic Range Finder to try understand how to use it with my little Arduino. Having a ultrasonic range finder can be very useful in many different projects, as it can detect objects, I can use it to make alarm systems (cars usually use this kind of sensor), Obstacle-Avoiding Robot [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got a <strong><a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8504">Maxbotix LV-EZ4 Ultrasonic Range Finder</a></strong> to try understand how to use it with my little <a href="http://arduino.cc/">Arduino</a>. Having a ultrasonic range finder can be very useful in many different projects, as it can detect objects, I can use it to make alarm systems (cars usually use this kind of sensor), <a href="http://www.instructables.com/id/BOB-V20/">Obstacle-Avoiding Robot</a> and many other things that you may have in mind. It works better outdoors then the IR sensor, but the only thing I could notice is that it doen&#8217;t detects very well some thick carpets. Besides that, it&#8217;s a great sensor. From the datasheet we can read that it sonar range information from 6-inches out to 254-inches (15.24 cm - 6.452m).</p>
<p><img src="http://img.photobucket.com/albums/v107/tigerbr/max.jpg" alt="" align="center" /></p>
<p><strong>Maxbotix Features:</strong></p>
<ul>
<li>42kHz Ultrasonic sensor</li>
<li> Operates from 2.5-5.5V</li>
<li>Low 2mA supply current</li>
<li> 20Hz reading rate</li>
<li>RS232 Serial Output - 9600bps</li>
<li> Analog Output - 10mV/inch</li>
<li>  PWM Output - 147uS/inch</li>
<li>  Small, light weight module</li>
</ul>
<p><strong>Docs:</strong></p>
<ul>
<li><a href="http://www.maxbotix.com/uploads/MaxBotixNewProducts.pdf">Beam Width Explanation</a></li>
<li><a href="http://www.maxbotix.com/uploads/LV-MaxSonar-EZ4-Datasheet.pdf">LV-EZ4 Datasheet</a></li>
<li><a href="http://www.maxbotix.com/MaxSonar-EZ1__FAQ.html">Maxbotix FAQ</a></li>
</ul>
<p><strong>How the Sonar works:</strong><br />
It basically sends a high frequency wave in one direction, the wave hits a object that reflects the wave. When the wave gets back to the sensor, it calculates the distance depending on the time it takes to go and back. More information can be checked at <a href="http://en.wikipedia.org/wiki/Ultrasound">Wikipedia</a>.<br />
<img src="http://img.photobucket.com/albums/v107/tigerbr/Picture1-1.png" alt="" /></p>
<p><strong>Working with Arduino:</strong></p>
<p>I think the easiest way to work with the sensor is using the <strong>Analog Output Mode</strong>, where you just need to give the sensor some juice connecting with the <strong>5V</strong> and <strong>Ground</strong>, and the Analog Output on any Analog-Digital Converter pin on the Arduino. Where it gives <strong>(Vcc/512) / inch </strong>where I am using 5V, so it&#8217;s <strong>10mV/inch</strong>. But the AD from the Arduino have 1024 steps from 0-5V. So to have the information from the sensor in inches we need to make <strong>ADvalue/2</strong> and if you want to have the information in <strong>cm</strong>, just multiply the previous value for <strong>2.4</strong> (1 inch = 2.4 cm).</p>
<p><strong>Pics:</strong><br />
<img src="http://img.photobucket.com/albums/v107/tigerbr/max1.jpg" alt="" /><br />
<img src="http://img.photobucket.com/albums/v107/tigerbr/max2.jpg" alt="" /></p>
<p><strong>Video:</strong><br />
<object width="550" height="413">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5783408&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5783408&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="550" height="413"></embed></object></p>
<p>So here is the code:<br />
You can download the file <a href="http://danielandrade.net/files/maxbotix-ultrasonic-range-finder.pde">HERE</a>.</p>
<div class="codesnip-container" >/* </p>
<p>  @ Code for interfacing arduino with a Maxbotix LV-EZ4 Ultrasonic Range Finder<br />
  @ Code by Daniel Spillere Andrade<br />
  @ www.danielandrade.net    -=-   daniel@danielandrade.net</p>
<p>*/</p>
<p>int blinkLed=13;         // Where the led will blink<br />
int sensorPin=0;         // Analog Pin In<br />
int sum=0;		 // Variable to calculate SUM<br />
int avgrange=50;         // Quantity of values to average<br />
int sensorValue;         // Value for te average<br />
int i,media,d;           // Variables<br />
float cm,inch;           // Converted to cm</p>
<p>void setup()<br />
{<br />
  Serial.begin(9600);   // To check what is being read on the Serial Port<br />
}</p>
<p>void loop() {</p>
<p>    d=analogRead(sensorPin);            // Read the analog value<br />
    digitalWrite(blinkLed,HIGH);        // Turn on LED<br />
    delay(d);                           // Delay changes with the analogread<br />
    digitalWrite(13,LOW);               // Turn off LED<br />
    delay(d);	                        // Another delay</p>
<p>    cm = (d / 2) * 2.4;                 // Convert the value to centimeters<br />
    inch = d/2;                         // Value in inches</p>
<p>    Serial.println(cm);                 //Print average of all measured values</p>
<p>    // This is the code if you want to make an average of the read values</p>
<p>     /* </p>
<p>       for(i = 0; i < avgrange ; i++) {<br />
	   sum+=analogRead(sensorPin);<br />
	   delay(10);<br />
	}</p>
<p>        media = sum/avgrange;<br />
	Serial.println(media);  //Print average of all measured values</p>
<p>      sum=0;<br />
      media=0;</p>
<p>    */</p>
<p>}</p></div>
<p>Thanks for reading, and don&#8217;t forget to visit www.electronicslab.org <img src='http://www.danielandrade.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </code></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=DanielAndrade.net&amp;siteurl=http%3A%2F%2Fwww.danielandrade.net%2F&amp;linkname=Ultrasonic%20Range%20Finder%20with%20Arduino&amp;linkurl=http%3A%2F%2Fwww.danielandrade.net%2F2009%2F07%2F26%2Fultrasonic-range-finder-with-arduino%2F"><img src="http://www.danielandrade.net/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Ultrasonic Range Finder with Arduino";
		a2a_linkurl="http://www.danielandrade.net/2009/07/26/ultrasonic-range-finder-with-arduino/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.danielandrade.net/2009/07/26/ultrasonic-range-finder-with-arduino/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
