First Challenge: Make it Move

For challenge 1, you will be building the Lego Mindstorms EV3 TRACK3R robot and using the Open Roberta software to drive the robot straight on a board without going over it, as pictured below.

If the robot passes the line, the robot failed to complete the challenge.

Algorithm

The robot repeats driving until the color sensor doesn’t sense brown.

  • 1: Drive at 50% speed
  • 2: Repeat it until the color sensor detects white

Building Plan

This will be the final robot once you are done building it.

The robot you will be building is called the TRACK3R. The instructions and information for the robot can be found at Lego’s website.

Program

Pictured below is the program I used for completing the challenge. I made it specifically to use with the color sensor.

This is the coding from Open Roberta, used to complete the challenge.

The code says to repeat driving forwards until the color sensor will detect white. I used the color sensor instead of driving a certain distance because it doesn’t matter the length of the track, it’ll still stop before going over it.

Building Process Reflection

The components I added were the color sensor to the front of the robot to detect when the robot does not sense brown in my programming. I also changed the mechanism in where the color sensor attaches to the robot so the sensor can go lower to the ground.

The first problem I ran into was the robot wasn’t moving all the way across the board, so I then measured the length of the board and also factored in the length of the robot which has to start in front of the board, not on the board. Then again, the robot was still only making it part way.

I then saw that I could add a color sensor. I then changed my code to repeat driving until the color sensor did not sense brown, the color of the board. There I ran into another problem, the robot would go over the board now. After inspecting the robot, I may have found a reason why it was going over the board, maybe the color sensor was not fast enough to detect the change in color. I then modified my color sensor to extend out further. Once I did that, the robot was still going over the board.

After a few more runs along the board, I then figured out the source of the problem, the color sensor was not detecting the ground until the robot went over the end of the board, which at that point the robot teeters between the board and ground. I moved the color sensor closer to the floor, which fixed the problem and the robot stopped at the end of the track without crossing the lines.

This is a trial log of my attempts at completing the challenge.

The most difficult part of this build was most likely troubleshooting the color sensor since I didn’t know exactly what was going wrong, I had to observe what was going on with the robot at the time it should be stopping and detecting that the board was not there anymore. What worked well, for the most part, were the motors and structure of the robot. The robot had a consistent run which was good for troubleshooting and testing since it ran the same everytime which was one less variable to consider during the troubleshooting process which made it easier to find the source of the problem.

2 thoughts on “First Challenge: Make it Move

  1. Nice job with all of the visuals. They offer great interpretation on the proper building and testing steps for viewers. Also, the chart was a nice touch. It gave them an idea of how many times the steps may have taken you and will offer positive feed back to those who are not as successful with their robots.

    Like

Leave a comment