Exercise 2

 

Using a model that was provided the team ran a test on the two Reflectance sensors. The purpose of this trial was to ensure the sensors were installed properly so that they would be able to read the reflective portion of the track wheel. Using the Data Analysis tool that through Matrix Laboratory (MatLab). This tool plotted a Power v Distance graph and a Power v Time graph. The results of the test are attached in the link below.

Data Analysis

The data displaced is the result of manually spinning the wheel with the reflective tape. This decision was reached based on the time constraints the team found themselves under.

 

Arduino Code

motorSpeed(4,25);

goFor(2);

motorSpeed(4,20);

goToAbsolutePosition(295.38);

reverse(4);

motorSpeed(4,30);

goFor(1.5);

brake(4);