Did you know that the brick buttons can be used as five touch sensors in the programs?

To access the full video please subscribe to FLLCasts.com
- #1160
- 21 Mar 2019
They can be found in the yellow palette but all five sensors share a single block.
This block gives information about the pressed button in the form of a number, each number corresponding to:
- None of the buttons is presse
- The left button is pressed
- The middle button is pressed
- The right button is pressed
- The upper button is pressed
- The lower button is pressed
These sensors can be used for setting conditions for the orange palette blocks.
In the wait block:
In the repeat block:
In the switch block:
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Robotics with LEGO - Level 3.0 - Security systems
This is the fifth level of the Robotics with LEGO curriculum for students in fifth to twelfth grades.
In this level students will learn how to work with data measured by the sensors. The concept of Algorithm is introduced and the programs perform calculations without knowing the values beforehand. The programming blocks transfer data between each other via data wires. The robots are designed to address the problems of security systems. Variety of alarm systems are built and the physical principles of different security methods are considered.
- 50
- 1:03
- 213

Lesson 6 - PIN code, Access codes
Introduction
In the previous lesson we prevented the cake robbers from escaping our prison but the attention they received had a negative impact on society. At schools students started imitating them and stealing their fellows’ desserts. This should stop once and forever! To cope with the problem we are going to launch a new type of lunch boxes which require a password to open.
- 7
- 7
- 20
- 3d_rotation 1