Count-by-Count Activity

Introduction

This activity is intended to provide additional practice with using the touch sensor by completing a simple task. Students will build a small servo “gate” regulating the entrance into an area. To raise the gate, the touch sensor must be pressed, but once a max number is pressed no more entries will be allowed.

Consider pairing this activity with students building a diorama of their gated area. Examples might include a museum, lunch room, theater, or store. This lesson may also be tied with classes introducing CAD, or safety and accessibility standards for buildings.

Example gate build for the Count-by-Count Activity

Covered Concepts

  • Touch Sensor

  • If/Else logic

  • Loops

  • ElapsedTime

  • Servo usage

  • Programming angular limits on a servo with the SRS Programmer

Curriculum Connections

  • Intro to Robotics V2 - Unit 4, Lesson 25

  • Intro to Robotics V2 - Unit 5, Lesson 29 (ElapsedTime)

Activity Goals

Students will:

  • Utilize the touch sensor in a practical scenario mimicking a real-life use case

  • Practice programming a touch sensor

  • Create a program that uses a count to track how many times the touch sensor has been pressed and that uses a timer to reset once the max is reached

Activity Files

Teacher Files

Student Files

Student Activity Worksheet:

Programming Guide:

[Optional] Programming Guide for two touch sensors:

Last updated

Was this helpful?