Download presentation
Presentation is loading. Please wait.
1
TESTBED ACADEMY Final Exam
2
The Vending Machine Students have been breaking into a vending machine at your school, and you have decided to use a line tracker in a clever attempt to stop the thieves…
3
The Vending Machine Your code will turn on a red light and reverse the motors inside the vending machine when someone’s hand covers the line tracker
4
Specifically, here is what you need to do:
The Vending Machine Specifically, here is what you need to do:
5
Specifically, here is what you need to do:
The Vending Machine Specifically, here is what you need to do: Press the limit switch to start both left and right motors Cover the line tracker to turn on a red LED and reverse the motors Wait 2 seconds - stop motors and turn off light
6
Threshold= a number between 0 and 4095
Line tracker Reminder Threshold= a number between 0 and 4095 sensorPort = in1 or lineFollower
7
Can you be our Vending Machine Hero?
Show Mr. Jopp to be done with all of your testbed practice programs.
8
The Vending Machine Press the limit switch to start both left and right motors Cover the line tracker to turn on a red LED and reverse the motors Wait 2 seconds - stop motors and turn off light
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.