Lab 2 – Arduino Programming Basic

Lab 2 allowed for teams to become familiar with the automatic control system hardware components and guided the teams toward setting up the AEV software. There were few objectives for this lab, but the main focus was on being able to check whether or not the AEV will properly function on the track. The other objective required the team to be able to construct an AEV that is stable enough to run on the track without falling. Later the team was divided into 2 groups, one group of two was responsible for the coding aspect of the lab, and the other two were responsible for the construction of the AEV. The team, in the end, we were able to test the performance of the AEV in the track. The performance of the AEV was excellent, and later the team came together to discuss designing our own AEV model.

Basic Function Calls://Accelerates or decelerates motor(s) m from start speed (%) p1 to end speed (%) p2 for dt seconds.
elerate(m,p1,p2,dt);
//Initializes motor(s) m at percent power p
motorSpeed(m,p);
//Runs the motor(s) at their initialized state for dt seconds
goFor(dt)
//Brakes motor(s) m
brake(m);
//Reverses the polarity of motor(s) m
reverse(m);

Team notes:

We discuss the objective of the lab and read over the material to become familiar with the equipment. We also discuss designing our own AEV model and appointed each of us with responsibility for the lab and discussion about who is responsible for what part of the lab.