Recent Changes - Search:

TEAMS Academy Wiki

THS

Explore TEAMS!
for visiting sophomores & juniors


Robotics


EnvBioTech

Bat Design

Assistive Tech

Students

Instructors

TEAMS Forum

TEAMS Calendar

TEAMS Web Site

Wiki Info

edit Robots.SideBar

ExtSensors3

Introduction to External Digital Sensors - Simple Switches

1. Review this Powerpoint presentation (pdf) from class

2. Now connect a switch to your create (LEFT ePort, use Pin 3 for the SIGNAL, and Pin 4 for GROUND)

3. Try out this sample code! (Revised Debug Demo code that uses an external switch)

  • Before you compile, download, and run the program...Analyze the code and predict what it will do! What is the purpose of the external switch in the code? What does it do?
  • Update your template files
  • Create a new project directory called "Debug Demo" and copy the file below into that directory:
    Example code for new debugging tools (save as main.c in c:/Teams/YourName/Debug Demo/)
Edit - History - Print - Recent Changes - Search
Page last modified on December 06, 2007, at 12:58 PM