1
EECS1011Z Lab H (Part 1)
2
Introduction
3
Getting started
4
Getting the MATLAB code needed for the lab
5
Differential drive robot
5.1
Kinematics of a differential drive robot
6
Connecting the servo controller to the computer
6.1
Setting up the Advanced Servo Controller
6.2
Initializing the Advanced Servo Controller
7
Calibrating the robot
7.0.1
Before you proceed
7.1
Using
setServoPosition
7.2
Using
setServoEngaged
7.3
Determine what positions correspond to forward and backwards
7.4
Find the true zero-speed position of the motor
7.5
Repeat the above process for motor 1
8
Create a function to stop the robot
9
Create a function to move the robot in a straight line
9.1
Start with an incorrect version of the function
9.2
Important
9.3
Record how far the robot moves in 1 second
9.4
Test your function
10
Spinning the robot about the center of its axle
10.1
Write a function to spin the robot by 90 degrees
10.2
Test your method
11
Turning the robot to the left
11.1
Write a function to turn the robot by 90 degrees
11.2
Test your method
12
Ask a TA to mark your lab
13
Submit your work
13.1
Re-submitting your work
13.2
Retrieving your submitted work
14
Clean up
1
EECS1011Z Lab H (Part 1)
Tuesday Mar 10