SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW

Slides:



Advertisements
Similar presentations
BEGINNER PROGRAMMING Lesson
Advertisements

BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Switches.
By Droids Robotics Line Followers: Basic to Proportional ADVANCED EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 4/5/
By Droids Robotics INTERMEDIATE EV3 PROGRAMMING LESSON SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics PROPORTIONAL ULTRASONIC WALL FOLLOWER © 2015, EV3Lessons.com, Last edit 11/17/2015.
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
Squaring or Aligning on a Line
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
Proportional Control with the Sound Sensor
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
BEGINNER PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
Gyro Turns © 2015 EV3Lessons.com, Last edit 12/19/2015.
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
Gyro Move Straight & Gyro Wall Follow
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
Repeating Actions (Loops)
Beginner Programming Lesson
By Sanjay and Arvind Seshan
Line Followers: Basic to Proportional
BEGINNER PROGRAMMING LESSONS
Lesson 6: aligning on Walls & MODELS
BEGINNER PROGRAMMING Lesson
Proportional Control with the Sound Sensor
Line Followers: Basic to Proportional
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSONS
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
Menu System.
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
Proportional Line Follower
Presentation transcript:

SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW

Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016 Objectives Learn how to use the ultrasonic sensor to follow walls Learn how to optimize code Prerequisites: Loops, Switches, Ultrasonic Sensor Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016

Challenge 1: Simple Wall Follow Challenge: Can you write a program to have a robot follow the wall (always staying 15cm away from the wall) using an ultrasonic sensor? STEP 1: In a Switch Block, turn Left or Right based on whether the robot is too close to the wall or too far from the wall STEP 2: Repeat everything in a loop that runs forever (you can change the exit condition of the loop if you wish) Play the video to see how the robot should move Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016

Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016 Challenge 1 Solution Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016

Challenge 2: Optimizing the Code The code for the Simple Ultrasonic Wall Follow Challenge was slow and the robot wiggles back and forth a lot. Challenge: For this next challenge, think about how you can improve the program so that the wall follower is smoother. Hint: Change the angle of the turns Play the video to see how the robot should move Do you notice any differences? Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016

Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016 Challenge 2 Solution Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016

Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016 Credits This tutorial was created by Sanjay Seshan and Arvind Seshan More lessons are available at www.ev3lessons.com                           This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Copytight © 2015 EV3Lessons.com, Last edit 7/06/2016