Stop at given length from the wall: Difference between revisions

From wikiluntti
(Created page with "=== Introduction === === Robot === === Sensors === === Example Videos === === Theory === === Example Code === === Exercises === This course is supported by [https://m...")
 
No edit summary
Line 1: Line 1:
=== Introduction ===
=== Introduction ===


=== Robot ===
=== Robot ===
Any robot (with tires or treads, perhaps walking robots too) will work.


=== Sensors ===
=== Sensors ===
The ultrasonic (distance) sensor is used.


=== Example Videos ===
=== Example Videos ===


=== Theory ===
=== Theory ===
The ultrasonic sensor is a sonar radar that works similar to the bats. You should check the performance of the sensor specially if it is not working properly. The maximum working distance is about 2 meters, and the smallest distance is about 10 cm.


=== Example Code ===
=== Example Code ===
Line 13: Line 21:
=== Exercises ===
=== Exercises ===


* Ex 1
* Use the ideas shown in previous part (Following a Line) to follow the wall at 10 cm apart.
* Follow a line (previous part) until the robot finds a wall at 10 cm apart from the wall.
* Use ultrasonic sensor to listen if there is other robots using ultrasonic sensors.
[[File:Ultrasonic.png|| Listen]]




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].
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].
[[File:MeetAndcodeLogo.png|thumb]]
[[File:MeetAndcodeLogo.png|thumb]]
[[Meet and Code I: Ev3-G]]

Revision as of 20:58, 5 September 2020

Introduction

Robot

Any robot (with tires or treads, perhaps walking robots too) will work.

Sensors

The ultrasonic (distance) sensor is used.

Example Videos

Theory

The ultrasonic sensor is a sonar radar that works similar to the bats. You should check the performance of the sensor specially if it is not working properly. The maximum working distance is about 2 meters, and the smallest distance is about 10 cm.

Example Code

Exercises

  • Ex 1
  • Use the ideas shown in previous part (Following a Line) to follow the wall at 10 cm apart.
  • Follow a line (previous part) until the robot finds a wall at 10 cm apart from the wall.
  • Use ultrasonic sensor to listen if there is other robots using ultrasonic sensors.

Listen


This course is supported by Meet and Code. The course is made in collaboration with Robotiikka- ja tiedekasvatus ry.

Meet and Code I: Ev3-G