Touch Sensor – Press it & Release it

Screen Shot 2017 04 20 at 19.59.42 - Touch Sensor - Press it & Release it

INTRO AND LEARNING GOALS

Press a button to bring a robot to life! Here is a great tutorial to get students familiar with the EV3 Touch sensor. Get pressing and releasing.

  • Understand how to attach the Touch sensor to your robot
  • Learn how to use two Touch sensors in one program
  • Create a program to start the robot with one Touch sensor and stop it with another
  • Understand the terms – press and release

HOW IT WORKS – THE BASICS

The Touch sensor detects whether the red button on the front of the sensor is pressed in. It is a logic sensor.

RELEASED (0)

PRESSED (1)

You could use it to START your robot when you press it. Or you could get your robot to STOP when the sensor is pressed upon hitting a wall.

LET’S ATTACH THE TOUCH SENSOR…

In the video, John attaches two Touch sensors to his robot. The first one is attached to START his robot and the second one is to STOP it. The Touch sensor is fairly easy to attach – so it is a really good sensor to start with.

EV3 LAB PROGRAMMING…

We can now write a program that will use two Touch sensors to START and STOP the robot. Here, John sends a robot heading towards a Mindstorms Core Set!

EV3 CLASSROOM PROGRAMMING…

We can now write a program that will use two Touch sensors to START and STOP the robot. Here, John sends a robot heading towards a Mindstorms Core Set!

Man Woman 03 800x800 - Touch Sensor - Press it & Release it

SOME TEACHING THOUGHTS… from Sarah

  • The Touch sensor is a nice sensor to start with. Students play lots of games that involve pressing buttons!
  • I would focus on the idea of the button being PRESSED before introducing the idea of RELEASED.
Robot5 04 - Touch Sensor - Press it & Release it

ROBOT WORKOUT (WHERE NEXT?)

  • Introduce the students to the idea that the Touch sensor can also monitor whether the button has been RELEASED.