Testing Procedure
Motor Configuration
- Assemble AEV with motors placed in the back
- Create a simple code to make AEV move a certain distance on track
- Place AEV on track
- Run code
- Collect data on Matlab graph
- Run one more time and collect data
- Disassemble AEV
- Assemble AEV with motors in the front
- Repeat steps 2-6 with same code from step 2
- Assemble AEV with motors placed in the middle (vertically)
- Repeat steps 2-6 with same code from step 2
- Assemble AEV with motors placed at the top
- Repeat Steps 2-6 with same code from step 2
See the Data Collected from Motor Configuration HERE
Code Used for Motor Configuration
celerate(4,0,30,3);//4 motors accelerate from 0% to 30% in 3 seconds
goFor(3);//motors stay at 30%power for 3 seconds
motorSpeed(4,25);//4 motors run at 25% power
goFor(2);//4 motors run at 25% power for 2 seconds
Servo Testing
- Assemble AEV with no servo
- Create a simple code to make AEV move a certain distance on the track
- Place AEV on track
- Run code and allow AEV to coast to a stop
- Collect data in a Matlab graph
- Repeat steps 4-5 two more times
- Disassemble AEV
- Assemble AEV with servo and 1 servo attachment
- Create a simple code to make AEV move a certain distance on the track with servo helping brake
- Place AEV on track
- Run code
- Collect data in Matlab graph
- Repeat steps 11-12 two more times
- Disassemble AEV
- Repeat steps 8-14 with a different servo attachment 3 more times
See the Data Collected from Servo Testing HERE
Codes Used for Servo Testing
Servo Control
Servo Testing
Braking Mechanics
- Assemble AEV with no servo
- Create a code standard code that will be used for all runs
- Run this code on the flat track to establish coasting as a control
- Collect data in MatLab
- Repeat step 3&4 two more times
- Edit code to include reversing motors once motors turn off
- Run this code on the flat track
- Collect MatLab data
- Repeat step 7&8 two more times
- Attach servo to the AEV
- Edit code original code to include servo rotating once the motors are turned off
- Run this code on the flat track
- Collect MatLab data.
- Repeat step 11&12 two more times
See the Data Collected from Braking Mechanics Testing Here
Codes Used for Braking Mechanics
Braking Mechanics Coast
reverse(4);//setting motors to move AEV in correct direction
motorSpeed(4,15);//all 4 motors on at 15% power
goToAbsolutePosition(-100);//motors stay on until wheels rotated 100 marks
Braking Mechanics Reverse Motors
reverse(4);//setting motors to move AEV in correct direction
motorSpeed(4,15);//all 4 motors on at 15% power
goToAbsolutePosition(-100);//motors stay on until wheels rotated 100 marks
reverse(4);//reversing the direction the motors turn
motorSpeed(4,15)//all 4 motors on at 15% power
goFor(3);//motors stay on for 3 seconds
Braking Mechanics Servo
rotateServo(60);//move Servo arm off of wheel
reverse(4);//set motors to move the AEV in the forward direction
motorSpeed(4,30);//set all 4 motors to 30% power
goToAbsolutePosition(-100);//keep motors running until AEV has reached 100 marks
rotateServo(0);//move Servo arm back onto wheel
Performance Tests
The task that the AEV must perform includes moving 14 feet, 4 feet of which are on an incline. After the 14 feet, the AEV must stop between two sensors and wait 7 seconds. After waiting seven seconds, the AEV must then move again. This task is depicted below with the measurements.
In order to begin creating this code, the total distance that must be traveled must be converted to marks. After this was completed, small edits were made to establish the braking distance and the most efficient power that the AEV should accelerate to.