<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=EBB_Notes_1</id>
	<title>EBB Notes 1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=EBB_Notes_1"/>
	<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;action=history"/>
	<updated>2026-04-06T21:22:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;diff=16786&amp;oldid=prev</id>
		<title>Rbelknap: I fail at copy and paste</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;diff=16786&amp;oldid=prev"/>
		<updated>2011-02-25T22:24:29Z</updated>

		<summary type="html">&lt;p&gt;I fail at copy and paste&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:24, 25 February 2011&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-l85&quot;&gt;Line 85:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 85:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;[[Category:Sensebridge]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;[[Category:Sensebridge&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rbelknap</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;diff=16785&amp;oldid=prev</id>
		<title>Rbelknap: adding category tag</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;diff=16785&amp;oldid=prev"/>
		<updated>2011-02-25T22:23:25Z</updated>

		<summary type="html">&lt;p&gt;adding category tag&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:23, 25 February 2011&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-l85&quot;&gt;Line 85:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 85:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Sensebridge]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rbelknap</name></author>
	</entry>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;diff=4182&amp;oldid=prev</id>
		<title>Rachel: New page: Rachel &amp; Mike, March 29(?)  Some functional if rough arduino code for a Parallax Ping))) module has been produced.  It blinks an LED once per half second, with a larger duty cycle the clos...</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=EBB_Notes_1&amp;diff=4182&amp;oldid=prev"/>
		<updated>2009-04-06T14:32:05Z</updated>

		<summary type="html">&lt;p&gt;New page: Rachel &amp;amp; Mike, March 29(?)  Some functional if rough arduino code for a Parallax Ping))) module has been produced.  It blinks an LED once per half second, with a larger duty cycle the clos...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Rachel &amp;amp; Mike, March 29(?)&lt;br /&gt;
&lt;br /&gt;
Some functional if rough arduino code for a Parallax Ping))) module has been produced.  It blinks an LED once per half second, with a larger duty cycle the closer an object is to the sensor.  The Ping))) module is large and somewhat cumbersome, and appears to be quite inaccurate at distances greater than about 2-3 feet.  There is a pair of MaxSonar-EZ1 modules in the Cyborg parts bin which look interesting to try as well.&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * Based on code found at http://arduino.cc/en/Tutorial/Ping&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
int pin = 13;&lt;br /&gt;
int pingPin = 12;&lt;br /&gt;
int ledPin = 11;&lt;br /&gt;
double periodFactor = .5; // percent of one second&lt;br /&gt;
&lt;br /&gt;
void setup()                    // run once, when the sketch starts&lt;br /&gt;
{&lt;br /&gt;
//  pinMode(pin, OUTPUT);      // sets the digital pin as output&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
  pinMode(ledPin, OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()                     // run over and over again&lt;br /&gt;
{&lt;br /&gt;
  long duration, inches, cm;&lt;br /&gt;
&lt;br /&gt;
  // The PING))) is triggered by a HIGH pulse of 2 or more microseconds.&lt;br /&gt;
  // We give a short LOW pulse beforehand to ensure a clean HIGH pulse.&lt;br /&gt;
  pinMode(pingPin, OUTPUT);&lt;br /&gt;
  digitalWrite(pingPin, LOW);&lt;br /&gt;
  delayMicroseconds(2);&lt;br /&gt;
  digitalWrite(pingPin, HIGH);&lt;br /&gt;
  delayMicroseconds(5);&lt;br /&gt;
  digitalWrite(pingPin, LOW);&lt;br /&gt;
  delayMicroseconds(2);&lt;br /&gt;
&lt;br /&gt;
  // The same pin is used to read the signal from the PING))): a HIGH&lt;br /&gt;
  // pulse whose duration is the time (in microseconds) from the sending&lt;br /&gt;
  // of the ping to the reception of its echo off of an object.&lt;br /&gt;
  pinMode(pingPin, INPUT);&lt;br /&gt;
  duration = pulseIn(pingPin, HIGH);&lt;br /&gt;
&lt;br /&gt;
  // convert the time into a distance&lt;br /&gt;
  inches = microsecondsToInches(duration);&lt;br /&gt;
  cm = microsecondsToCentimeters(duration);&lt;br /&gt;
&lt;br /&gt;
  Serial.print(inches);&lt;br /&gt;
  Serial.print(&amp;quot;in, &amp;quot;);&lt;br /&gt;
  Serial.print(cm);&lt;br /&gt;
  Serial.print(&amp;quot;cm&amp;quot;);&lt;br /&gt;
  Serial.println();&lt;br /&gt;
&lt;br /&gt;
  pwm(duration);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void pwm(long microseconds)&lt;br /&gt;
{&lt;br /&gt;
  Serial.print(microseconds);&lt;br /&gt;
  Serial.println(&amp;quot;ms&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  long offCycle = microseconds / 18;&lt;br /&gt;
  long onCycle = 1000 - offCycle;&lt;br /&gt;
  digitalWrite(ledPin, HIGH);&lt;br /&gt;
  delay(onCycle * periodFactor);&lt;br /&gt;
  digitalWrite(ledPin, LOW);&lt;br /&gt;
  delay(offCycle * periodFactor);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
long microsecondsToInches(long microseconds)&lt;br /&gt;
{&lt;br /&gt;
  // According to Parallax&amp;#039;s datasheet for the PING))), there are&lt;br /&gt;
  // 73.746 microseconds per inch (i.e. sound travels at 1130 feet per&lt;br /&gt;
  // second).  This gives the distance travelled by the ping, outbound&lt;br /&gt;
  // and return, so we divide by 2 to get the distance of the obstacle.&lt;br /&gt;
  // See: http://www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf&lt;br /&gt;
  return microseconds / 74 / 2;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
long microsecondsToCentimeters(long microseconds)&lt;br /&gt;
{&lt;br /&gt;
  // The speed of sound is 340 m/s or 29 microseconds per centimeter.&lt;br /&gt;
  // The ping travels out and back, so to find the distance of the&lt;br /&gt;
  // object we take half of the distance travelled.&lt;br /&gt;
  return microseconds / 29 / 2;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rachel</name></author>
	</entry>
</feed>