Monday, November 18, 2013

Ferris Ride lego

We had to make our robot move until it hit a touch sensor and it reversed a little , and then rotated 3 times. Then said goodbye. We accomplished the task for this lab assignment. The code was fairly easy, but we needed to make sure only one of the two motors ran when rotating. This is the code to rotate and all of that.



We also had to complete a working ferris wheel for 1 to 3 riders. It worked and we used the corresponding code to make the ferris wheel move when we hit a start button(which was the touch sensor). We used a light sensor first so that threw a kink in our code.This is the code we used for this part of the assignment.














No comments:

Post a Comment