AME 3623: Project 2

For this project, you will be reading analog data from an infrared distance sensor (made by Sharp) and modeling the relationship between the analog values and the distances.

Each group will be issued two Sharp sensors.

At the end of this project, you should be able to:

Component 1: Microcontroller Circuit

Connect two Sharp infrared distance sensors to your circuit board. Mark the sensors as "left" and "right so you know which sensor is which. The coloring of the wires varies from connector to connector. In general:


Component 2: Analog Interface Software for Data Collection

Write a data collection program:

Component 3: Data Collection

Component 4: Sensor Model

Given the data that you collected, derive a mathematical equation for distance as a function of sensor value. Keep in mind:

Component 5: Analog Interface Software

Define a new variable type in "project.h":
typedef enum {

DistanceSensor is the variable type. DISTANCE_LEFT and DISTANCE_RIGHT are the two values that DistanceSensor variables can take on.

Implement the following function:

Component 6: Testing

Write a new test loop() function that repeatedly:


What to Hand In

Submit to your project2 folder of your subversion/dropbox tree by Thursday, February 22nd at 1:30pm: Other components:


andrewhfagg --

Last modified: Mon Feb 12 23:33:52 2018