Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.

Slides:



Advertisements
Similar presentations
Intermediate Robotics Getting to the Next Level Guiding Question: How might I move the robot consistently, accurately, and predictably? –Review basics.
Advertisements

Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Dublin Robotics Boosters NXT-Step Programming Workshop.
LabView Basics.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Automation and Robotics
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Testbed: Exercises.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Introduction to the Basic Parts of LEGO’s NXT Robotics
LabVIEW Program and Data Flow Review LabVIEW Robotics Fundamentals.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Sentry System Multiple Sensors
Conditions and loops Day 4 Computer Programming through Robotics CPST 410 Summer 2009.
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
LEGO® MINDSTORMS® NXT Move Block.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
1 ©2006 INSciTE Common Blocks. 2 ©2006 INSciTE Common Blocks Common blocks are full featured actions Like English statements Move Wait for an action Display.
Mindstorm NXT-G Introduction Towson University Robotics.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
Forward Until Near Stop when near a wall.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Sensor Information: while loops and Boolean Logic.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
NXT Mindstorms Kit Programming
Exploring Computer Science Lesson 6-5
ROBOTC for VEX On-Site Professional Development
By Sanjay and Arvind Seshan
Introduction To Programming with LEGO NXT 2
Touch Sensor.
Loops and Switches Pre-Quiz
Sensors Training.
Module F: Presentation Understanding Robot Fundamentals
BEGINNER EV3 PROGRAMMING Lesson
Introductory Presentation
Introductory Presentation
Sensors and Logic Switches
Exploring Computer Science Lesson 6-5
BEGINNER PROGRAMMING LESSON
Line Following Behavior
Storing Values as Variables
BEGINNER PROGRAMMING LESSON
SENSORS.
Using Waits, Loops and Switches
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Compiled from various Internet sources Presented by Mr. Hatfield
Lego MINDSTORMS EV3.
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber

The Common Palette

MOVE Block This block will make your robot move (seriously. no kidding.)

MOVE Block Properties Port: the places on the Brick where your motors are hooked up Direction: what direction you want the motors to turn (or stop it completely)

Steering: Slows down one motor and speeds up another to make your robot turn. Duration: how long, # of rotations (of motor), # of degrees (of motor), seconds, etc. Next Action: Do you want a complete stop (BRAKE) or to coast to a stop?

RECORD/PLAY Block You can move your robot manually and this will record the actions your robot is taking in a program. You can later play it back. Pros: Can come in handy to help troubleshoot Cons: It is saved in a temporary file so when you turn off the robot, it is gone, and it takes up a lot of memory

RECORD/PLAY Function Editor Action: Are you recording or playing the actions? Recording: From which ports are you recording? Time: How long are you going to record for?

SOUND Block Use this if you would like for your robot to “say” something. You can use words already available or use a virtual piano to make tones This does take up quite a bit of your memory The sounds are not very loud

SOUND Block Function Editor Action: Sound File-choose from a ready made file or one you provide Action: Tone-gives you a keyboard to program how long you want the note to be played for

DISPLAY Block This block allows you to display things on your NXT Brick’s screen. It is useful when you want to see how long a count or timer has been going in a program. It can also display pictures.

DISPLAY Block Function Editor Action: choose from an image, text, drawing or to reset the screen File: choose what you want displayed Position: where on the screen do you want the image, centered, to the left, etc.

WAIT FOR…Blocks These blocks make the robot pause until either the time is up or a value is true Time Touch Light Sound Distance (ultrasonic)

Choosing what you want to wait for… Control – Choose of you are waiting for time or for a sensor

Wait for TIME Function Editor Until: Decide how many seconds you want the robot to wait.

Wait for the TOUCH sensor Properties Port: decide where your sensor is hooked up to the NXT Brick Action: should the sensor be pressed in, released, or bumped (pressed, then released) to continue on to the next step

Wait for the value of LIGHT to change Properties Until: wait until the value of light is greater than or less than a number value you specify Function: are you measuring the ambient light of the room (unchecked), or the reflected light of whatever the sensor’s pointing at (checked)?

Wait for SOUND Properties Until: the robot will wait until the sound level is higher or lower than your specified value

Wait for DISTANCE (ultrasonic) Properties Until: The distance is greater than or less than your designated distance. Distance can be measured in inches or centimeters

Loop The sequence of blocks inside of the loop will repeat over and over or until… …Or you could loop FOREVER AND EVER AND EVER …A SENSOR is activated … A TIMER is up …It has repeated a certain number of times (COUNT) … A value is true (LOGIC) …Or at least until you manually stop the program

Loop FOREVER Loops over and over and over again until you manually stop the program or the bot runs out of batteries (unlikely)

Loop TOUCH SENSOR Loops until a sensor is activated, in this case, TOUCH Sensor

Loop LIGHT SENSOR Loops until the value of light is changed

Loop ROTATION SENSOR Loops until a motor has rotated a certain number of degrees or a certain number of rotations. You can also reset the rotation sensor with this block

Loop SOUND SENSOR Loops until the sound sensor has detected a designated level of sound.

Loop TIMER Loops until a timer has reached a specified value You can also reset the timer with this block

Loop for a DISTANCE (ultrasonic) Loops until the robot senses that the distance to an object is greater then or less than a specified value

Loop TIME Loop for a specified number of seconds

Loop COUNT Loops a certain number of times (e.g. if you put 4, it will repeat the program inside the loop 4 times)

Loop (Logic) Loops until a value is true. This requires data wiring

Switch These are like “If…then…else” statements. IF this is true, THEN do one thing, if ELSE, do another thing.

Switch TOUCH Sensor IF the touch sensor is pressed, released or bumped (you select), THEN do what ever your commands are on the top. Else, do your commands on the bottom

Switch LIGHT Sensor IF the value of light is less than or greater (you decide) a value, THEN do what is the top of your switch ELSE do what is the bottom of your switch

Switch ULTRASONIC Sensor IF the distance is a certain value, THEN do what is in the top of your switch ELSE do what is in the bottom of the switch

Switch ROTATION Sensor IF the rotation sensor has gone a specified amount of degrees or rotations, THEN do the top commands, ELSE do the bottom commands

Switch TIMER IF the timer reads a certain number THEN do the commands in the top, ELSE, do the commands in the bottom You can also reset the timer

Switch SOUND Sensor IF the sound has reached a certain level or below that level, THEN do the commands in the top ELSE, do the commands in the bottom

Switch LOGIC IF a value is true/false, THEN do the commands in the top ELSE do the commands in the bottom Requires Data Wiring

The END You have now completed Programming 101, The Common Palette This is a working document so please do not consider it the end all to basic programming with the NXT, but hopefully it will get you a good start.