Reactive robots UPNA The Public University of Navarra Material for pupils & students.

Slides:



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

EducateNXT Robot Sumo. EducateNXT What is Sumo? Sumo is a competitive contact sport where a wrestler (rikishi) attempts to force another wrestler out.
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.
Follow The Guidelines Introductory Presentation. Opening Activity Make a prediction about how light sensors will use thresholds. Keep in mind: We used.
Wait, sound sensor >70, Port 2 Flowchart – Heartbeat 1 Start Motor A, Move Backward, 1/3 Rotation, Power 20 Wait, 1 Second Sound Sensor (Port 2) Less than.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Photos and Sensor Instructions
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.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
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.
Music by Touch. 1. Provide an example “stimulus-sensor- coordinator-effector-response” framework for both your (human) sense of touch and the robotic.
Adapted for STLP Camp ‘10 STLP Robotics Camp June 3 & 4.
Coding for the FIRST Tech Challenge: RobotC
Getting Started! Lego Mindstorms Program NXT 2.0.
ROBOTICS VOCAB AND FLOWCHARTING. ROBOTICS VOCABULARY Robot- a machine capable of carrying out a complex series of actions automatically, especially one.
Maze Challenge Maze Challenge activity > TeachEngineering.org
Wait Program! WAIT please!. 1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the.
This block is a : displaydisplay looploop movemove soundsound switchswitch waitwait motor.
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*.]
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
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Sentry System Multiple Sensors
Somerset Berkley Regional High School Robotics Engineering with LabView.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
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.
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.
Find the Mindstorms Icon on the computer.. To start a new program click go.
By Eric Greene RMS / I. S. 192 Q. Smart Start Question How would you get the robot to flirt with disaster by touching the edge of the “table” as many.
Com.Tech 3104 Outcome 12 By: Evan And Mark Progress Report.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Teacher Education on Robotics-Enhanced Constructivist Pedagogical Methods - TERECoP Teacher Training Course : “LEGO NXT ROBOTICS: a CONSTRUCTIVIST APPROACH”
ROBOTC Software EV3 Robot Workshop
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
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.
Vex Robotics program three: using motors and sensors together.
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.
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.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
LOGICFUSION’S HANDS-ON ROBOTICS EV3 LEVEL 2! Welcome to.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Introduction to Programming in RobotC
NXT Mindstorms Kit Programming
Exploring Computer Science Lesson 6-5
Deriving Consistency from LEGOs
Mindstorms EV3 Programming
Follow The Guidelines.
Mindstorms EV3 Programming
Programming Scratch to Control a K’NEX Fairground Ride
Basics for Robotics Programming
RobotC Sensors.
Mindstorms EV3 Programming
Music by Touch Music by Touch Presentation > TeachEngineering.org
Module F: Presentation Understanding Robot Fundamentals
Introductory Presentation
Exploring Computer Science Lesson 6-5
Forward Until Touch Robot goes forward until it hits a wall.
Line Following Behavior
Introductory Presentation
Introductory Presentation
SENSORS.
Lego MINDSTORMS EV3.
Downloading to the NXT requires the correct hardware setup
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Reactive robots UPNA The Public University of Navarra Material for pupils & students

Simple 2 motor cars….with sensors ENGAGEMENT STAGE

Objectives A very simple 2 motor moving robotic construction with several sensors  Touch sensor  Sound sensor  Light sensor Programming with Loops Programming with Switches (IF’s) Shall we make a robot that senses & react ? ENGAGEMENT STAGE

Building instructions LXF file: Have a look to the pictures… Think about it….what car design do you want to make….. EXPLORATION STAGE

Sensors EXPLORATION STAGE Sensors & bricks

Sensors…. Touch sensor EXPLORATION STAGE

Sound sensor Sensors…. EXPLORATION STAGE

Light sensor Sensors…. EXPLORATION STAGE

Programming with NXT-G EXPLORATION STAGE

Programming with NXT-G EXPLORATION STAGE

Touch sensor, switch & loops EXPLORATION STAGE

Wait & push EXPLORATION STAGE

Application Each group decides to use one type of sensor with one of the following scenarios in orden to achieve one of the proposed goals Makes programmming and Testing with his own circuit To explain to the rest what they have done, etc… INVESTIGATION STAGE

With touch sensor… escaping from walls…. INVESTIGATION STAGE We need walls (boxes or similar) Goal: to be able to “escape” from walls Different ideas: when the robots touches the wall, It changes direction It goes back, rotates 90º and continues It goes back, rotates” random” º and continues Repeat these things

With sound sensor … our 2-ear dog …. INVESTIGATION STAGE We have a car with 2 ears, one at each side, it is our “dog”….let’s call him “Terecop” Goal: to call “Terecop” (clapping for example or with our voice) and (the most important) to be listened by him Ideas: To measure the sound at each sensor To decide which sensor is nearer from the source of sound To move into this direction Repeat these things

With sound sensor … our 2-ear dog …. INVESTIGATION STAGE the nearer we are from the sound source the higher the value of the sensor is, the value is satured at 100%, etc…. Expected outcomes…:

With sound sensor … our 2-ear dog …. INVESTIGATION STAGE The writting of a procedure with: a loop integrating the 2 measures and a switch decision expected outcomes…:

With light sensor….. leaving the dark side of the moon…. INVESTIGATION STAGE We have a car with a light sensor Goal: the idea is to go the nearest possible to the light source, that is to live the dark side of the moon…. Ideas: To measure the light To move a little To measure the light again If we have bigger value, we are approaching the goal…. Repeat these things

About the cars PRODUCTION & EVALUATION STAGE Direction: is the sensor working well Is the car moving OK….

About the programs PRODUCTION & EVALUATION STAGE How it is big in bytes or KB How it is easy to understand How it is good

Rules to classify cars…. PRODUCTION & EVALUATION STAGE Rules to evaluate the cars: 1.Does the robot & program solve the problem 2.Slowly or quickly 3.Is complicate the program or no Etc…..

Rules to classify programs…. PRODUCTION & EVALUATION STAGE Rules to evaluate the programs: 1.Number of the instructions 2.Size of the downloaded code 3.Easy to understand….. Etc…

Lets classify and conclude somethings… APPLICATION STAGE “How we can know if the combination of robot & program do well what we want it to do?” Analyse every case…..

This program is works like the Line Follower: Wait for Dark program but it uses a Switch. The program runs a Switch--in a infinite Loop--that runs Motor A and makes sounds when reading light. The program stops Motor A then runs Motor C for 0.25 seconds when reading dark. APPLICATION STAGE More ideas…. (from LEGO engineering web site)

There are many ways to stop a car at a black line. Using a light sensor attached to Port 1, the program takes the initial light reading, drives forward (one motor car) and waits for a difference greater than or equal to 5. Once this difference is reached, the Switch stops the NXT and exits the program. APPLICATION STAGE More ideas…. (from LEGO engineering web site)

This program uses two touch sensors combined with two Switches--all in an infinite loop--to display a number on the screen. Port 1 adds 1 and Port 2 adds 100. The "adder" variable is set to zero at the beginning of this program. APPLICATION STAGE More ideas…. (from LEGO engineering web site)

The two-button remote control is a very versatile program for controlling Lego robots. It uses a series of touch sensor Switches to determine which behavior you want to trigger. Since the Switches are between a set of Loops, the program loops infinitely, and the behavior of the robot will change every time a different touch sensor is hit. In this program, the two-button remote is setup to control a car with motors connected to Ports A and C. When only touch sensor 1 is pressed, Motor A spins forward and Motor C spins backward. This will turn the car left or right. When only touch sensor 2 is pressed, the motors are reversed and the car will spin the opposite direction. If both touch sensors are held, the motors go forward. When no touch sensors are held, the car does not move. Remember, each branch of the Switch can control something different. It does not only work for a car. The touch sensors can trigger music, events, even mail to other robots. The possibilities are endless. APPLICATION STAGE More ideas…. (from LEGO engineering web site)

This is another version of the two-button remote. APPLICATION STAGE

More ideas…. (from LEGO engineering web site) Like its smaller cousin, the three-button remote control is a great way to define unique behaviors for your robot. The advantage to the three-button control is that there are now 8 possible behavior combinations, compared to just 4 on the 2-button remote. In addition to forward, left and right motion on our two motor car, it is now possible to move in reverse, and even control a third motor. With so many combinations, it is possible that you don?t need them all. In that case just leave one branch of the Switch empty. APPLICATION STAGE