A - Debris on the Track

Similar documents
A - Debris on the Track

A - Debris on the Track

C - Underground Exploration

D - Robot break time - make a game!

Some prior experience with building programs in Scratch is assumed. You can find some introductory materials here:

Your EdVenture into Robotics 10 Lesson plans

Robotics using Lego Mindstorms EV3 (Intermediate)

LEGO Mindstorms Class: Lesson 1

An Introduction to Programming using the NXT Robot:

understanding sensors

Ev3 Robotics Programming 101

EdPy app documentation

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Lets start learning how Wink s bottom sensors work. He can use these sensors to see lines and measure when the surface he is driving on has changed.

Montgomery Village Arduino Meetup Dec 10, 2016

Learn about the RoboMind programming environment

Introduction to programming with Fable

Programming 2 Servos. Learn to connect and write code to control two servos.

1 of 5 01/04/

INTRODUCTION TO WEARABLES

EV3 Advanced Topics for FLL

Explore and Challenge:

Scratch for Beginners Workbook

Table of Contents. Sample Pages - get the whole book at

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX.

PowerPoint Pro: Grouping and Aligning Objects

Phase 2: Testing & Validation: Forever Affiliate Content Strategy - Minisite & Authority Site

Part of: Inquiry Science with Dartmouth

How Do You Make a Program Wait?

Line Detection. Duration Minutes. Di culty Intermediate. Learning Objectives Students will:

EXERCISE 4: A Simple Hi-Fi

Appendix 6 Wireless Interfaces

Lesson Twenty-Three: Are Limiting Beliefs Holding You Back?

Introduction to Robotics Rubrics

DOOR OPENER WITH TIMER AND LIGHT SENSOR

A Day in the Life CTE Enrichment Grades 3-5 mblock Programs Using the Sensors

Problem Solving with Robots

Unit 4: Robot Chassis Construction

Welcome to Lego Rovers

Robotics Platform Training Notes

Sten BOT Robot Kit 1 Stensat Group LLC, Copyright 2016

Circuit Playground Quick Draw

Line-Follower Challenge

machines 608 Trestle Point Sanford, FL Phone Fax

Lab 1: Testing and Measurement on the r-one

A Day in the Life CTE Enrichment Grades 3-5 mblock Robotics - Simple Programs

Topic 1. Road safety rules. Projects: 1. Robo drives safely - page Robo is a traffic light - - page 6-10 Robo is a smart traffic light

BEGINNER PROGRAMMING LESSON

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

Lab book. Exploring Robotics (CORC3303)

1 Best Practices Course Week 12 Part 2 copyright 2012 by Eric Bobrow. BEST PRACTICES COURSE WEEK 12 PART 2 Program Planning Areas and Lists of Spaces

First Tutorial Orange Group

Parts of a Lego RCX Robot

SINGLE SENSOR LINE FOLLOWER

OZOBOT BASIC TRAINING LESSON 5 CODING AND GEOMETRY

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

2D Platform. Table of Contents

Explore and Challenge:

UCL Micro:bit Robotics Documentation

Zen Toolworks CNC Carving Machine DIY Kit User Installation Manual

BEST PRACTICES COURSE WEEK 21 Creating and Customizing Library Parts PART 7 - Custom Doors and Windows

TABLET LESSONS BASIC LINE FOLLOWER. By Sanjay and Arvind Seshan

Studuino Icon Programming Environment Guide

Erik Von Burg Mesa Public Schools Gifted and Talented Program Johnson Elementary School

Mint Tin Mini Skulduggery

Building the Cathedral

Building an autonomous light finder robot

Reflection Teacher Notes

Name & SID 1 : Name & SID 2:

Robotic Programming. Skills Checklist

Exercise 2. Point-to-Point Programs EXERCISE OBJECTIVE

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

1 Lab + Hwk 4: Introduction to the e-puck Robot

Ring Size Chart: How to Measure Ring Size

BEGINNER APP INVENTOR

Lesson Twelve: Create Your Weekly Tracking Spreadsheet

Range Rover Autonomous Golf Ball Collector

- Introduction - Minecraft Pi Edition. - Introduction - What you will need. - Introduction - Running Minecraft

DISCO DICING SAW SOP. April 2014 INTRODUCTION

Pre-Activity Quiz. 2 feet forward in a straight line? 1. What is a design challenge? 2. How do you program a robot to move

Modeling Your Motion When Walking

Primary STEaM Progression & Scheme of Work Using Crumble Control Board & Accessories (Page 1) (1st Draft)

Welcome to. NXT Basics. Presenter: Wael Hajj Ali With assistance of: Ammar Shehadeh - Souhaib Alzanki - Samer Abuthaher

Once this function is called, it repeatedly does several things over and over, several times per second:

You will need. Equipment

Programming Design ROBOTC Software

Make your own. Quilted Tree. Wall Hanging. Please be safe when you sew!

I like to call this robot a rover, as I tried to pattern it after NASA s designs. Figure 1-1 shows the general outline of the finished rover.

Lesson 3: Arduino. Goals

Morse Code Autonomous Challenge. Overview. Challenge. Activity. Difficulty. Materials Needed. Class Time. Grade Level. Learning Focus.

The D70 only controls one external group of flashes. You can use many external flashes, but they will fire at the same power.

TANTRUM BEAT GENERATOR/COMPOSER ZX SPECTRUM 16k/48k* MANUAL.

I.1 Smart Machines. Unit Overview:

Written By: Dozuki System

GAME:IT Junior Bouncing Ball

Cardboard Circuit Playground Express Inchworm Robot

e d u c a t i o n Detect Dark Line Objectives Connect Teacher s Notes

Agent-based/Robotics Programming Lab II

Harry Plummer KC BA Digital Arts. Virtual Space. Assignment 1: Concept Proposal 23/03/16. Word count: of 7

Transcription:

A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! 2017 https://www.hamiltonbuhl.com/teacher-resources Page 1 of 8

INTRODUCTION Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! Step 1 Obstacle Avoider In this lesson we're going to combine the line follower program with some obstacle avoiding code! This should allow the robot to easily drive around obstacles, and then find the line again. Hopefully yours should work like our example in the video! 2017 https://www.hamiltonbuhl.com/teacher-resources Page 2 of 8

Step 2 Make the Obstacle Let's put an obstacle on the track for the robot to avoid. You can use anything you like, as long as it is at least 4cm tall. Put it across the track wherever you like! However, having a straight section of track both sides of the obstacle will make it much easier. You can use books, wooden blocks, or anything else you have around. You might need to tape it down if its very light so the robot doesn't just push it around. 2017 https://www.hamiltonbuhl.com/teacher-resources Page 3 of 8

Step 3 Setup the Robot We're going to use a switch module to detect when we hit the obstacle. Assemble your robot like the picture Make sure the switch is in the middle! Step 4 90 Degree Turn We're going to need to turn the robot 90 degrees again to complete this challenge. Write the simple program in the picture and work out how many milliseconds you need to wait for your robot to turn 90 degrees. 2017 https://www.hamiltonbuhl.com/teacher-resources Page 4 of 8

Step 5 Avoiding Path We need to decide how we want the robot to move so it avoids the obstacle. You might need to change this slightly depending on the size and shape of your obstacle! When the switch is pressed we need to: Turn right 90 degrees Drive forwards Turn left 90 degrees Drive forwards Turn left 45 degrees Drive forwards until 1 sensor finds the line (LO) Step 6 Make the Moves Using the wait time you worked out earlier for turning 90 degrees, write a simple program to make your robot drive around the obstacle. Our code is just an example - you will need to change all of the times depending on the size of your obstacle! Test your code properly until your robot reliably drives around the obstacle Driving at 45 degrees to the line after the obstacle is very important - if we drive directly at the line, both sensors might find the line at exactly the same time and the robot might drive into the obstacle! 2017 https://www.hamiltonbuhl.com/teacher-resources Page 5 of 8

Step 7 Stop on the Line After the robot has driven around the box, it should drive forwards until one of the sensors finds the line again. Add a wait until block and two more motor blocks at the end of your code, so the robot stops when it finds the line again. You will need to use an OR block for this - we want to stop if A is LO OR B is LO. You can find it in the operators menu. There are some hint blocks if you need them! Step 8 Add the Switch Almost there! Let's add an IF block so our sequence is only triggered when the switch is pressed. There are some hint blocks if you need them, but hopefully you are a Pro at using switches by now! Don't forget the do forever loop. 2017 https://www.hamiltonbuhl.com/teacher-resources Page 6 of 8

Step 9 Obstacle avoider & line follower Time to combine the obstacle avoiding code with our line follower code. Load up your 2 sensor line follower code - it should look similar to the one in the picture. Add your obstacle avoiding sequence to the line follower code, and test it on the track - hopefully it drives round the obstacle and finds the track again! If it doesn't work, try adjusting the code and keep testing until it works really well! 2017 https://www.hamiltonbuhl.com/teacher-resources Page 7 of 8

Step 10 Combined robot with sparkles as well If you've finished all that, add your Sparkle module back on to the robot, and add the blocks back in to display the line position with the red/green Sparkles. When the robot is avoiding obstacles, make the Sparkles do something else so we know the robot is driving round the obstacle. They can do anything you like: flashing white, orange or something else entirely - the more impressive the better! 2017 https://www.hamiltonbuhl.com/teacher-resources Page 8 of 8