Week 2 : Robot Challenge

Learning Intention

Program and design behaviors to meet a range of scenarios.

Success Criteria

Design responses to a range of challenges
Create if, else if, else statements.
Create functions to move a robot to perform a series of tasks.

Warm up

Quite often in robot programming and games we will have a default action that will continue unless something else happens.

code.org maze

In robotics the default action is quite often MoveForward () unless the robot hits or is about to hit an object.

video robot through maze.

Introduction

Here is the code I created to show how a robot could react when different switches have been pressed.

https://123d.circuits.io/circuits/1974522-mrc_2016-bug-bite-switches

Your challenge today is to design a range of behaviors (functions) that the robot will take when a certain button is pressed.  I also want you to create a range of behaviors to make the robot move without any buttons being pressed.

Activities

Robot Challenge

Complete tasks to score a total of 60 points, view and copy robot challenge work sheet.

Easy 5 points Medium 10 points Hard 20 points
add comments to 3 if statements create if and else statements for all button presses create if, else statements and 2 functions
design behaviors for 5 different button presses create functions for 2 button presses upload and test 3 functions
design behavior for the robot to go through 1 obstacle create functions for 2 different obstacles upload and successful test one obstacle function
create an if statement for a button press  design in photoshop design sides, stickers and logos for robot bonus x2 get a robot to do a burn out, donut or figure 8
design an obstacle course for a robot to travel through

 

Reflection

What did you lean today?

 

Leave a Reply

Your email address will not be published. Required fields are marked *