<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.elcanoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=SweepObstacleDetector</id>
	<title>SweepObstacleDetector - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.elcanoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=SweepObstacleDetector"/>
	<link rel="alternate" type="text/html" href="https://www.elcanoproject.org/wiki/index.php?title=SweepObstacleDetector&amp;action=history"/>
	<updated>2026-04-04T00:07:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.2</generator>
	<entry>
		<id>https://www.elcanoproject.org/wiki/index.php?title=SweepObstacleDetector&amp;diff=112&amp;oldid=prev</id>
		<title>Tfolsom at 19:10, 27 June 2019</title>
		<link rel="alternate" type="text/html" href="https://www.elcanoproject.org/wiki/index.php?title=SweepObstacleDetector&amp;diff=112&amp;oldid=prev"/>
		<updated>2019-06-27T19:10:47Z</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 class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:10, 27 June 2019&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-l32&quot; &gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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 colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;[[File:Scanse_Sweep.JPG|1000px]]&lt;/ins&gt;&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;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Code ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Code ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tfolsom</name></author>
		
	</entry>
	<entry>
		<id>https://www.elcanoproject.org/wiki/index.php?title=SweepObstacleDetector&amp;diff=42&amp;oldid=prev</id>
		<title>JosephBreithaupt: Created page with &quot;  = Sweep Obstacle Detector =  == Purpose ==  The purpose of this board is to use the  Scanse Sweep lidar sensor to detect obstacles in front of the vehicle a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.elcanoproject.org/wiki/index.php?title=SweepObstacleDetector&amp;diff=42&amp;oldid=prev"/>
		<updated>2019-05-23T05:19:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  = Sweep Obstacle Detector =  == Purpose ==  The purpose of this board is to use the &lt;a href=&quot;/wiki/ScanseSweep&quot; class=&quot;mw-redirect&quot; title=&quot;ScanseSweep&quot;&gt; Scanse Sweep&lt;/a&gt; lidar sensor to detect obstacles in front of the vehicle a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
= Sweep Obstacle Detector =&lt;br /&gt;
&lt;br /&gt;
== Purpose ==&lt;br /&gt;
&lt;br /&gt;
The purpose of this board is to use the [[ScanseSweep | Scanse Sweep]] lidar sensor to detect obstacles in front of the vehicle and signal to the [[LowLevel | C2]] when an obstacle is present.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The Sweep is mounted on the front of the bike and is controlled by an Arduino Micro. It is connected to the C2 by TX and GND wires.&lt;br /&gt;
&lt;br /&gt;
=== Pin connections ===&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| *Pin* | *Connection* &lt;br /&gt;
|-&lt;br /&gt;
|| 1 || Serial TX to C2 &lt;br /&gt;
|-&lt;br /&gt;
|| 2 || Sweep Power Enable &lt;br /&gt;
|-&lt;br /&gt;
|| 3 || Sweep Sync / Device Ready &lt;br /&gt;
|-&lt;br /&gt;
|| 8 || Serial RX to Sweep (!SoftwareSerial) &lt;br /&gt;
|-&lt;br /&gt;
|| 9 || Serial TX to Sweep (!SoftwareSerial) &lt;br /&gt;
|-&lt;br /&gt;
|| 1st GND || Sweep GND |&lt;br /&gt;
|-&lt;br /&gt;
|| 2nd GND || C2 GND |&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&lt;br /&gt;
=== Distance Lookup Table ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DistanceLookupTable.h&lt;br /&gt;
DistanceLookupTable.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This class is used to generate a lookup table to represent the field around the trike wherein an obstacle can be found. Objects detected outside of this field are '''not''' obstacles. &lt;br /&gt;
&lt;br /&gt;
==== How to Use ====&lt;br /&gt;
&lt;br /&gt;
Create a DistanceLookupTable object like so, passing in the width of your vehicle, the speed of your vehicle, and the time to fully stop:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DistanceLookupTable table(vehicleWidth_cm, vehicleSpeed_cmPs, brakeTime_ms);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, query the table by passing in the angle (in degrees) of the reading:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
uint16_t distance = table.getDistance(angle);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sweep Obstacle Detector ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Sweep_Obstacle_Detector.ino&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This Arduino Micro sketch runs the Sweep and constantly checks readings to determine if an obstacle is present. If so, it writes an ElcanoSerial message to the C2.&lt;br /&gt;
&lt;br /&gt;
The [https://github.com/scanse/sweep-arduino sweep-arduino] library is needed to compile this sketch.&lt;br /&gt;
&lt;br /&gt;
=== LowLevel Test ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LowLevel_Test.ino&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a simple test to be used with the LowLevel board. It tests the connection to the Sweep Arduino, and control of the brakes.&lt;br /&gt;
&lt;br /&gt;
=== Distance Lookup Table Test ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DistanceLookupTableTest.cpp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This utility takes command-line arguments, constructs a DistanceLookupTable object based on those arguments, and prints out the table.&lt;br /&gt;
&lt;br /&gt;
-- Main.JohnsonB - 2017-11-06&lt;/div&gt;</summary>
		<author><name>JosephBreithaupt</name></author>
		
	</entry>
</feed>