Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

Lego Mindstorms Line following algorithm

Lego Mindstorms have EV3 robots which can be modified to do assignments, one time or over and over. We utilize the software Lego Mindstorms which has in-fabricate alternatives to browse to help us in programming the robot. The line following program is one of the most common programs used on the industrial robots. This is exceptionally valuable when relegating an errand to the robot be it to get or drop a thing from one indicate other, or to watch the range with a camera appended on the highest point of the robot.

Explanation of line following algorithm:

There are several ways through which we can make the robot to follow a line; here I would prefer using the robot's light sensor to follow the black line. In order to create a program for the robot to follow a black line, first thing we need to be clear is that, the robot doesn't have to follow only the black line, it has to follow the border of the line. Which means, the robot follows 50% of black line and 50% of white background; this approach is known as left-hand approach. In the next step, we need to calibrate the robot's sensors; we as humans know what is black and what is white, but for the robot we need to feed the data. In order to do this, we use touch sensor and light/color sensor to measure the amount of reflected light from the surface, then we use the touch sensor to record the reading of the reflection of light, first we place the light sensor on the black surface, press the touch sensor and record the reading and then we place it on the white surface and press the touch sensor and record the reading. Now we have the readings for both black and white colors. We need to keep in mind that light condition must be stable at all times for the robot to perform the task.

Now to program the robot, we use switch block which is set to color sensor mode to make the robot turn each side following the line in the loop. We can use motor blocks or move tank block to move our robot. Here, we use Motor blocks, so as the first step, select a loop block and then add switch block and place it inside the loop block. Then we add Sensor block in the loop which has color sensor to use measure color mode to measure the color and reflection. We configure the motor movement as 20% to avoid the robot deviating from the line.

We place the robot on the black line with the sensor half on the line and half on the surface, then run the code. The trick is, we don't use the tank as the movement here, and we use the separate tires which allow the better movement of the robot. The robot senses the color differentiation and follows the line, wobbling while it does it, goes around ∞ times as we set the loop to infinite. We can also give our loop a time frame so that the robot patrols the area for a particular time.

Why does the robot wobble?

The robot tries to follow the border of the line, when it doesn't sense the border, it moves to the other side. Most of the robots have only one light sensor laced on the far left/right end of the robot, the robot uses this sensor and starts moving forward, when it doesn't sense any line, it moves from left to right, and vice versa. The robot keeps wobbling left and right on the surface in order to follow the line which wastes battery and time. One approach is that we can use two sensors both on each side of the robot to make it follow the line but it will still wobble and might not move fast. There is one advanced approach to make the robot follow the line and move with very less wavering and move fast, this can be created using the PID (Proportional Integral Derivative) control for the robot.

References

Robot Virtual Worlds. Curriculums and training. Retrieved on Oct 27th 2016 from http://www.robotvirtualworlds.com/training/

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92076134

Have any Question?


Related Questions in Computer Engineering

With respect to the needham-schroeder 0v0ap authentication

With respect to the Needham-Schroeder (0V0AP) authentication protocol, assume that a client (point A in the 0V0AP description) is holding the wrong key Describe in PRECISE terms (in terms of the contents of the packets t ...

A study was conducted of long beach school district schools

A study was conducted of Long Beach School District schools regarding how many require school uniforms. In 2006, of the 296 schools questioned, 184 said they required s school uniforms. (Gentile & Imberman, 2009) Find th ...

Systems analysis project personal trainer inc owns and

Systems analysis project Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an international expansion by opening a new "superce ...

The probability of a potential employee passing a training

The probability of a potential employee passing a training course is 86%. If you selected 15 potential employees and gave them the training course, what is the probability that more than 12 will pass the test?

In mergers and acquisitions there is always a

In mergers and acquisitions there is always a pre-acquisition evaluation and post-acquisition evaluation of technology. Evaluation and control should be connected to each other. What should you know before and after the ...

Question using an organization of your choicedevelop a

Question: Using an organization of your choice: Develop a Complete Disaster Recovery Plan to be submitted to the executive board of your company. Please note that this is a formal writing, all references (peer-reviewed) ...

Question suppose you are in the process of drawing the dfds

Question : Suppose you are in the process of drawing the DFDs, and you have found that one of your Level 1 DFD describing a process in level 0, has more than 8 sub-processes. What does that indicate? And How do you fix i ...

Answer the following question what is a remote procedure

Answer the following Question : What is a 'Remote Procedure Call (RPC)'? How a RPC is originated and what are the applications/examples of a RPC process? The response must be typed, single spaced, must be in times new ro ...

What is the supply curve how do you apply the law of supply

What is the supply curve, how do you apply the law of supply in economics?

Question suppose we run dfs on a undirected graph g that

Question : Suppose we run DFS on a (undirected) graph G that has edge weights and is connected (there is a path connecting any two vertices of G). (a) Prove that the DFS tree is a spanning tree of G. (b) Recall that the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As