S1
Introduction Course
S2
Introduction course
Computing
Standard Grade
Information Systems
Intermediate II
Information Systems
Higher
Internet
Safety
Business Studies
Dept

11. Using a Touch Sensor

We have almost completed our adventures in RoboLab Level 1. But there is one more Icon to think about.

Consider, what if the Cart was to hit an obstacle. At the moment, the Cart is likely to get damaged. This must be avoided at all costs.

So we will be using a new piece of hardware called a Touch Sensor, so if the Cart does "touch" something we can program it to Stop, Reverse or do something else.

 

 

This icon represents the Touch Sensor. It means "wait until the touch sensor on Port 1 is pressed". The length of time to wait depends how it takes for the Cart to "hit" something.

 

Play this video
Using the Touch Sensor! Go Full Screen to see in greater detail?

The Touch Sensor in Action

  1. The movie shows an RCX moving towards an obstacle. 
  2. When it hits the obstacle, the RCX immediately reverses for 1 second and then stops.

Notice how the RCX does the same thing when it runs again at a much shorter distance.

 

 

 

 

What you have to do!

  1. Plan your program by completing Task 17 in your Robolab Progress Extension Grids
  2. Start the Robolab Software - if it isn't already open..
  3. Create the program and transfer it to the cart.
  4. Once the program is working correctly Tick Off Task 11 in the main Robolab Progress Grids.

 

Continue to Exercise 12:

 


S2 Courses

 

Setting Up your sensor.

Touch Sensor
Touch Sensor with "bumper".
An RCX Cart with a Light Sensor!

 

Home | S1 Topics | S2 Topics
Computing Standard Grade | Info Systems Intermediate II | Info Systems Higher | Internet Safety
Log into Glow | School Website | Contact Us