<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.luntti.net/index.php?action=history&amp;feed=atom&amp;title=Stop_at_given_length_from_the_wall%2Fen</id>
	<title>Stop at given length from the wall/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.luntti.net/index.php?action=history&amp;feed=atom&amp;title=Stop_at_given_length_from_the_wall%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.luntti.net/index.php?title=Stop_at_given_length_from_the_wall/en&amp;action=history"/>
	<updated>2026-04-09T13:23:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.luntti.net/index.php?title=Stop_at_given_length_from_the_wall/en&amp;diff=720&amp;oldid=prev</id>
		<title>Bette183114776: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://wiki.luntti.net/index.php?title=Stop_at_given_length_from_the_wall/en&amp;diff=720&amp;oldid=prev"/>
		<updated>2020-09-15T16:31:26Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Often it is important to stop the robot if it sees an obstacle. The ultrasonic (or infrared) sensor is a suitable tool for that.&lt;br /&gt;
&lt;br /&gt;
=== Robot ===&lt;br /&gt;
&lt;br /&gt;
Any robot (with tires or treads, perhaps walking robots too) will work.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
The ultrasonic (distance) sensor is used. The sensor is attached to port number 4.&lt;br /&gt;
&lt;br /&gt;
=== Example Videos ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;youtube&amp;gt;r8FcMB5bwhA&amp;lt;/youtube&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Theory ===&lt;br /&gt;
&lt;br /&gt;
The ultrasonic sensor is a sonar radar that works similar to that of the bats. You should check the performance of the sensor in advance, specially if it is not working properly. A hand might be a not optimal device for checking -- you should use something more solid, eg. plastic of cardboard. The maximum working distance is about 2 meters, and the smallest distance is about 10 cm.&lt;br /&gt;
&lt;br /&gt;
=== Example Code ===&lt;br /&gt;
&lt;br /&gt;
[[File:Stop10cm.png|thumb|The code that stops the robot when in a proximity of a wall.]]&lt;br /&gt;
&lt;br /&gt;
=== Exercises ===&lt;br /&gt;
&lt;br /&gt;
* Make the robot speed dependent on the distance to the wall, e.g. by using a formula speed = distance.&lt;br /&gt;
* Use the ideas shown in previous part (Following a Line) to follow the wall at 10 cm apart.&lt;br /&gt;
* Follow a line (previous part) until the robot finds a wall at 10 cm apart from the wall.&lt;br /&gt;
* If you have multiple robots, make the robots follow a line and each others, not colliding with the robot in front of.&lt;br /&gt;
* Use the ultrasonic sensor to listen if there is other robots using ultrasonic sensors. &lt;br /&gt;
&lt;br /&gt;
[[File:Ultrasonic.png|| Listen]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This course is supported by [https://meet-and-code.org/ Meet and Code]. The course is made in collaboration with [http://www.fllsuomi.org/ Robotiikka- ja tiedekasvatus ry].&lt;br /&gt;
[[File:MeetAndcodeLogo.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
[[Meet_and_Code_2020_I:_Ev3-G | Back to Meet and Code 2020 I: Ev3-G]]&lt;/div&gt;</summary>
		<author><name>Bette183114776</name></author>
	</entry>
</feed>