Unit 3 Lab 2R

Metro Access Activity

In this lab, you will build a fully functioning metro turnstile that scans a rider’s Metro Card, stores the card holder’s metro account information, and then opens the turnstile to allow entry.

Lab 2R

Assembling the Robot

In this section, you will assemble the Hummingbird Robot utilizing three light sensors to simulate a MetroCard reader and two servos to operate a turnstile gate allowing riders access to the train platform.

Lab 2R_Assembling the Robot

Vocabulary

Click each word to view the definition.

Light Sensor

A Light Sensor responds to the intensity of light level with an increasing signal voltage. The Light Sensor can be used to make a decision based on a set threshold between 0 and 100. 0 refers to no light (dark) and 100 refers to very bright light.

Position Servo

A Position Servo will turn to a specific angle from 0 to 180 degrees and could be used to open and close a door. A Rotation Servo will rotate continuously and could be used to spin the blades of a fan.

Simulating Metro Card Scan

In this section, you will develop code that will simulate a MetroCard scan using light sensors and punched index cards.

Lab 2R_Simulating Metro Card Scan

Validating the Metro Card

In this section, you will create a list of riders using the Contact List you have already created, assign an expiration date to each metro card, and develop code that checks whether or not the metro card is valid and has not expired.

Lab 2R_Validating the Metro Card

Vocabulary

Click each word to view the definition.

Bluetooth

Bluetooth is a standard wireless technology that is used to exchange data between one or more devices.