<?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>TKJ Electronics &#187; Sensors</title>
	<atom:link href="http://elec.tkjweb.dk/blog/tag/sensors/feed/" rel="self" type="application/rss+xml" />
	<link>http://elec.tkjweb.dk/blog</link>
	<description>The electronics-blog</description>
	<lastBuildDate>Mon, 06 Sep 2010 17:01:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ultrasonic Range Sensor</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 19:36:34 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[Arduino Projects]]></category>
		<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Ultrasonic]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=263</guid>
		<description><![CDATA[Today I recieved a Ultrasonic Range Sensor bought on eBay. It&#8217;s much like the Parallax Ping))), except that it has got a Trig and a Echo pin, instead of the Ping)))&#8217;s multipin (Trig and Echo on the same pin) I quickly made some code in the Arduino IDE and got it running quick&#8230; Just a [...]]]></description>
			<content:encoded><![CDATA[<p>Today I recieved a Ultrasonic Range Sensor bought on eBay.</p>
<p>It&#8217;s much like the <a href="http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/ProductID/92/List/1/Default.aspx?SortField=ProductName,ProductName" target="_blank">Parallax Ping)))</a>, except that it has got a Trig and a Echo pin, instead of the Ping)))&#8217;s multipin (Trig and Echo on the same pin)</p>
<p>I quickly made some code in the Arduino IDE and got it running quick&#8230;</p>
<p>Just a sidenode from the physics class; as the sound is travelling thru air with a speed of 340 m/s, this can be recalculated to 0.034 cm/microsecond, which is the same as 29.411 microsecond/cm</p>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://elec.tkjweb.dk/blog/wp-content/uploads/Ultrasonic3.jpg"><img src="http://elec.tkjweb.dk/blog/wp-content/uploads/Ultrasonic3-300x225.jpg" alt="" title="Arduino with Ultrasonic Sensor" width="300" height="225" class="size-medium wp-image-312" /></a><p class="wp-caption-text">Arduino with Ultrasonic Sensor</p></div>
<p>For those who may be interested the code is here:</p>
<pre>/* Ultrasonic Sensor</p>
<p>This sketch reads a ultrasonic rangefinder and returns the<br />
distance to the closest object in range. To do this, it sends a pulse<br />
to the sensor to initiate a reading, then listens for a pulse<br />
to return.Â  The length of the returning pulse is proportional to<br />
the distance of the object from the sensor.</p>
<p>The circuit:<br />
* +V connection of the Ultrasonic Sensor attached to +5V<br />
* GND connection of the Ultrasonic Sensor attached to ground<br />
* Trig connection of the Ultrasonic Sensor attached to digital pin 2<br />
* Echo connection of the Ultrasonic Sensor attached to digital pin 3</p>
<p>created 25. Januar 2010<br />
by Thomas Jespersen</p>
<p>*/<br />
<a href="http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/#cut-1">Read more...</a></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/ultrasonic-range-sensor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
