<?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>arvydas.co.uk &#187; Arduino Tutorials</title>
	<atom:link href="http://www.arvydas.co.uk/category/arduino-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arvydas.co.uk</link>
	<description>Software development and electronics</description>
	<lastBuildDate>Tue, 22 Feb 2011 22:07:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Arduino interfacing SRF05 rage finder with LCD screen</title>
		<link>http://www.arvydas.co.uk/2010/01/arduino-interfacing-srf05-rage-finder-with-lcd-screen/</link>
		<comments>http://www.arvydas.co.uk/2010/01/arduino-interfacing-srf05-rage-finder-with-lcd-screen/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 12:47:56 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino MEGA]]></category>
		<category><![CDATA[Arduino Tutorials]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[lcd screen]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[range finder]]></category>
		<category><![CDATA[samples]]></category>
		<category><![CDATA[SRF05]]></category>
		<category><![CDATA[ultrasonic]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=62</guid>
		<description><![CDATA[
This is a another sample demonstrating Arduino MEGA, LCD screen and SRF05 ultrasonic range finder. The distance measurement from SRF05 is displayed on the LCD screen in centimetres.
Different from Infra Red range finder witch uses IR light to measure distance, ultrasonic range finder sends short high pitch sound pulses and measures the time for the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-range-finder.jpg" class="liimagelink" rel="lightbox[62]"><img class="alignnone size-full wp-image-63" title="arduino-range-finder" src="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-range-finder.jpg" alt="" width="500" height="310" /></a></p>
<p>This is a another sample demonstrating Arduino MEGA, LCD screen and SRF05 ultrasonic range finder. The distance measurement from SRF05 is displayed on the LCD screen in centimetres.</p>
<p><a href="http://www.arvydas.co.uk/2010/01/arduino-interfacing-srf05-rage-finder-with-lcd-screen/"><em>Click here to view the embedded video.</em></a></p>
<p>Different from Infra Red range finder witch uses IR light to measure distance, ultrasonic range finder sends short high pitch sound pulses and measures the time for the echo to come back to the microphone. Here is a <a href="http://www.robot-electronics.co.uk/htm/srf05tech.htm" target="_blank" class="liexternal">very good comparison of the two types of range finders</a>. The code running on the Arduino:</p>
<pre class="brush: cpp;">
// include the library code:
#include &lt;LiquidCrystal.h&gt;

#define echoPin 6             // the SRF05's echo pin
#define initPin 7             // the SRF05's init pin
unsigned long pulseTime = 0;  // variable for reading the pulse

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
 // set up the LCD's number of rows and columns:
 lcd.begin(16, 2);

 // make the init pin an output:
 pinMode(initPin, OUTPUT);
 // make the echo pin an input:
 pinMode(echoPin, INPUT);
}

void loop() {
 digitalWrite(initPin, HIGH);
 delayMicroseconds(10);
 digitalWrite(initPin, LOW);

 pulseTime = pulseIn(echoPin, HIGH);

 lcd.setCursor(0,0);
 lcd.print(pulseTime / 58, DEC);
 lcd.print(&quot;cm&quot;);

 delay(100);
 lcd.clear();
}
</pre>
<p>Another application for SRF05 is a basic theremin by LuckyLarry. You can see it in action here:</p>
<p><a href="http://www.arvydas.co.uk/2010/01/arduino-interfacing-srf05-rage-finder-with-lcd-screen/"><em>Click here to view the embedded video.</em></a></p> <p><a href="http://www.arvydas.co.uk/2010/01/arduino-interfacing-srf05-rage-finder-with-lcd-screen/"><em>Click here to view the embedded video.</em></a></p>
<p>Read on here:</p>
<ul>
<li><a href="http://luckylarry.co.uk/2009/11/arduino-a-basic-theremin/" target="_blank" class="liexternal">Arduino: A Basic Theremine</a></li>
<li><a href="http://luckylarry.co.uk/2009/11/arduino-basic-theremin-meets-processing/" target="_blank" class="liexternal">Arduino: Basic Theremin meets Processing!</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2010/01/arduino-interfacing-srf05-rage-finder-with-lcd-screen/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Arduino LED traffic lights</title>
		<link>http://www.arvydas.co.uk/2010/01/arduino-led-traffic-lights/</link>
		<comments>http://www.arvydas.co.uk/2010/01/arduino-led-traffic-lights/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 12:19:20 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino MEGA]]></category>
		<category><![CDATA[Arduino Tutorials]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[samples]]></category>
		<category><![CDATA[traffic lights]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=52</guid>
		<description><![CDATA[
This is a bit enhanced version of the &#8220;hello world&#8221; blink application for Arduino: traffic lights emulator. The top three LEDs control car traffic and the bottom two are fore pedestrians.

int carRedPin =  13;
int carYellowPin =  12;
int carGreenPin =  11;
int pedestrianRedPin =  10;
int pedestrianGreenPin =  9;

// The setup() method runs once, when the sketch starts

void [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-mega-traffic-lights.jpg" class="liimagelink" rel="lightbox[52]"><img class="alignnone size-full wp-image-53" title="arduino-mega-traffic-lights" src="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-mega-traffic-lights.jpg" alt="" width="500" height="327" /></a></p>
<p>This is a bit enhanced version of the &#8220;hello world&#8221; blink application for Arduino: traffic lights emulator. The top three LEDs control car traffic and the bottom two are fore pedestrians.</p>
<pre class="brush: cpp;">
int carRedPin =  13;
int carYellowPin =  12;
int carGreenPin =  11;
int pedestrianRedPin =  10;
int pedestrianGreenPin =  9;

// The setup() method runs once, when the sketch starts

void setup()   {
  pinMode(carRedPin, OUTPUT);
  pinMode(carYellowPin, OUTPUT);
  pinMode(carGreenPin, OUTPUT);
  pinMode(pedestrianRedPin, OUTPUT);
  pinMode(pedestrianGreenPin, OUTPUT);
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void blink(int light)
{
  digitalWrite(light, LOW);
  delay(500);
  digitalWrite(light, HIGH);
  delay(500);
  digitalWrite(light, LOW);
  delay(500);
  digitalWrite(light, HIGH);
  delay(500);
  digitalWrite(light, LOW);
  delay(500);
  digitalWrite(light, HIGH);
  delay(500);
  digitalWrite(light, LOW);
}

void loop()
{
  digitalWrite(carRedPin, HIGH);
  digitalWrite(pedestrianGreenPin, HIGH);
  delay(3000);

  blink(pedestrianGreenPin);

  digitalWrite(pedestrianRedPin, HIGH);
  digitalWrite(pedestrianGreenPin, LOW);
  delay(1000);
  digitalWrite(carYellowPin, HIGH);
  delay(1000);
  digitalWrite(carRedPin, LOW);
  digitalWrite(carYellowPin, LOW);
  digitalWrite(carGreenPin, HIGH);
  delay(3000);

  blink(carGreenPin);

  digitalWrite(carYellowPin, HIGH);
  delay(2000);
  digitalWrite(carYellowPin, LOW);
  digitalWrite(carRedPin, HIGH);
  delay(1000);
  digitalWrite(pedestrianRedPin, LOW);
}
</pre>
<p>The code above is straightforward: just enabling and disabling LED at certain time. Traffic lights in action:</p>
<p><a href="http://www.arvydas.co.uk/2010/01/arduino-led-traffic-lights/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2010/01/arduino-led-traffic-lights/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Arduino and LCD screen</title>
		<link>http://www.arvydas.co.uk/2010/01/arduino-and-lcd-screen/</link>
		<comments>http://www.arvydas.co.uk/2010/01/arduino-and-lcd-screen/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:09:36 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino MEGA]]></category>
		<category><![CDATA[Arduino Tutorials]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[lcd screen]]></category>
		<category><![CDATA[samples]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=46</guid>
		<description><![CDATA[
This was one of my first projects to try out various features of Arduino. I got this 2&#215;16 LCD screen from Oomlout. The breadboard schematics came together with the LCD screen and is relatively simple.

Here is the sample code I uploaded to the controller:

// include the library code:
#include &#60;LiquidCrystal.h&#62;

// initialize the library with the numbers [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-lcd-test.jpg" class="liimagelink" rel="lightbox[46]"><img class="alignnone size-full wp-image-47" title="arduino-lcd-test" src="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-lcd-test.jpg" alt="" width="500" height="348" /></a></p>
<p>This was one of my first projects to try out various features of Arduino. I got this <a href="http://www.oomlout.co.uk/lcd-display-16-x-2-p-212.html" target="_blank" class="liexternal">2&#215;16 LCD screen from Oomlout</a>. The breadboard schematics came together with the LCD screen and is relatively simple.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-lcd-schematic.jpg" class="liimagelink" rel="lightbox[46]"><img class="alignnone size-full wp-image-48" title="arduino-lcd-schematic" src="http://www.arvydas.co.uk/wp-content/uploads/2010/01/arduino-lcd-schematic.jpg" alt="" width="296" height="427" /></a></p>
<p>Here is the sample code I uploaded to the controller:</p>
<pre class="brush: cpp;">
// include the library code:
#include &lt;LiquidCrystal.h&gt;

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
 // set up the LCD's number of rows and columns:
 lcd.begin(16, 2);
}

void loop() {

 lcd.print(&quot;                 arvydas.net&quot;);

 lcd.setCursor(16,1);
 lcd.autoscroll();

 for (int thisChar = 0; thisChar &amp;lt; 28; thisChar++) {
 lcd.print(&quot; &quot;);
 delay(250);
 }
 lcd.noAutoscroll();

 lcd.clear();
}
</pre>
<p>Just a simple scrolling text and here is the video:</p>
<p><a href="http://www.arvydas.co.uk/2010/01/arduino-and-lcd-screen/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2010/01/arduino-and-lcd-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

