Game Controller Lesson Four.

Slides:



Advertisements
Similar presentations
Using Episurveyor on your mobile phone - A Resource for monitoring performance indicators.
Advertisements

Wednesday, January 14 Coulomb’s Law Electric Fields.
Friday January 16 Lecture 3: The Electric Field Chapter 20-Sections 4 and 5.
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
After Receiving this error code, Follow these steps to correct the problem… Click for next slide.
Lesson 2.2 Traffic Signals  Today’s Objectives: 1. Explain what to do at a green, yellow, and red light. 2. Describe the action to take when you approach.
Flowol subroutines Subroutines are used to:  Simplify your code to make it easier to read (or for someone.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
SIMON Presented By: Amanda Buczkowski James Jenkins Fadi Hanna.
Lesson 4: Conditional Statements Programming Solutions.
Vex Robotics Program four: reversing and turning.
ECE 002 Robots and Sensors Group 14. Objectives Research sensors and their usefulness to analyze data Research sensors and their usefulness to analyze.
Oregon Robotics Tournament and Outreach Program RCX Basics.
Click the pictures to advance to next slide Use the left arrow to go back.
Lesson 2 Inputs. Lesson objectives To understand how inputs can be used to control an output To consider how to make mimics more realistic.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
connect a DC-Motor with an arduino
Selection Learning Objective: to be able to design algorithms that use selection.
TESTBED ACADEMY Final Exam.
Objective of the lesson
BBC Microbit.
BBC Microbit.
Game Controller Lesson Three.
Electromagnetic fields are magnets sensing other metal or something else it can make sound or light it can change. Electric motors are a good example of.
Game Controller Introduction.
Lesson 3 Sub-Routines.
Room 1804 classroom control system
Selection Learning Objective: to be able to design algorithms that use selection.
Training Room AV System Use Instructions
Generation 3 Televic Wireless Microphone Instructions
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 3.
Game Controller Lesson Two.
Global Challenge A bag for Julienne Lesson 3.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 3.
Global Challenge A bag for Julienne Lesson 3.
if-else Structures Principles of Engineering
Global Challenge Flashing Wheels Lesson 3.
Electromagnetic fields are magnets sensing other metal or something else it can make sound or light it can change. Electric motors are a good example of.
Lesson 1.1 Place Value.
Global Challenge A bag for Julienne Lesson 3.
Reviewgamezone.com Go online to reviewgamezone.com and on the right (or scroll down to) where it says “Games By ID#” type in & Then scroll.
Reviewgamezone.com Go online to reviewgamezone.com and on the right (or scroll down to) where it says “Games By ID#” type in 4274 or Then scroll.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 3.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge A bag for Julienne Lesson 3.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge A bag for Julienne Lesson 3.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge A bag for Julienne Lesson 3.
Global Challenge A bag for Julienne Lesson 3.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge A bag for Julienne Lesson 3.
Global Challenge Flashing Wheels Lesson 3.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Oregon Robotics Tournament and Outreach Program
NEW MODEL RECALLIBRATION
Global Challenge A bag for Julienne Lesson 3.
Global Challenge Flashing Wheels Lesson 3.
1 If a Delegate wishes to request to take the floor, please press the black button located to the right of the microphone ONLY ONCE. A red light will.
Game Controller Lesson Five.
Global Challenge Flashing Wheels Lesson 3.
Presentation transcript:

Game Controller Lesson Four

Lights 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

Lights 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 Y X

Lights 1 2 3 4 5 6 7 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 X = 2 Y = 4 Y 1 2 3 4 5 6 7 X

Moving Lights to the Right When the right button is pressed IF CurrentPosition + 1 is greater than 63 THEN Clear the CurrentPosition light Change the CurrentPosition by 1 Set the CurrentPosition light red Show the lights ELSE Turn the motor on Pause for half a second Turn the motor off END IF

Turning Right

When the Right Button is Pressed IF CurrentPositionX + 1 is less than 8 THEN Clear the CurrentPositionX CurrentPositionY light Change the CurrentPositionX by 1 Set the CurrentPositionX CurrentPositionY light to red Show the lights ELSE Turn the motor on Pause for 1 second Turn the motor off END IF

Right

Left

Buzz

Calling Buzz

Code for the Function

Set xChange, Call the Function

Old Code

New Code