Lab 02-External Sensors

External Sensors

The point of this lab is to become familiar with external sensor hardware components, troubleshooting techniques, and program function calls for using external sensors with AEV control. The team constructed the AEV and preformed the reflectance sensor test which caused no problems. The team then tested the program provided making sure the propellers spin in the correct direction, wires were tied away from the propellers and the sensors worked.

Sensors secured to the AEV

Figure 1: Secured reflectors to AEV

 The function of the reflectance sensors is to work in hand with the wheel (that has the reflective tape) to form a voltage divider. This then allows the Arduino to record each time the non-reflective surface passes over the senser , eight times marking a full wheel revolution, as a “mark” which can then be converted into engineering units. This keeps track of the distance the AEV travels by recording the number of marks.
PROGRESS REPORT Q&A:
1. The commands used in this lab may limit the success of the AEV in its completion of the scenario because when applying the brakes there is a delay which causes  the AEV to take longer to stop. This could cause problems when trying to stop the AEV at a certain time or distance making the factor in the delay of the stop command.
CODE USED: 
Compiled by Madison Geiger
motorSpeed(4,25);
goFor(2);
motorSpeed(4,20);
goToAbsolutePosition(295);
reverse(4);
motorSpeed(4,30);
goFor(1.5);
brake(4);