Challenge 6: Sensabot
- rainbowsandalex
- Mar 14, 2016
- 2 min read
In this challenge we were asked to make our ev3 start in a square of red tape on the floor, move past three red lines lowering and raising the arm at each one, and then move backwards and stop inside the square it started in once this is completed. We had the option to either use a colour sensor or simply count the number of rotations, but since I have already worked with counting rotations I decided I would use the sensor.
To complete this challenge I had the EV3 move forwards until it sensed the colour red, then stop briefly to raise and lower the arm, then continue on until it senses it again. Once this happens three times I have it move backwards until it senses red four times, then it stops.

During this Challenge I learned quite a bit. I learned more about using the colour sensor, like how to make it sense things multiple times before changing the action. I also got much better at using loops, and loops within loops. It was the first time I had set loops to conclude after a certain number of completions so I got to experiment with that for a while before figuring it out.
I would say that the building of the bot went quite well, as well as the general programming. It moves well and the program does exactly what it's supposed to. Not much went wrong, but I think I probably could have stood to make the driving a little more precise. I'm not sure what my goals would be for the next challenge, perhaps to leave more/better comments on my program and to leave them as I'm programming instead of all at the end. This was the final result of this challenge


Comments