Basic NXT-G Programming. NXT-G Sequence Beams Blocks Structures (special blocks) Wires (connect ports on blocks & structures)

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Introduction to LEGO NXT robotics and Robot Sumo
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
EducateNXT Follow the Leader Using Bluetooth communication, one robot can be made to follow the actions of a second robot. Features in this presentation:
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Dublin Robotics Boosters NXT-Step Programming Workshop.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
EducateNXT Enter the name “Sound Graphing” for your experiment. Real-time Data Logging Click the Switch to NXT Data Logging icon in the top-left corner.
Basic NXT-G Programming. NXT-G Sequence Beams Blocks Structures (special blocks) Wires (connect ports on blocks & structures)
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
Robot Construction Basics Les Turner Director of Technology, Northern Indiana ESC Head Coach, Bremen Botz!
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Using the NXT Light Sensor. 2 Connect One Light Sensor – 1 From My Files use Left / Right NXT buttons and get to View menu and push Orange button. From.
NXTG Workshop for Bottle RoboSumo Lawrence Technological University.
Autonomy using Encoders Intro to Robotics. Goal Our new task is to navigate a labyrinth. But this time we will NOT use motor commands in conjunction with.
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.
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.
Press the Left Mouse Button or the ENTER key to advance through the training screens.
Robotics Catchup/Review: switch, arithmetic, range, loop Bluetooth Lab: Finish parallel parking. Next: Use Bluetooth communication for calculate & send.
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.
Robotics NXT sensors Back to Light sensor: red vs blue ball.
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit.
Reactive robots UPNA The Public University of Navarra Material for pupils & students.
Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors:
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
Robotics Finish presentations Bluetooth Communications Brain storm project ideas Programming considerations Homework: Prepare to present proposal for building.
2 3  A machine  Built to help us  Autonomous (not remote control)  If we want robots to do things for us, we have.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
A tiny turtle robot DEI The University of Padova.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Cougar Robotics Advanced Programming Workshop examples Converted from NXT to EV3 by David Fort Mentor, FRC/FTC 1001 September 2013.
Human Vision Robot (Light Sensor) Vision White/Light: 100 Black/Dark: 0 Colors:
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Real-Time Data through Data Hubs. Begin by adding a basic Move block, 5 rotations 75% power.
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.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
How to Use EV3 Lessons. OVERALL STRUCTURE Beginner Lessons: These lessons will teach you to move and turn the robot, use the sensors, and use loops and.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
EV3 Software EV3 Robot Workshop
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
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.
1 ©2006 INSciTE Lab Three Task: Move forward for 2 feet, turn right 90º repeat to complete a square path. End up exactly where you started.
2010 Cougar Advanced NXT-G Programming Workshop. Basic NXT-G Programming.
LEGO Robotics Workshop
An Introduction to VEX IQ Programming with Modkit
Deriving Consistency from LEGOs
Mindstorms EV3 Programming
Understanding Communication with a Robot? Activity (60 minutes)
By Sanjay and Arvind Seshan
Mindstorms EV3 Programming
EV3 Programming for FIRST Lego League
Mindstorms EV3 Programming
Music by Touch Music by Touch Presentation > TeachEngineering.org
BEGINNER PROGRAMMING LESSON
An Introduction to VEX IQ Programming with Modkit
Line Following Behavior
INTERMEDIATE PROGRAMMING LESSON
Storing Values as Variables
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Lego EV3 Mindstorms SW Programming Blocks.
Procedure A set of instructions grouped together to carry out a task
Getting started with LEGO EV3 Mindstorms software
Presentation transcript:

Basic NXT-G Programming

NXT-G Sequence Beams Blocks Structures (special blocks) Wires (connect ports on blocks & structures)

Forward 2, Back 1, Talk

Loop 36 times

Branch on a Variable & Use Wires What's a “Variable”? – It's a box to put something in, like text, a number, or a true/false value. Why might we use a “Variable”? – To reference it later in the program. What is a “Range” block? – A “Range” block tests the value of a numeric variable against a range. When might we use a “Range” block? – To test the value of a sensor...

Branch on a Variable & Use Wires

Design Principles & Strategies

KISS Tool Design First – Then Program Leapfrog Development Competitive Development Test Repeatedly Change 1 Small Thing at a Time Test Repeatedly

Design Principles & Strategies KISS Quick Attachment Switching Test Repeatedly Strength & Power Leverage Change 1 Small Thing At A Time Repetitive Testing Slow Motion Video

Tactical Techniques Standard Starting Location Standard Starting Configuration Straight Lines using Move Blocks Pivot Turns

Basic Techniques

Incremental Development with Bluetooth Where to go from here?

Incremental Development with Bluetooth Now we will write a program together using Bluetooth incremental development – Back to Wall (advanced technique) – Turn Left – Lower Arm – Go to ice core sample – Lift sample – Drive back to base

Incremental Development with Bluetooth

Precise Turns Left Face! Hold one wheel still Drive with the other wheel Make your drive in two parts, slow then fast You’re not done until you have strung it together with the moves before and after the turn

Precise Turns Left Face!

Video What’s really going on here? Once we looked at a slow motion video of our robot we found out we hadn’t really been seeing what our robot was doing…

Video What’s really going on here? We're going to show you: – Video at full speed – Video in slow motion – Video in frame by frame

Sensors When should I stop? Go Forward until you see dark – Use a move and a wait block – Check your light levels

Sensors When should I stop?

Go Forward until you see dark – Use a move and a wait block – Check your light levels – Using the wait until sensor blocks is notoriously inaccurate so... – Now we'll build an improved loop checking sensor every 6 degrees

Sensors When should I stop?

Medium Techniques

MyBlocks Good things come in small packages Take our “Go to Dark” loop program and make it a MyBlock Combine a move with our “Go to Dark” MyBlock

MyBlocks Good things come in small packages

Multi-Threaded Programming walking and chewing gum at the same time Set arm height for Ice Core Sample while making the run. Finish raising the arm while making the run back.

Multi-Threaded Programming walking and chewing gum at the same time

Mini-Blocks How can we squeeze all this stuff into my tiny brain? First we'll take a look at the mini-blocks on the big screen. When you get home be sure to download them from: Take a look at how we use them in one of our programs.

Mini-Blocks How can we squeeze all this stuff into my tiny brain? The Mini-Block library is no longer necessary or appropriate with NXT-G 1.1 or 2.0. It is a great tool if you are using NXT-G 1.0 Special thanks to Brian Davis Ph.D., Adjunct Assistant Professor at Indiana University South Bend, & LEGO MDP for explaining this to us when he reviewed our presentation.

Mini-Blocks How can we squeeze all this stuff into my tiny brain?

More Tactical Techniques Standard Starting Location Standard Starting Configuration Straight Lines using Move Blocks Pivot Turns 1-Count Loops to Synchronize Threads Avoid Move “Unlimited” with “Wait Sensor” Avoid Move “Stop”

Advanced Techniques

Sensor Calibration Is it night or just cloudy? First we'd like to explain the Calibrate Block Then we'll show you how we use it in our Calibrate program After the workshop we'll be posting “Cougar Calibrate.rbc”, our calibrate program, on CougarRobot.com

Sensor Calibration Is it night or just cloudy?

Position Registration Our Favorite, X marks the spot Back to Wall

Position Registration Our Favorite, X marks the spot

Back to Wall Back to Line

Position Registration Our Favorite, X marks the spot

Back to Wall Back to Line Advance to Line

Position Registration Our Favorite, X marks the spot

Back to Wall Back to Line Advance to Line We'll post “Cougar Advance To Line.rbt” after the workshop on our website CougarRobot.com.

Dependent Threads & Synchronization throwing the newspaper while riding your bike Let's take a look at our Grey Balls mission!

Dependent Threads & Synchronization throwing the newspaper while riding your bike

Timers When will this match be over? Here's how we used a timer in our master program

Timers When will this match be over?

Master Programs/Menus/Scripting Your wish is my command We use a Master Program – We have a plan and a script – Our Master Program helps us follow it quickly

Master Programs/Menus/Scripting Your wish is my command

Last year we improved our Master Program by altering “LB or EB” program. LB (left button) is repeat last mission EB (enter button) is run next mission. We added RB (right button) which jumps ahead one mission in the sequence Our new program is “LB or EB or RB”

Master Programs/Menus/Scripting Your wish is my command

Resources cfabe d-8b76-c7e23d41f9b8 Brian Davis Ph.D., Adjunct Assistant Professor at Indiana University South Bend, & LEGO MDP

Put It All Together!