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

ExtSensors2

Introduction to External Sensors, Part II

…and other using other devices to expand the functionality of the Create

1. Start by reviewing/re-reading the notes I posted on Nov 26/27

2. Now take a look at this Powerpoint presentation (pdf) from class

3. Now connect sensors to your Create

  • Start with one Sharp distance sensor and one photo resistor
  • The Sharp IR distance sensor is connected to pin 1 on the breakout board
  • The CdS Photo resistor is connected to pin 2
  • See the Command Module Manual (page 31) for detailed pin information.

4. Try out this sample code!

This program uses external analog sensors connected to the center port on the Command Module, and the Cricket LED connected to the cargo bay port. It is a simple program that shows what kind of values the sensors will produce.

  • Update your template files
  • Create a new project directory called "Sensor Demo" and copy the file below into that directory:
    External Sensor Code (save as main.c in c:/Teams/YourName/Sensor Demo/)
  • Before you compile, download, and run the program...
    • Analyze the code and predict what it will do!
    • Note how LEDs, sound, the Cricket display, and RealTerm have been used to help the user "see" what is happening.
    • Pay attention to both the Cricket Display and the Power LED
    • By the way, do you notice anything unusual happening when you are running this program??
Edit - History - Print - Recent Changes - Search
Page last modified on March 27, 2009, at 10:33 AM