WALL FOLLOWER 2015 EV3Lessonscom Last edit 11172015 Learn how to use proportional control with the ultrasonic sensor to follow walls Prerequisites Data Wires Proportional Control Loops Math Blocks Sensor Blocks ID: 645913
Download Presentation The PPT/PDF document "PROPORTIONAL ULTRASONIC" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
PROPORTIONAL ULTRASONIC WALL FOLLOWER
© 2015, EV3Lessons.com, Last edit 11/17/2015Slide2
Learn how to use proportional control with the ultrasonic sensor to follow wallsPrerequisites: Data Wires, Proportional Control, Loops, Math Blocks, Sensor Blocks
Objectives
© 2015, EV3Lessons.com, Last edit 11/17/2015Slide3
Challenge: Proportional Wall Follower
Challenge:
Write a wall follower program that uses the ultrasonic sensor and proportional control
STEP 1:
(Calculate the error) Subtract the target distance from the Ultrasonic value.
STEP 2:
(Apply the correction) Use the error from the previous step as the steering in a Move Steering block.
You may need to multiply the error by a magic number to make your robot smootherSTEP 3: Repeat the above steps in a loop
Play the video to see how the robot should move
Do you notice any differences from the wall followers in the Intermediate Ultrasonic Wall Follower Lesson?
© 2015, EV3Lessons.com, Last edit 11/17/2015Slide4
© 2015, EV3Lessons.com, Last edit 11/17/2015
Challenge SolutionSlide5
Credits
This tutorial was created by Sanjay Seshan and Arvind
Seshan
from Droids Robotics.
More lessons are available at www.ev3lessons.com
Author’s Email:
team@droidsrobotics.org
© 2015, EV3Lessons.com, Last edit 11/17/2015
This work is licensed under a
Creative Commons Attribution-
NonCommercial
-
ShareAlike
4.0 International License
.