User:Wikisity/Enes-100/project 2

My Instructor's user page which points to this.

My Task Was
My task this week was to : Finally,using the two motors as starting point for the project spying TV, I should be able to :
 * Figure out the code necessary to turn motor 1 and motor 2 clockwise.
 * Turn both motors 1 and 2 backward.
 * Make the two motors turn to a certain speed and stop.
 * Create a linear actuator with two motors turning clockwise.
 * Then turning counter-clockwise and pose.

What I Did
in contrary to the last week, this week I started to divide my tasks. Next, apply the same strategy for motor 1. the following lines show the code used to realize each above steps plus a video of what is occurring.
 * Produce a code to turn motor 0 clockwise when motor 1 is off.
 * produce a code to turn motor 0 counter clockwise when motor 1 is off and play with the speed for motor 0.


 * In video 1 Motor 2 is turned off,
 * video 2 shows clearly that motor 1 is turning CW.
 * In this other video motor 1 goes counter-clockwise.
 * videos 3 show motor 2 going CW while motor 1 is off and video 4 present motor 2 going CCW.

Next Steps

 * Implement the code so that both motor 1 and motor 2 turn clockwise.
 * Repeat the process to have them executing a backward movement.

My Task Was
My task this week was to :
 * Implement the code in order to have motor 1 and motor 2 turning clockwise.
 * Repeat the process to have them executing a backward movement.
 * And probably think about ways to improve the code for future needs.

What I Did
this video and this other one  show the motors turning clockwise. Here is a video of both motors 1 and 2  going CCW.

Next Steps
Figure out into the code overlapping instructions to :
 * Make the two motors stop for a certain amount of time, after moving clockwise.
 * Make them move backward.
 * Allocate the same speed to the motors for all the movements.

My Task Was
My task this week was to :
 * Produce the code so that the two motors turn clockwise for a few seconds and stop.
 * Stop running for a certain time,and then go counter-clockwise.
 * Turn counter-clockwise for a few seconds,and stop again for a certain time.

What I Did
the code is made up of three main part : At first, the two motors run clockwise for 5s. Stop for 3s, and restarts running again, but counter clockwise for 5s, then stop 3s. That is the design obtained so far.
 * Initialization of input and output variables at the beginning of the code.
 * A void loop function in the middle of the code describing the movements of the two motors.
 * motorGo(value1, value2, value3) function written in void loop to realize forward, backward, and then stop movements.
 * mechanism of motorGo function described at the bottom of the code.


 * Here is a short video of the two motors going clockwise for 5s and then counter clockwise for another 5s.
 * Here is a another short video  of the two motors going clockwise for 5s, posing for 3s, and turning counter clockwise for 5s again, then pose.

Next Steps
My next steps would be to:
 * Look at the smallest and cheapest linear actuator online.
 * document each line of the current code.
 * review previous team documentation.
 * Testing this code in real time, using a real TV, mounted to the wall.