THE TOUCH SENSOR The Touch Sensor, shown in the picture, gives the robot the sense of touch. It gives too different signals when the orange part is ether.

Slides:



Advertisements
Similar presentations
10 Ways to Ruin Your Mini-Max microcontroller (and lose $69)
Advertisements

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.
How Do You Make a Program Wait?. 1. What is an algorithm? 2. Can you think of a reason why it might be inconvenient to program your robot to always go.
LabView Basics.
More switches Day 6 Computer Programming through Robotics CPST 410 Summer 2009.
Connecting VEX and ROBOTC
From the NXT top menu Connect desired hardware as indicated Enter a command in the box indicated from the menu provided Repeat for all 5 boxes.
Tasks An NQC program consists of at most 10 tasks. Each task has a name. One task must have the name main, and this task will be executed. The other tasks.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
Programming – Touch Sensors Intro to Robotics. The Limit Switch When designing robotic arms there is always the chance the arm will move too far up or.
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.
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.
Control Using Sound. 1. What is sound? 2. How does the LEGO sound sensor sense sound? 2 Control Using Sound Pre-Quiz.
Basic Robot Design. 3 Steps Design Build Program Drawing and thinking of ideas Using your design to make a robot Telling your robot what to do.
Sensors and sensing electrical signal digital signal.
Lego Mindstorms NXT 2.0 Presented By: Fatma Al-Qattan Haya Al-Hajri Fatma Baqer Hanan Al-Qabandi.
Music by Touch. 1. Provide an example “stimulus-sensor- coordinator-effector-response” framework for both your (human) sense of touch and the robotic.
LEGO Mindstorms NXT Introduction. Component NXT Brick Touch Sensor Light Sensor Ultrasonic Sensor Interactive Servo Motors MMN Lab.
ECE 191: Group 2 NXT Robots & Their Applications in Machine Learning Mentor: Anjum Gupta Group: Roanne Manzano Eric Tsai Jacob Robison Sponsored by: SPAWAR.
[Low-level] Programming of NXT Robots Pavel Petrovič Department of Applied Informatics, Faculty of Mathematics, Physics and Informatics
Robotics NXT sensors Back to Light sensor: red vs blue ball.
CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ   Uses.
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*.]
Use bluetooth for communication 1. enable bluetooth in NXT and also enable visibility 2. configure setting in brickCC –Wait about 30 seconds for searching.
Robotics Light sensor. Calibration. Reverse engineering challenge. Lab work: Create and show your program. Add light sensor (different orientations). Robot.
Overview: The goal of this lesson is to transition from discussing robots in general to the specifics of NXT robot. Objectives: Students will be able.
Wall Encounter By Made easy by Dwayne Abuel.
According to the image, what is the file name? According to the image, what is the program name? Quiz Example.ev3 Falcon.
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.
THE LIGHT SENSOR The Light Sensor gives your robot some kind of vision. It can distinguish between light and dark assigning a number between 0 (completely.
NQC / BricxCC Brief Introduction David Schilling.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
Mindstorm NXT-G Introduction Towson University Robotics.
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
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.
ROBOTICS Jason Bell Brad Carlson
Lego League. What is the Lego League? What we will be doing for the next few weeks The AIM of the next few weeks is to gain knowledge into programming,
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
How Do You Make a Program Wait?
Electrical Engineer Responsibilities
NXT Mindstorms Kit Programming
Using the Bumper switch
Using the Colour Sensor
Electrical Engineer Responsibilities
ROBOTC for VEX On-Site Professional Development
Introduction to Handshaking Communication with SSC-32U
Introduction To Programming with LEGO NXT 0
Electrical Engineer Responsibilities
Using the Bumper switch
Electrical Engineer Responsibilities
Programming – Touch Sensors
How Does a Touch Sensor Work?
DT-Assessment Frame Work Term2
Music by Touch Music by Touch Presentation > TeachEngineering.org
Automation and Robotics
Introductory Presentation
Forward Until Touch Robot goes forward until it hits a wall.
What is a Robot?.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Warm Up- What is a robot? Describe in one sentence what you understand by the term ‘robot’ 2. What are the main parts of a robot? What do people do to.
Debugging It doesn’t work…. What do I do????
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
Actuators and acting electrical signal digital signal.
Electrical traditional Chinese Instrument - Xun
Using Waits, Loops and Switches
Downloading to the NXT requires the correct hardware setup
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

THE TOUCH SENSOR The Touch Sensor, shown in the picture, gives the robot the sense of touch. It gives too different signals when the orange part is ether pressed or released.

SENSOR HARDWARE SCHEMATIC The NXT Touch Sensor has only 2 states, pressed (represented by 1) or unpressed (represented by 0). This kind of sensor is called “digital sensor”. The electrical circuit is very simple, as you can see above.

What can you do with a Touch Sensor? The Touch Sensor can be used to: -detect impacts, if mounted forward in the moving direction - to pick up things, thanks to the Touch Sensor the robot can know whether or not there is something in its hand to grab - detect a command. For example, by pressing the Touch Sensor you can make your robot move. The only limit is your fantasy!

The input port and the cable have six connections. Connect the touch sensor to your NXT unit The input port and the cable have six connections. The can be used to get digital, analog and I2C signals and to give power supply the connected sensor.

Programming the Touch Sensor with NXC Not eXactly C, or NXC, is a high-level programming language for the Lego Mindstorms NXT. NXC has a syntax similar to C. Before using a sensor you have to declare its connecting input and type, in our case: SetSensor( port number S1 to S4, SENSOR_TOUCH ); To read a value and store it in a variable: x = Sensor(port number);

EXAMPLE PROGRAM task main() { SetSensor( S1, SENSOR_TOUCH ); while( true ) if( Sensor(S1)==0 ) OnFwd(OUT_AB,50); } else OnRev(OUT_AB,50); Wait(500); OnFwd(OUT_A,50);