
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.robotika.sk/robowiki/index.php?action=history&amp;feed=atom&amp;title=BS2_Sonar_SRF08</id>
		<title>BS2 Sonar SRF08 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.robotika.sk/robowiki/index.php?action=history&amp;feed=atom&amp;title=BS2_Sonar_SRF08"/>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;action=history"/>
		<updated>2026-05-13T19:56:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;diff=3947&amp;oldid=prev</id>
		<title>Balogh at 10:09, 29 January 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;diff=3947&amp;oldid=prev"/>
				<updated>2009-01-29T10:09:41Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:09, 29 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot; &gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code &lt;/del&gt;lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'{$STAMP BS2}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'{$STAMP BS2}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l178&quot; &gt;Line 178:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 178:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; RETURN&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; RETURN&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Balogh</name></author>	</entry>

	<entry>
		<id>https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;diff=3946&amp;oldid=prev</id>
		<title>Balogh at 10:07, 29 January 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;diff=3946&amp;oldid=prev"/>
				<updated>2009-01-29T10:07:39Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:07, 29 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot; &gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'{$STAMP BS2}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'{$STAMP BS2}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'***********************************************************&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; I2C Routines for the Basic Stamp&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; Controlling Two SRF08 Ultrasonic Rangers&amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  Copyright 2002 - Devantech Ltd&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160;  Commercial use of this software is prohibited&amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160;  Private and educational use only is permitted&amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; Written by Gerald Coe - January 2002&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; This Code has been Tested on BS2 and BS2p&amp;#160; &amp;#160; &amp;#160; &amp;#160; **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; It should work equally well on the BS2e and BS2sx&amp;#160; &amp;#160; **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'**&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  **&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'***********************************************************&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SCL&amp;#160; &amp;#160; &amp;#160; CON&amp;#160; 9&amp;#160; &amp;#160; &amp;#160; &amp;#160;  ' I2C clock&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SCL&amp;#160; &amp;#160; &amp;#160; CON&amp;#160; 9&amp;#160; &amp;#160; &amp;#160; &amp;#160;  ' I2C clock&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Balogh</name></author>	</entry>

	<entry>
		<id>https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;diff=3945&amp;oldid=prev</id>
		<title>Balogh: New page: Tento program meria vzdialenosť senzorom SRF08 a vypisuje hodnoty na sériový LCD displej a zároveň posiela cez USB/RS-232 do PC, kde sa dá zobraziť v terminálovom okne.  '''Pripoje...</title>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=BS2_Sonar_SRF08&amp;diff=3945&amp;oldid=prev"/>
				<updated>2009-01-29T10:07:07Z</updated>
		
		<summary type="html">&lt;p&gt;New page: Tento program meria vzdialenosť senzorom SRF08 a vypisuje hodnoty na sériový LCD displej a zároveň posiela cez USB/RS-232 do PC, kde sa dá zobraziť v terminálovom okne.  &amp;#039;&amp;#039;&amp;#039;Pripoje...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Tento program meria vzdialenosť senzorom SRF08 a vypisuje hodnoty na&lt;br /&gt;
sériový LCD displej a zároveň posiela cez USB/RS-232 do PC, kde sa&lt;br /&gt;
dá zobraziť v terminálovom okne.&lt;br /&gt;
&lt;br /&gt;
'''Pripojenie'''&lt;br /&gt;
 SRF08: &lt;br /&gt;
      SCL      CON  9         ' I2C clock&lt;br /&gt;
      SDA      CON  8         ' I2C data&lt;br /&gt;
 LCD Backpack:&lt;br /&gt;
      LCD      CON  0         ' LCD Serial Backapck Data Line&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;br /&gt;
'{$STAMP BS2}&lt;br /&gt;
&lt;br /&gt;
'***********************************************************&lt;br /&gt;
'**                                                       **&lt;br /&gt;
'**            I2C Routines for the Basic Stamp           **&lt;br /&gt;
'**        Controlling Two SRF08 Ultrasonic Rangers       **&lt;br /&gt;
'**                                                       **&lt;br /&gt;
'**             Copyright 2002 - Devantech Ltd            **&lt;br /&gt;
'**     Commercial use of this software is prohibited     **&lt;br /&gt;
'**     Private and educational use only is permitted     **&lt;br /&gt;
'**                                                       **&lt;br /&gt;
'**        Written by Gerald Coe - January 2002           **&lt;br /&gt;
'**                                                       **&lt;br /&gt;
'**      This Code has been Tested on BS2 and BS2p        **&lt;br /&gt;
'**  It should work equally well on the BS2e and BS2sx    **&lt;br /&gt;
'**                                                       **&lt;br /&gt;
'***********************************************************&lt;br /&gt;
&lt;br /&gt;
SCL      CON  9         ' I2C clock&lt;br /&gt;
SDA      CON  8         ' I2C data&lt;br /&gt;
LCD      CON  0         ' LCD Serial Backapck Data Line&lt;br /&gt;
SDAin    VAR  IN8&lt;br /&gt;
SDAout   VAR  OUT8      ' To change the pins used, alter these 5 lines&lt;br /&gt;
SDAdir   VAR  DIR8      ' The 4 SDA numbers must be the same, of course&lt;br /&gt;
&lt;br /&gt;
loop     VAR  Byte      ' just a looping counter&lt;br /&gt;
I2cBuf   VAR  Byte      ' I2c read/write buffer&lt;br /&gt;
I2cAddr  VAR  Byte      ' Address of I2C device&lt;br /&gt;
I2cReg   VAR  Byte      ' Register number within I2C device&lt;br /&gt;
I2cData  VAR  Word      ' Data to read/write&lt;br /&gt;
I2cAck   VAR  Bit       ' Acknowledge bit&lt;br /&gt;
                        ' LCD: Defining some useful constants for the Backpack.&lt;br /&gt;
N9600    CON  $4054     ' Baudmode-9600 bps inverted.&lt;br /&gt;
    I    CON  254       ' Instruction prefix value.&lt;br /&gt;
  CLR    CON  1         ' LCD clear-screen instruction.&lt;br /&gt;
LINE2    CON  192       ' Address of 1st char of 2nd line.&lt;br /&gt;
L1_C7    CON  135       ' Address of line 1, character 7.&lt;br /&gt;
L2_C7    CON  199       ' Address of line 1, character 7.&lt;br /&gt;
&lt;br /&gt;
  SEROUT 0,N9600,[I,CLR] ' Clear the LCD screen.&lt;br /&gt;
  SEROUT 0,N9600,[&amp;quot;Range:&amp;quot;] ' Print the label.&lt;br /&gt;
&lt;br /&gt;
Main:&lt;br /&gt;
&lt;br /&gt;
  I2cAddr = $e0&lt;br /&gt;
  I2cData = 81          ' Rangeing command - 80 for inches, 81 for cm, 82 for uS&lt;br /&gt;
&lt;br /&gt;
  I2cReg  = 0&lt;br /&gt;
  GOSUB  I2cByteWrite&lt;br /&gt;
  PAUSE  70             ' Wait for ranging to complete&lt;br /&gt;
&lt;br /&gt;
  I2cReg = 1            ' Address of light sensor register&lt;br /&gt;
  GOSUB  I2cByteRead&lt;br /&gt;
  DEBUG  2,0,0, &amp;quot;Light Sensor    &amp;quot;, DEC3 I2cData, &amp;quot; u&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  I2cReg = 2        ' address of first ranging result&lt;br /&gt;
  GOSUB  I2cWordRead&lt;br /&gt;
  DEBUG  2,0,1, &amp;quot;Range           &amp;quot;, DEC4  I2cData, &amp;quot; cm&amp;quot;&lt;br /&gt;
  SEROUT 0,N9600,[I,L1_C7]                                   ' Move to line 1, character 7.&lt;br /&gt;
  SEROUT 0,N9600,[DEC4 I2cData, &amp;quot; cm&amp;quot;]                       ' Print message.&lt;br /&gt;
&lt;br /&gt;
' --------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
  I2cData = 82          ' Rangeing command - 80 for inches, 81 for cm, 82 for uS&lt;br /&gt;
&lt;br /&gt;
  I2cReg  = 0&lt;br /&gt;
  GOSUB  I2cByteWrite&lt;br /&gt;
  PAUSE  70             ' Wait for ranging to complete&lt;br /&gt;
&lt;br /&gt;
  I2cReg = 2            ' address of first ranging result&lt;br /&gt;
  GOSUB  I2cWordRead&lt;br /&gt;
  DEBUG  2,0,2, &amp;quot;Range           &amp;quot;, DEC4  I2cData, &amp;quot; us&amp;quot;&lt;br /&gt;
  SEROUT 0,N9600,[I,L2_C7]                                   ' Move to line 1, character 7.&lt;br /&gt;
  SEROUT 0,N9600,[DEC4 I2cData, &amp;quot; us&amp;quot;]                       ' Print message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  GOTO  main&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'--------------------------------------------------------------------------------------------&lt;br /&gt;
' I2C subroutines follow&lt;br /&gt;
'--------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
I2cByteWrite:            ' writes I2cData.lowbyte to I2cReg at I2cAddr&lt;br /&gt;
&lt;br /&gt;
  GOSUB  I2cStart&lt;br /&gt;
  I2cBuf = I2cAddr&lt;br /&gt;
  GOSUB  I2cOutByte      ' send device address&lt;br /&gt;
  I2cBuf = I2cReg&lt;br /&gt;
  GOSUB  I2cOutByte      ' send register number&lt;br /&gt;
  I2cBuf = I2cData.LOWBYTE&lt;br /&gt;
  GOSUB  I2cOutByte      ' send the data&lt;br /&gt;
  GOSUB  I2cStop&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2cWordWrite:            ' writes I2cData to I2cReg at I2cAddr&lt;br /&gt;
&lt;br /&gt;
  GOSUB  I2cStart&lt;br /&gt;
  I2cBuf = I2cAddr&lt;br /&gt;
  GOSUB  I2cOutByte      ' send device address&lt;br /&gt;
  I2cBuf = I2cReg&lt;br /&gt;
  GOSUB  I2cOutByte      ' send register number&lt;br /&gt;
  I2cBuf = I2cData.HIGHBYTE&lt;br /&gt;
  GOSUB  I2cOutByte      ' send the data - high byte&lt;br /&gt;
  I2cBuf = I2cData.LOWBYTE&lt;br /&gt;
  GOSUB  I2cOutByte      ' send the data - low byte&lt;br /&gt;
  GOSUB  I2cStop&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2CByteRead:&lt;br /&gt;
  GOSUB  I2cStart&lt;br /&gt;
  I2cBuf = I2cAddr&lt;br /&gt;
  GOSUB  I2cOutByte      ' send device address&lt;br /&gt;
  I2cBuf = I2cReg&lt;br /&gt;
  GOSUB  I2cOutByte      ' send register number&lt;br /&gt;
  GOSUB  I2cStart      ' repeated start&lt;br /&gt;
  I2cBuf = I2cAddr | 1&lt;br /&gt;
  GOSUB  I2cOutByte      ' send device address (with read set)&lt;br /&gt;
  I2cAck = 0        ' send Nak&lt;br /&gt;
  GOSUB  I2cInByte&lt;br /&gt;
  I2cData.LOWBYTE = I2cBuf  ' read the data&lt;br /&gt;
  I2cData.HIGHBYTE = 0&lt;br /&gt;
  GOSUB  I2cStop&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2CWordRead:&lt;br /&gt;
  GOSUB  I2cStart&lt;br /&gt;
  I2cBuf = I2cAddr&lt;br /&gt;
  GOSUB  I2cOutByte      ' send device address&lt;br /&gt;
  I2cBuf = I2cReg&lt;br /&gt;
  GOSUB  I2cOutByte      ' send register number&lt;br /&gt;
  GOSUB  I2cStart      ' repeated start&lt;br /&gt;
  I2cBuf = I2cAddr | 1&lt;br /&gt;
  I2cAck = 1        ' send Ack&lt;br /&gt;
  GOSUB  I2cOutByte      ' send device address (with read set)&lt;br /&gt;
  GOSUB  I2cInByte&lt;br /&gt;
  I2cData.HIGHBYTE = I2cBuf  ' read the data&lt;br /&gt;
  I2cAck = 0        ' send Nak&lt;br /&gt;
  GOSUB  I2cInByte&lt;br /&gt;
  I2cData.LOWBYTE = I2cBuf&lt;br /&gt;
  GOSUB  I2cStop&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2cOutByte:&lt;br /&gt;
  SHIFTOUT SDA, SCL, MSBFIRST, [I2cBuf]&lt;br /&gt;
  INPUT  SDA&lt;br /&gt;
  HIGH  SCL          ' clock in the ack' bit&lt;br /&gt;
  LOW  SCL&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2cInByte:&lt;br /&gt;
  SHIFTIN SDA, SCL, MSBPRE, [I2cBuf]&lt;br /&gt;
  SDAout = 0&lt;br /&gt;
  SDAdir = I2cAck&lt;br /&gt;
  HIGH  SCL          ' clock out the ack' bit&lt;br /&gt;
  LOW   SCL&lt;br /&gt;
  INPUT  SDA&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2cStart            ' I2C start bit sequence&lt;br /&gt;
  HIGH  SDA&lt;br /&gt;
  HIGH  SCL&lt;br /&gt;
  LOW  SDA&lt;br /&gt;
  LOW  SCL&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I2cStop:            ' I2C stop bit sequence&lt;br /&gt;
  LOW  SDA&lt;br /&gt;
  HIGH  SCL&lt;br /&gt;
  HIGH  SDA&lt;br /&gt;
  RETURN&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Balogh</name></author>	</entry>

	</feed>